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


  

Replace and Superseded Routines

Under certain conditions, it may be desirable to replace an installed driver. For example, a display card may use a temporary driver during system startup and then replace it with a better version from disk once the file system is running and initialized.

Replacing an installed driver is a two-step process. First, the driver to be replaced is requested to give up control of the device. Second, the new driver is installed and directed to take over management of the device. Two native driver commands are reserved for these tasks.

The kSupersededCommand selector tells the outgoing driver to begin the replacement process. The command contents are the same as with kFinalizeCommand. The outgoing driver should take the following actions:

The kReplaceCommand selector tells the incoming driver to assume control of the device. The command contents are the same as those of kInitializeCommand. The incoming driver should take the following actions:

Note

When replacing concurrent generic drivers, the Device Manager halts new commands until the replacement process is complete.


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