Commit Graph

178 Commits

Author SHA1 Message Date
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
Ian Romanick
6c4e70ad97 Remove some incorrect comments from XGIRestore. 2007-04-25 17:17:25 -07:00
Ian Romanick
1678c9767f Various trivial clean ups. 2007-04-25 17:13:01 -07:00
Ian Romanick
9a1bacf9bc Remove deprecated VESA option and associated cruft. 2007-04-25 16:11:16 -07:00
Ian Romanick
76edd9388f Replace initdef.h with vb_def.h.
Replace all occurances of initdef.h with vb_def.h.  Delete initdef.c.
2007-04-25 15:14:02 -07:00
Ian Romanick
37f47ccf83 Clean up some printf format related warnings. 2007-04-25 15:10:17 -07:00
Ian Romanick
b14996e7ee Sync vb_def.h with initdef.h
Copy some missing values from initdef.h.  Update some comments, and
rearrange defines a bit.

This is step 2 in the eventual removal of initdef.h.
2007-04-25 15:01:33 -07:00
Ian Romanick
e041b8b1df Synchronize initdef.h with vb_def.h.
Remove unused defines from initdef.h.  Change the names of defines
that differ from the names in vb_def.h.  Tweak comments, etc.

This file is going to be removed soon.  All uses of it will be
replaced with vb_def.h.  This is just the first step.
2007-04-25 14:09:33 -07:00
Ian Romanick
fe49bac087 Clean up unused variable. 2007-04-25 13:53:16 -07:00
Ian Romanick
b06de7bd9c Removed unused local variables. 2007-04-25 13:41:33 -07:00
Ian Romanick
619120b75a Clean up Volari_Idle
This macro will eventually need some more house cleaning.  Given it's
length, it should be made into a function.
2007-04-25 13:33:09 -07:00
Ian Romanick
2d193086ee Remove extraneous curly braces, re-indent. 2007-04-24 10:50:26 -07:00
Ian Romanick
6d380460f7 Remove commented-out segment register (!) helper functions. 2007-04-24 10:36:20 -07:00
Ian Romanick
42cc6de9d4 Remove prototypes for nonexistant functions. 2007-04-24 10:28:10 -07:00
Ian Romanick
ef90cd1718 Remove unused function XGIBridgeIsInSlaveMode. 2007-04-24 10:15:25 -07:00
Ian Romanick
6197de2ffa Remove unused function XGISwitchCRT1Status. 2007-04-24 10:13:29 -07:00