Commit Graph

40 Commits

Author SHA1 Message Date
Ian Romanick
ece267f991 House cleaning in vb_init.c
Make all functions and data in vb_init.c static that can be made
static.  Make some data const.  Put prototypes for all non-static
vb_init.c functions in vb_init.h.
2006-12-14 16:44:06 -08:00
Ian Romanick
9502c53c1d Delete unused code.
Delete several functions related to SiS 310 support.  None of these
functions are called anywhere in the code base.
2006-12-14 15:55:51 -08:00
Ian Romanick
a6ce6dd1db Remove unused source files.
vb_inta.[ch] appear to be from the Windows version (???) of the
driver.  xgi_vid*.c appear to be older versions of xgi_video.c.  I'm
not sure what the purpose of xgi_vidregs.h ever was.
2006-12-14 15:22:32 -08:00
Ian Romanick
cedebf956d Hardware register include file clean up.
Elminiate the need for regs.h.  Move the definitions in regs.h that
are still necessary to xgi_regs.h.  Remove regs.h from
xgi_drv_la_SOURCES in Makefile.am, and sort that list alphabetically.
2006-12-14 15:19:05 -08:00
Ian Romanick
e8813fcca5 More HW cursor clean-up. 2006-12-11 15:35:44 -08:00
Ian Romanick
d2e6bc53f7 Cursor code clean-up.
Eliminate several unused cursor related structure fields.  Fix HW
cursor on little-endian systems.  General clean-up.
2006-11-20 14:13:32 -08:00
Ian Romanick
aa13e9098f Eliminate unused structure fields. 2006-11-20 13:39:42 -08:00
Ian Romanick
e36cc46625 Eliminate several command queue / Turbo Queue related struct fields.
Several structure fields that were only needed to support older SiS
chips were removed.  The single remaining use of RealVideoRam was
replaced with 'pscrn->videoRam'.

The code removed in xgi_vga.c was removed because the corresponding
code in xf86-video-sis is only used on some SiS 3xx chips.  The XG20 /
XG40 support in that driver does not do this.
2006-11-20 13:22:22 -08:00
Ian Romanick
c90a86f72b Eliminate all occurances of newFastVram. 2006-11-20 12:44:26 -08:00
Ian Romanick
38795467d3 Eliminate all uses of VGAEngine.
There is only one VGA engine supported by this driver, so there is no
need to track the engine of the current chip.  Furthermore, there is
no need to test the VGA engine value to switch features of the old SiS
chips.
2006-11-20 12:43:03 -08:00
Ian Romanick
d095ab57c7 Elminiate all occurances of forceCRT1. 2006-11-17 17:09:47 -08:00
Ian Romanick
4e615331df Eliminate various unused Xv related options and struct fields. 2006-11-17 17:00:14 -08:00
Ian Romanick
62da64b8f0 Remove various unused HW cursor and screen size limit related struct fields. 2006-11-17 16:51:18 -08:00
Ian Romanick
3df0e052d5 Eliminate cruft associated with older SiS-based laptops.
The tables mycustomttable, mychswtable, and mypdctable are hold-overs
from the SiS driver.  They are required for fix-ups associated with
some laptops based on the older SiS chipsets.  Since this driver does
not support those chipsets, the tables and associated code can go.

Also remove some comments from xgi_driver.h.  These comments used to
accompany tables that were removed from the code long ago.
2006-11-17 16:43:41 -08:00
Ian Romanick
1ec4b34080 Eliminate SIS300 / SIS315 related CR32 cruft. 2006-11-17 16:19:09 -08:00
Ian Romanick
3919aed883 Eliminate several unused structure fields.
Eliminate all occurances of CRT1changed, detectedCRT2Devices,
UsePanelScaler, and CenterLCD.
2006-11-17 15:07:30 -08:00
Ian Romanick
61a8290c8f Eliminate numerous unused TV related structure fields and options. 2006-11-17 14:50:59 -08:00
Ian Romanick
215d4276f9 Eliminate all occurances of NoHostBus. 2006-11-17 14:27:47 -08:00
Ian Romanick
00aa236cbc Eliminate all occurances of EMI. 2006-11-17 14:22:00 -08:00
Ian Romanick
800620339d Eliminate all references to xgifb and donttrustpdc.
The references to xgifb are clearly hold-overs from the SiS driver.
It should be clear that the places the refered to "xgifb" actually
meant "sisfb".  Note the reference to 2.4 kernels. :)
2006-11-17 14:16:44 -08:00
Ian Romanick
df9d640b6e Eliminate all occurances of OldMode. 2006-11-17 14:11:22 -08:00
Ian Romanick
424b2f59d2 Eliminate all occurances of CRT1isoff. 2006-11-17 13:55:23 -08:00
Ian Romanick
7afc2c133d Clean-up code surrounding initialization of CRT1off. 2006-11-17 13:53:46 -08:00
Ian Romanick
036aa4a692 Really, eliminate *all* occurances of XvOnCRT2. 2006-11-17 13:43:51 -08:00
Ian Romanick
b665882b21 Eliminate all occurances of XvOnCRT2. 2006-11-17 13:42:48 -08:00
Ian Romanick
c49b44f9fe Delete all occurances of DGAViewportStatus. 2006-11-17 12:58:44 -08:00
Ian Romanick
0dfee6622d Delete all occurances of ROM661New. 2006-11-17 12:55:16 -08:00
Ian Romanick
7f9c30d1bf Delete unused structure members.
Many, many unused structure fields were deleted.  Many more were
documented as probably unused.  Most of this is cruft left around from
the old SiS driver.
2006-11-17 12:49:40 -08:00
Ian Romanick
f08caa5708 Un-libc-wrap. 2006-11-17 11:03:43 -08:00
Ian Romanick
5d9dd818d6 Eliminate switch with only one case.
Eliminate a switch-statement that had only a default case.  Fix
indention / whitespace while here.
2006-11-17 10:50:07 -08:00
Ian Romanick
80d3b18185 Remove dead XF86_VERSION_CURRENT tests.
There are a number of XF86_VERSION_CURRENT tests in the code the
pre-date the XFree86 / X.org schism.  All of these tests (and the
older versions of the code) have been removed.
2006-11-17 10:11:20 -08:00
Ian Romanick
ec12bf3d83 Fix version settings.
Set XORG_VERSION_CURRENT and ABI_VIDEODRV_VERSION in the
XF86ModuleVersionInfo correctly.  Remove '#ifdef XFree86LOADER' cruft.
2006-11-16 15:01:45 -08:00
Ian Romanick
4bef7f3e2b Remove redefinition of kernel types. 2006-11-16 15:00:30 -08:00
Ian Romanick
240ff63455 Fix DRM type names.
This code used the old style names (e.g., drmHandle).  This patches
the code to use the new style names (e.g., drm_handle_t).
2006-11-16 15:00:03 -08:00
Ian Romanick
298bfb66d5 Remove space after backslashes. 2006-11-16 14:58:49 -08:00
Ian Romanick
b0d8bc81e8 Remove spaces after back-slashes. 2006-11-16 14:57:00 -08:00
Ian Romanick
4e1086f670 Fix include file madness.
Make sure that every C file includes config.h.  Make sure that all
extension header files (e.g., Xv.h) come from X11/extensions.  Remove
all of the $XFree86$ cruft.
2006-11-16 13:08:10 -08:00
Ian Romanick
1a3cd0a7f8 Initial pass at getting driver building. Not done yet.
Shuffle files around into their correct places.  Create Makefile.am,
configure.ac, and autogen.sh based on similar files in other drivers.  Delete
pre-modular files (e.g., Imakefile) that are no longer necessary.
2006-11-16 12:41:02 -08:00
Adam Jackson
0ace27ac3e Initial import (bug #8611) 2006-11-16 15:41:38 -05:00
Adam Jackson
dfc30f4b02 Start repo. 2006-11-14 17:30:44 -05:00