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


  

Implementing Driver Gestalt

If a native driver has indicated support for driver gestalt, as described in the previous section, it must conform to these rules:

Note

The kcsDriverGestalt and kcsDriverConfigure codes produce the principal functionality of the native driver model. For historical reasons, setting the DriverGestaltEnable bit also requires that the other calls listed in Table 8-3 either be supported or return an error code. Future control or status calls for all native PCI drivers will be implemented using only selectors through DriverGestalt and DriverConfigure.

Table 8-3 Driver gestalt codes

Name

Value

Description

Status codes

kcsDriverGestalt 43 General status information
kcsGetPowerMode 70 Returns card power mode 1
kcsReturnDeviceID 120 Returns SCSI device ID in csParam[0]

Control codes

kcsDriverConfigure 43 General configuration commands
kcsSetStartupDrive 44 Designates partition as a boot partition
kcsSetPowerMode 70 Sets card power mode *

1. For a discussion of power modes, see Card Power Controls.

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