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


  

Writing a Generic Device Driver

This section discusses writing a generic native driver--one that can respond to Device Manager requests in the second generation of Power Macintosh computers. Although drivers may contain PowerPC assembly-language internal code, a native driver's interface should be written in C.

Before you decide to write your own device driver, you should consider whether your task can be more easily accomplished using one of the standard Macintosh drivers described in Inside Macintosh. In general, you should consider writing a device driver only if your hardware device or system service needs to be accessed at unpredictable times or by more than one application. For example, if you develop a new output device that you want to make available to any application, you might need to write a custom driver.

This section describes the Native Driver package and tells you how to

Note

Only generic drivers interact with the Device Manager. The only part of this section that applies to family drivers is Driver Description Structure.

Native Driver Package

DoDriverIO Entry Point

Getting Command Information

Responding to Device Manager Requests

Handling Asynchronous I/O

Installing a Device Driver


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