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


  

Driver Services Information Structure

The DriverServiceInfo structure describes the category, type, and version of a driver's programming interface services.

struct DriverServiceInfo {
                     OSType serviceCategory;
                     OSType serviceType;
                     NumVersion serviceVersion;
                     };

typedef struct DriverServiceInfo DriverServiceInfo;
typedef struct DriverServiceInfo *DriverServiceInfoPtr;

enum {              /*used in serviceCategory*/
                     kServiceCategoryDisplay = 'disp', /*display*/
                     kServiceCategoryOpentransport = 'otan',/*Open
                       Transport*/
                     kServiceCategoryBlockstorage = 'blok', /*block
                       storage*/
                     kServiceCategorySCSISim = 'scsi', /*SCSI SIM*/
                     kServiceCategoryndrvdriver = 'ndrv' /*generic*/
                     };

Note

Current display devices use the generic device type 'ndrv'.

Field descriptions

serviceCategory
Specifies driver support services for given device family. The following device families are currently defined:

Name

Supports services defined for

'blok' block drivers family
'disp' video display family
'ndrv' generic native driver devices
'otan' Open Transport
'scsi' SCSI Interface Module
serviceType
Subcategory (meaningful only in a given service category).
serviceVersion
Version resource ( 'vers' ) used to specify the version of a set of services. It lets interfaces be modified over time.

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