Initializing the hardware
The xxxInit.c file contains
the code to initialize and shut down the hardware.
If you are developing on a SVR5 system,
study the sample nte driver
for details about how to do this.
The logic for initializing that driver is:
xxxSetup-
This routine is passed a pointer to the
ddxScreenRequest(D4nfb)
structure.
xxxInit-
initialize the screen:
-
Initialize the
ddxScreenInfo(D4nfb)
structure.
Note that much of this structure is populated
by NFB itself if you use the
nfbScreenInit(D3nfb)
function;
when using one of the other
ScreenInit( )
functions, you must populate the whole structure
in your driver code.
-
Call the
InitHW( )
routine to initialize the hardware.
InitHW( )
calls the
SetGraphics(D3nfb)
function to put the adapter in graphics mode.
SetGraphics( )
is coded in the xxxScreen.c file
and typically calls the
SetGraphics( )
routine from the
grafinfo(DSP/4dsp)
file.
xxxCloseScreen-
Frees structures when the device is closed.
xxxDfbInit-
Initialize the driver's dumb frame buffer.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005