do not include SST1 and SST96 init codes together.

This commit is contained in:
Ozkan Sezer
2021-11-11 17:37:04 +03:00
parent a20bb982cc
commit 587e01e573
17 changed files with 272 additions and 407 deletions

View File

@@ -167,19 +167,22 @@ GLIDE_OBJECTS += \
endif
endif
INIT_OBJECTS = \
../../init/init.o
ifeq ($(FX_GLIDE_HW),sst96)
GLIDE_OBJECTS += \
sst96.o \
sst96.o
INIT_OBJECTS += \
../../init/vg96drvr.o \
../../init/init96/init96.o \
../../init/init96/dxdrvr.o \
../../init/init96/initat3d.o \
../../init/init96/initmcrx.o
endif
GLIDE_OBJECTS += \
../../init/init.o \
../../init/init96/initmcrx.o \
../../init/initvg/gdebug.o
else
INIT_OBJECTS += \
../../init/vgdrvr.o \
../../init/vg96drvr.o \
../../init/initvg/gamma.o \
../../init/initvg/dac.o \
../../init/initvg/video.o \
@@ -189,7 +192,11 @@ GLIDE_OBJECTS += \
../../init/initvg/info.o \
../../init/initvg/print.o \
../../init/initvg/gdebug.o \
../../init/initvg/sst1init.o \
../../init/initvg/sst1init.o
endif
GLIDE_OBJECTS += \
$(INIT_OBJECTS) \
$(FX_GLIDE_SW)/newpci/pcilib/sst1_pci.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxmsr.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxpci.o \
@@ -262,29 +269,6 @@ xdraw.o: xdraw.asm
xdraw96.o: xdraw96.asm
$(AS) -o $@ $(ASFLAGS) $<
ifeq ($(FX_GLIDE_HW),sst96)
../../init/initvg/gamma.o: ../../init/initvg/gamma.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/dac.o: ../../init/initvg/dac.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/video.o: ../../init/initvg/video.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/parse.o: ../../init/initvg/parse.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sli.o: ../../init/initvg/sli.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/util.o: ../../init/initvg/util.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/info.o: ../../init/initvg/info.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/print.o: ../../init/initvg/print.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gdebug.o: ../../init/initvg/gdebug.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sst1init.o: ../../init/initvg/sst1init.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
endif
$(GLIDE_OBJECTS): fxinline.h fxgasm.h
# cross-compile workaround:

View File

@@ -181,19 +181,22 @@ GLIDE_OBJECTS += \
endif
endif
INIT_OBJECTS = \
../../init/init.o
ifeq ($(FX_GLIDE_HW),sst96)
GLIDE_OBJECTS += \
sst96.o \
sst96.o
INIT_OBJECTS += \
../../init/vg96drvr.o \
../../init/init96/init96.o \
../../init/init96/lindrvr.o \
../../init/init96/initat3d.o \
../../init/init96/initmcrx.o
endif
GLIDE_OBJECTS += \
../../init/init.o \
../../init/init96/initmcrx.o \
../../init/initvg/gdebug.o
else
INIT_OBJECTS += \
../../init/vgdrvr.o \
../../init/vg96drvr.o \
../../init/initvg/gamma.o \
../../init/initvg/dac.o \
../../init/initvg/video.o \
@@ -203,7 +206,11 @@ GLIDE_OBJECTS += \
../../init/initvg/info.o \
../../init/initvg/print.o \
../../init/initvg/gdebug.o \
../../init/initvg/sst1init.o \
../../init/initvg/sst1init.o
endif
GLIDE_OBJECTS += \
$(INIT_OBJECTS) \
$(FX_GLIDE_SW)/newpci/pcilib/sst1_pci.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxmsr.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxpci.o \
@@ -298,50 +305,6 @@ xdraw.lo: xdraw.o
xdraw96.lo: xdraw96.o
$(CP) $< $@
ifeq ($(FX_GLIDE_HW),sst96)
../../init/initvg/gamma.o: ../../init/initvg/gamma.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/dac.o: ../../init/initvg/dac.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/video.o: ../../init/initvg/video.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/parse.o: ../../init/initvg/parse.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sli.o: ../../init/initvg/sli.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/util.o: ../../init/initvg/util.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/info.o: ../../init/initvg/info.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/print.o: ../../init/initvg/print.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gdebug.o: ../../init/initvg/gdebug.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sst1init.o: ../../init/initvg/sst1init.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gamma.lo: ../../init/initvg/gamma.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/dac.lo: ../../init/initvg/dac.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/video.lo: ../../init/initvg/video.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/parse.lo: ../../init/initvg/parse.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/sli.lo: ../../init/initvg/sli.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/util.lo: ../../init/initvg/util.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/info.lo: ../../init/initvg/info.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/print.lo: ../../init/initvg/print.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/gdebug.lo: ../../init/initvg/gdebug.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
../../init/initvg/sst1init.lo: ../../init/initvg/sst1init.c
$(CC) -o $@ $(CFLAGS) -DPIC -fPIC -USST96 -c $<
endif
$(GLIDE_OBJECTS): fxinline.h fxgasm.h
fxinline.h: fxgasm

View File

@@ -218,19 +218,22 @@ GLIDE_OBJECTS += \
endif
endif
INIT_OBJECTS = \
../../init/init.o
ifeq ($(FX_GLIDE_HW),sst96)
GLIDE_OBJECTS += \
sst96.o \
sst96.o
INIT_OBJECTS += \
../../init/vg96drvr.o \
../../init/init96/init96.o \
../../init/init96/dxdrvr.o \
../../init/init96/initat3d.o \
../../init/init96/initmcrx.o
endif
GLIDE_OBJECTS += \
../../init/init.o \
../../init/init96/initmcrx.o \
../../init/initvg/gdebug.o
else
INIT_OBJECTS += \
../../init/vgdrvr.o \
../../init/vg96drvr.o \
../../init/initvg/gamma.o \
../../init/initvg/dac.o \
../../init/initvg/video.o \
@@ -240,7 +243,11 @@ GLIDE_OBJECTS += \
../../init/initvg/info.o \
../../init/initvg/print.o \
../../init/initvg/gdebug.o \
../../init/initvg/sst1init.o \
../../init/initvg/sst1init.o
endif
GLIDE_OBJECTS += \
$(INIT_OBJECTS) \
$(FX_GLIDE_SW)/newpci/pcilib/sst1_pci.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxmsr.o \
$(FX_GLIDE_SW)/newpci/pcilib/fxpci.o \
@@ -325,29 +332,6 @@ xdraw.o: xdraw.asm
xdraw96.o: xdraw96.asm
$(AS) -o $@ $(ASFLAGS) -D__MINGW32__ $<
ifeq ($(FX_GLIDE_HW),sst96)
../../init/initvg/gamma.o: ../../init/initvg/gamma.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/dac.o: ../../init/initvg/dac.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/video.o: ../../init/initvg/video.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/parse.o: ../../init/initvg/parse.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sli.o: ../../init/initvg/sli.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/util.o: ../../init/initvg/util.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/info.o: ../../init/initvg/info.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/print.o: ../../init/initvg/print.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gdebug.o: ../../init/initvg/gdebug.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sst1init.o: ../../init/initvg/sst1init.c
$(CC) -o $@ $(CFLAGS) -USST96 -c $<
endif
$(GLIDE_OBJECTS): fxinline.h fxgasm.h
fxinline.h: fxgasm.exe

View File

@@ -174,19 +174,22 @@ GLIDE_OBJECTS += \
endif
endif
INIT_OBJECTS = \
../../init/init.obj
ifeq ($(FX_GLIDE_HW),sst96)
GLIDE_OBJECTS += \
sst96.obj \
sst96.obj
INIT_OBJECTS += \
../../init/vg96drvr.obj \
../../init/init96/init96.obj \
../../init/init96/dxdrvr.obj \
../../init/init96/initat3d.obj \
../../init/init96/initmcrx.obj
endif
GLIDE_OBJECTS += \
../../init/init.obj \
../../init/init96/initmcrx.obj \
../../init/initvg/gdebug.obj
else
INIT_OBJECTS += \
../../init/vgdrvr.obj \
../../init/vg96drvr.obj \
../../init/initvg/gamma.obj \
../../init/initvg/dac.obj \
../../init/initvg/video.obj \
@@ -196,7 +199,11 @@ GLIDE_OBJECTS += \
../../init/initvg/info.obj \
../../init/initvg/print.obj \
../../init/initvg/gdebug.obj \
../../init/initvg/sst1init.obj \
../../init/initvg/sst1init.obj
endif
GLIDE_OBJECTS += \
$(INIT_OBJECTS) \
$(FX_GLIDE_SW)/newpci/pcilib/sst1_pci.obj \
$(FX_GLIDE_SW)/newpci/pcilib/fxmsr.obj \
$(FX_GLIDE_SW)/newpci/pcilib/fxpci.obj \
@@ -266,53 +273,6 @@ xdraw.obj: xdraw.asm
xdraw96.obj: xdraw96.asm
$(AS) -o $@ $(ASFLAGS) $<
ifeq ($(FX_GLIDE_HW),sst96)
# lazy solution instead of using FIXPATH:
ifeq ($(DOSMODE),1)
..\..\init\initvg\gamma.obj: ..\..\init\initvg\gamma.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\dac.obj: ..\..\init\initvg\dac.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\video.obj: ..\..\init\initvg\video.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\parse.obj: ..\..\init\initvg\parse.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\sli.obj: ..\..\init\initvg\sli.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\util.obj: ..\..\init\initvg\util.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\info.obj: ..\..\init\initvg\info.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\print.obj: ..\..\init\initvg\print.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\gdebug.obj: ..\..\init\initvg\gdebug.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
..\..\init\initvg\sst1init.obj: ..\..\init\initvg\sst1init.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
else
../../init/initvg/gamma.obj: ../../init/initvg/gamma.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/dac.obj: ../../init/initvg/dac.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/video.obj: ../../init/initvg/video.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/parse.obj: ../../init/initvg/parse.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sli.obj: ../../init/initvg/sli.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/util.obj: ../../init/initvg/util.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/info.obj: ../../init/initvg/info.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/print.obj: ../../init/initvg/print.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gdebug.obj: ../../init/initvg/gdebug.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sst1init.obj: ../../init/initvg/sst1init.c
$(CC) -fo=$@ $(CFLAGS) -USST96 -c $<
endif
endif
$(GLIDE_OBJECTS): fxinline.h fxgasm.h
fxinline.h: fxgasm.exe

View File

@@ -178,19 +178,22 @@ GLIDE_OBJECTS += \
endif
endif
INIT_OBJECTS = \
../../init/init.obj
ifeq ($(FX_GLIDE_HW),sst96)
GLIDE_OBJECTS += \
sst96.obj \
sst96.obj
INIT_OBJECTS += \
../../init/vg96drvr.obj \
../../init/init96/init96.obj \
../../init/init96/dxdrvr.obj \
../../init/init96/initat3d.obj \
../../init/init96/initmcrx.obj
endif
GLIDE_OBJECTS += \
../../init/init.obj \
../../init/init96/initmcrx.obj \
../../init/initvg/gdebug.obj
else
INIT_OBJECTS += \
../../init/vgdrvr.obj \
../../init/vg96drvr.obj \
../../init/initvg/gamma.obj \
../../init/initvg/dac.obj \
../../init/initvg/video.obj \
@@ -200,7 +203,11 @@ GLIDE_OBJECTS += \
../../init/initvg/info.obj \
../../init/initvg/print.obj \
../../init/initvg/gdebug.obj \
../../init/initvg/sst1init.obj \
../../init/initvg/sst1init.obj
endif
GLIDE_OBJECTS += \
$(INIT_OBJECTS) \
$(FX_GLIDE_SW)/newpci/pcilib/sst1_pci.obj \
$(FX_GLIDE_SW)/newpci/pcilib/fxmsr.obj \
$(FX_GLIDE_SW)/newpci/pcilib/fxpci.obj \
@@ -274,29 +281,6 @@ xdraw.obj: xdraw.asm
xdraw96.obj: xdraw96.asm
$(AS) -o $@ $(ASFLAGS) $<
ifeq ($(FX_GLIDE_HW),sst96)
../../init/initvg/gamma.obj: ../../init/initvg/gamma.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/dac.obj: ../../init/initvg/dac.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/video.obj: ../../init/initvg/video.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/parse.obj: ../../init/initvg/parse.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sli.obj: ../../init/initvg/sli.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/util.obj: ../../init/initvg/util.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/info.obj: ../../init/initvg/info.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/print.obj: ../../init/initvg/print.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/gdebug.obj: ../../init/initvg/gdebug.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
../../init/initvg/sst1init.obj: ../../init/initvg/sst1init.c
$(CC) -Fo$@ $(CFLAGS) -USST96 -c $<
endif
$(GLIDE_OBJECTS): fxinline.h fxgasm.h
fxinline.h: fxgasm.exe

View File

@@ -625,8 +625,16 @@ GR_ENTRY(grSstWinOpen, GrContext_t, (FxU32 hWnd,
** load fxoem2x.dll and map board
*/
oemi.version = OEMINIT_VERSION;
#if (GLIDE_PLATFORM & GLIDE_HW_SST1)
oemi.vendorID = sst1BoardInfo[_GlideRoot.current_sst].vendorID;
oemi.deviceID = sst1BoardInfo[_GlideRoot.current_sst].deviceID;
#else /* SST96 */
{ InitDeviceInfo info;
initGetDeviceInfo(_GlideRoot.current_sst, &info);
oemi.vendorID = info.vendorID;
oemi.deviceID = info.deviceID;
}
#endif
oemi.boardID = OEMINIT_INVALID_BOARD_ID;
oemi.subvendorID = OEMINIT_INVALID_BOARD_ID;
oemi.linearAddress = gc->base_ptr;
@@ -657,7 +665,8 @@ GR_ENTRY(grSstWinOpen, GrContext_t, (FxU32 hWnd,
ram and vald/invalid configurations
*/
#define SLI_DETECT _GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].sstBoard.VoodooConfig.sliDetect
/* this is for SST1 only: for an SST96 board, the above overlays with SST96Config.tmuRev == 1 ... */
#if (GLIDE_PLATFORM & GLIDE_HW_SST1)
if ((!SLI_DETECT) &&
((gc->fbuf_size <= 2 &&
resolution == GR_RESOLUTION_800x600 &&
@@ -673,6 +682,7 @@ GR_ENTRY(grSstWinOpen, GrContext_t, (FxU32 hWnd,
"insufficient memory\n" ));
goto BAILOUT;
}
#endif /* (GLIDE_PLATFORM & GLIDE_HW_SST1) */
#if (GLIDE_PLATFORM & GLIDE_HW_SST96)
if (resolution == GR_RESOLUTION_NONE) {

View File

@@ -41,8 +41,11 @@
#include <fxdpmi.h>
#endif
#if defined(SST96)
#include <init96.h>
#else
#include <sst1init.h>
#endif
#ifdef _WIN32
#define _WIN32_LEAN_AND_MEAN_
@@ -69,8 +72,11 @@ static inline void _outp_asm (unsigned short _port, unsigned char _data) {
Module Constants
-------------------------------------------------------------------*/
#if 0
static InitContext
contexts[NUM_3DFX_PRODUCTS]; /* pool of device contexts */
#endif
static InitContext initctx; /* device context - no pool anymore */
InitContext
*context; /* Current device context */
static InitDeviceInfo
@@ -214,18 +220,26 @@ initEnumHardware( InitHWEnumCallback *cb )
}
}
#if defined(SST1)
/* Sanity Check for SLI detection */
for( device = 0; device < numDevicesInSystem; device++ ) {
if ( hwInfo[device].hwClass == INIT_VOODOO &&
hwInfo[device].hwDep.vgInfo.sliDetect &&
if( hwInfo[device].hwDep.vgInfo.sliDetect &&
hwInfo[device].hwDep.vgInfo.slaveBaseAddr == 0 ) {
hwInfo[device].hwDep.vgInfo.sliDetect = FXFALSE;
}
}
#endif
#if 0
/* Initialize all drivers */
vgDriverInit( &contexts[INIT_VOODOO] );
vg96DriverInit( &contexts[INIT_VG96] );
#endif
#if !defined(SST96)
vgDriverInit( &initctx );
#else
vg96DriverInit( &initctx );
#endif
/* Mark the library as initialized */
libInitialized = FXTRUE;
@@ -351,7 +365,17 @@ FxBool
initDeviceSelect( FxU32 devNumber )
{
if ( devNumber < numDevicesInSystem ) {
#if 0 /**/
context = &contexts[hwInfo[devNumber].hwClass];
#endif
#ifdef SST96
if (hwInfo[devNumber].hwClass != INIT_VG96)
return FXFALSE;
#else
if (hwInfo[devNumber].hwClass != INIT_VOODOO)
return FXFALSE;
#endif
context = &initctx;
context->info = hwInfo[devNumber];
return FXTRUE;
}

View File

@@ -186,6 +186,35 @@ devNum,
physAddr,
fifoMTRRNum = 0xffffffff;
/*---- copied from initvg/parse.c here for SST96 ------------*/
const char*
myGetenv(const char* envKey)
{
FxBool callRealGetenvP = FXTRUE;
#if __WIN32__
/* NB: If were being called from cya code in
* DllMain(DLL_PROCESS_DETACH) because the current app has called
* exit() or dropped off of the end of main the per dll environ
* string table has been freed by the c runtime but has not been set
* to NULL. Bad things happen if this memory has been unmapped by
* the system or if the string cannot be found.
*/
{
HANDLE curProcessHandle = GetCurrentProcess();
DWORD exitCode = STILL_ACTIVE;
callRealGetenvP = ((curProcessHandle != NULL) &&
GetExitCodeProcess(curProcessHandle, &exitCode) &&
(exitCode == STILL_ACTIVE));
}
#endif /* __WIN32__ */
return (callRealGetenvP
? getenv(envKey)
: NULL);
}
/*-----------Debuging Info Data------------------------------*/
#ifdef GDBG_INFO_ON
/* NOTE:

View File

@@ -30,7 +30,6 @@
#include <string.h>
#include <gdebug.h>
#if SST96
static FxBool setVideo( FxU32 hWnd,
GrScreenResolution_t sRes,
GrScreenRefresh_t vRefresh,
@@ -149,30 +148,3 @@ void vg96DriverInit( InitContext *context ) {
context->initGammaTable = gammatable;
context->findVidTimingStruct = findvidtiming;
}
#else
/* I've got to stub this one to get the Voodoo Graphics glide to link */
void vg96DriverInit( InitContext *context ) {
context->setVideo = NULL;
context->restoreVideo = NULL;
context->enableTransport = NULL;
context->disableTransport = NULL;
context->swapBuffers = NULL;
context->status = NULL;
context->busy = NULL;
context->idle = NULL;
context->getBufferPtr = NULL;
context->renderBuffer = NULL;
context->origin = NULL;
context->ioCtl = NULL;
context->control = NULL;
context->wrapFIFO = NULL;
context->gamma = NULL;
context->sliPciOwner = NULL;
context->gammaRGB = NULL;
context->initGammaTable = NULL;
context->findVidTimingStruct = NULL;
}
#endif