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


  

VSLNewInterruptService

OSErr VSLNewInterruptService(RegEntryIDPtr serviceOwner, InterruptServiceType
                     serviceType,
                     InterruptServiceId* serviceID);
serviceOwner
RegEntryIDPtr passed to the driver at install time.
serviceType
Type of interrupt to be created.
serviceID
Returned to specify the service for further calls to the VSL.
typedef unsigned long               InterruptServiceId;
typedef ResType                     InterruptServiceType;
enum {
    kVBLService = 'vbl';           // vertical blanking
    kHBLService = 'hbl';           // horizontal blanking
    kFrameService = 'fram';         // interlace mode
};
DESCRIPTION

VSLNewInterruptService creates a new interrupt for a graphics device. The service owner is the RegEntryIDPtr value passed to the driver at install time. This is used to identify the owner. The service type is a resType value indicating the type of interrupt to be created. At this time only one interrupt of a given type can be created by a driver. The serviceID value is returned by VSL and is used to specify the service for any further calls to VSL.

VSLNewInterruptService can be called only at driver install, open, and close times--times when memory management calls are safe.


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