Ian Romanick
139f0bbbde
Rearrange XGI_SetCRT1VCLK to make it look more like XGI_New_SetCRT1VCLK
...
There are still some (seemingly) significant differences between these
two functions, so I have not yet refactored them into a single function.
2007-05-04 09:50:49 -07:00
Ian Romanick
84d3ded2c9
Eliminate XGI_SetCRT1Sync. Universally use XGI_SetSync.
2007-05-04 09:31:28 -07:00
Ian Romanick
75e8c98952
Eliminate XGI_New_ClearExt1Regs. Universally use XGI_ClearExt1Regs.
2007-05-04 09:27:16 -07:00
Ian Romanick
78d6ae712a
Eliminate XGI_New_SetGRCRegs. Universally use XGI_SetGRCRegs.
2007-05-03 18:31:27 -07:00
Ian Romanick
5205087bff
Actually remove XGI_New_SetATTRegs
...
This change was missed on the previous commit.
2007-05-03 18:26:19 -07:00
Ian Romanick
15dc3557b4
Elminiate XGI_New_SetATTRegs. Universally use XGI_SetATTRegs.
...
There are some differences between these functions. Some were moved
over to XGI_SetATTRegs. For the others, I'm *assuming* the more
recent code drop from XGI (i.e., XGI_SetATTRegs) is correct for the
Volari parts.
2007-05-03 18:25:19 -07:00
Ian Romanick
79cfe8aa44
Elminiate XGI_New_SetCRTCRegs. Universally use XGI_SetCRTCRegs.
2007-05-03 18:16:40 -07:00
Ian Romanick
4e91916b8b
Eliminate XGI_New_SetMiscRegs. Universally use XGI_SetMiscRegs instead.
2007-05-03 18:12:03 -07:00
Ian Romanick
dfbc3120d1
Eliminiate XGI_New_SetSeqRegs. Universally use XGI_SetSeqRegs instead.
2007-05-03 18:08:27 -07:00
Ian Romanick
7ea1b566ba
Eliminate XGI_New_GetColorDepth. Universally use XGI_GetColorDepth instead.
2007-05-03 17:59:19 -07:00
Ian Romanick
42d37ee13d
Revert accidental commit
2007-05-03 17:58:21 -07:00
Ian Romanick
80e73ba2c1
Eliminate pointers to writable globals in VB_DEVICE_INFO
...
MCLKData and ECLKData were supposed to get this treatment along with
the other structure fields in commit
a3597f0de3 . They were overlooked at
that time, and this brings them in line.
2007-05-03 17:56:09 -07:00
Ian Romanick
53809444fa
Make remaining global data pointers in VB_DEVICE_INFO const.
2007-05-03 17:40:37 -07:00
Ian Romanick
a3597f0de3
Eliminate pointers to writable globals in VB_DEVICE_INFO
...
Previously, the VB_DEVICE_INFO was recreated each time certain
functions were called. In order to have persistent storage across
calls, VB_DEVICE_INFO contained pointers to writable global data.
Since the VB_DEVICE_INFO structure is no longer recreated on each
call, there is no reason to have this global data. All data is stored
in the VB_DEVICE_INFO structure. It is copied from const globals when
the structure is initialized.
2007-05-03 17:31:01 -07:00
Ian Romanick
58860f437a
Fix some bits missed on last commit
2007-05-03 17:12:32 -07:00
Ian Romanick
4aab881830
Use only one copy of VB_DEVICE_INFO.
...
Pass a single copy of the device's VB_DEVICE_INFO structure to the
functions in vb_*.c instead of requiring each function to initialize
its own copy.
2007-05-03 15:55:50 -07:00
Ian Romanick
98f05a8190
Eliminate unused structure fields VBInfo and pVBInfo.
2007-05-03 15:18:16 -07:00
Ian Romanick
70e4e6d1c0
String replace XGI_Private with VB_DEVICE_INFO, remove vstruct.h.
2007-05-03 15:10:56 -07:00
Ian Romanick
aea90411c8
Replace "struct _XGI_Private" with "struct _VB_DEVICE_INFO".
...
These two structures are nearly identical, and there is a lot of
duplicate infrastructure between them. This patch simply replaces
"struct _XGI_Private" with a typedef to "struct _VB_DEVICE_INFO".
Future changes will remove the duplicate infrastructure and unite the
code more cleanly.
2007-05-03 15:06:12 -07:00
Ian Romanick
8000c9d413
Remove unused "LVDSHL" related structure field and xorg.conf option
2007-05-03 10:06:44 -07:00
Ian Romanick
ee45a047cf
Remove unused "PanelDelayCompensation" related structure fields and xorg.conf options
2007-05-03 10:03:26 -07:00
Ian Romanick
c7f3de98e7
Remove unused "UseOEM" related structure fields and xorg.conf option
2007-05-03 09:59:23 -07:00
Ian Romanick
9b36b7f4df
Remove trivially unused structure fields.
2007-05-03 09:56:55 -07:00
Ian Romanick
3ef757f055
Eliminiate need for XGI_VGAINFO structure field, remove field.
2007-05-02 15:19:53 -07:00
Ian Romanick
70f35e2661
Remove unused structure fields. Document fields with issues.
2007-05-02 15:12:24 -07:00
Ian Romanick
d15fc8ae83
Remove redundant structure definitions
2007-05-02 14:44:18 -07:00
Ian Romanick
01838c17bf
Remove useless structure fields CRT1ModeNo and CRT1DMode
2007-05-02 14:39:08 -07:00
Ian Romanick
95d4db3280
Remove unused function XGI_SetPitch
2007-05-02 14:27:33 -07:00
Ian Romanick
f3bff67376
Clean ups in XGIBIOSSetMode
...
- Remove commented-out code.
- Rearrange the pXGI->pVbe and pXGI->pVbe->pInt10 checking.
- Since pScrn cannot be NULL, remove the NULL test.
2007-05-02 14:23:45 -07:00
Ian Romanick
d1000f6479
Refactor some HDE / VDE related code into its own function
2007-04-27 18:38:26 -07:00
Ian Romanick
34ce078b22
Unify DAC data tables
2007-04-27 18:07:51 -07:00
Ian Romanick
0e4b9dbdd8
Unify XGI_New_WriteDAC and XGI_WriteDAC
2007-04-27 17:56:29 -07:00
Ian Romanick
c9ba77d227
Remove unused function XGISetMode and associated code
...
Since commit 5aa3427c0e this function
has been unused. XGISetMode was the only caller of XGI_ResetVB, so that
function can now be removed as well.
2007-04-27 12:17:46 -07:00
Ian Romanick
6ee9100a6e
Remove redundant "dosetpitch" parameter to XGIBIOSSetMode.
2007-04-27 11:10:55 -07:00
Ian Romanick
300c2d9b11
Remove unused function XGI_CheckBuildCustomMode and associated code
...
Since commit 7930e4b5f4 this function
has been unused. By removing this function, the structure fields
UseCustomMode and CRT1UsesCustomMode can only be set to FALSE. Remove
those fields and code dependent upon them. XGI_CheckBuildCustomMode
was also the only caller of XGI_CaclCRRegisters. Remove that function.
Removing XGI_CheckBuildCustomMode also eliminates the possability of
seeing "magic" mode number 0xfe. Remove the few bits of code the
check that value.
By removing all these bits of code, a few fields in XGI_Private become
unused. Remove those structure fields.
2007-04-27 10:54:23 -07:00
Ian Romanick
7930e4b5f4
Remove structure fields IsCustom and IsCustomCRT2
...
Since commit 5aa3427c0e these fields can
only be set to FALSE. Remove the fields and some associated code.
2007-04-27 10:22:51 -07:00
Ian Romanick
5aa3427c0e
Remove code that relies on CP_HaveCustomData, HaveCustomModes, or AddedPlasmaModes
...
None of these three structure fields are ever set to non-FALSE values
(memset at structure initialization sets them all to FALSE). Remove
any and all code that is gated by them being set to non-FALSE.
2007-04-27 10:14:23 -07:00
Ian Romanick
23e6a4c8e7
Remove extraneous braces, reindent.
2007-04-26 19:29:47 -07:00
Ian Romanick
a82a571635
indent -sc -nut -br -sai -saf -saw -cdw -i4 -cli0 -npcs
2007-04-26 19:21:55 -07:00
Ian Romanick
5467b3a36f
Remove unnecessary structure field XGI_flag_clearbuffer
2007-04-26 18:49:52 -07:00
Ian Romanick
72f7c4a8e7
Remove errant call to XGI_GetVGAType
...
XGI_GetVGAType was removed in commit 68d25d4b5e .
This function served no use, and this call to it should have been
removed at that time.
2007-04-26 18:39:58 -07:00
Ian Romanick
d7a3e073d3
Revert "Remove unused function XGI_SetPitchCRT."
...
This reverts commit e92432874f .
It turns out that XGI_SetPitch (the actual function removed) is still
used.
2007-04-26 18:35:28 -07:00
Ian Romanick
e92432874f
Remove unused function XGI_SetPitchCRT.
2007-04-25 20:57:31 -07:00
Ian Romanick
dcaf6d37b9
Remove functions that are '#ifndef LINUX_XF86'
2007-04-25 20:56:57 -07:00
Ian Romanick
c3e53d9826
Remove unused function XGI_CalcLCDACRT1Timing.
2007-04-25 20:51:08 -07:00
Ian Romanick
106e2eb87c
Remove numerous unused structures, structure fields, and static arrays.
2007-04-25 20:48:19 -07:00
Ian Romanick
f05077e62e
Remove various Chrontel related cruft.
2007-04-25 17:51:31 -07:00
Ian Romanick
df3bb2dd70
Remove VBLCDFlags and associated cruft.
2007-04-25 17:48:36 -07:00
Ian Romanick
0a8433b42a
Add some system includes to silence warnings.
...
I suspect that the addition of sys/ioctl.h and fcntl.h may break the
build on non-Linux systems.
2007-04-25 17:34:45 -07:00
Ian Romanick
c800c2529f
Remove DSTN / FSTN cruft.
...
The DSTN / FSTN stuff appears to have only been necessary on old SiS
(550?) chips. Remove it.
2007-04-25 17:30:38 -07:00