PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

SwitchMode (csCode = 10)

The SwitchMode routine is required.

OSErr = Control(theDeviceRefNum, cscSwitchMode,
                     &theVDSwitchInfoRecord );
--> csMode
Relative bit depth to switch to
--> csData
DisplayModeID to switch into
--> csPage
Video page number to switch into
<-- csBaseAddr
Base address of the new DisplayModeID

The VDSwitchInfoRec structure, described in Data Structures, indicates what depth mode to switch to, the DisplayModeID value for the new display mode, and the number of the video page to switch to. The driver uses the csBaseAddr field of VDSwitchInfoRec to return to the base address of the video page specified by csPage.

Note

Unlike NuBus declaration ROM-based drivers, the SwitchMode routine should not modify the driver's AuxDCE dCtlSlotId field.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)