registerForInterruptType
Set callbacks for driver to call on interrupt events.
Declaration
virtual IOReturn registerForInterruptType(
IOSelectinterruptType,
IOFBInterruptProcproc,
OSObject *target,
void *ref,
void **interruptRef );Parameters
- interruptType:
One of these constants:
kIOFBVBLInterruptType Specifying a vertical blanking interrupt. kIOFBConnectInterruptType Specify the display connection should be resensed.
- proc:
C callback to be called by the driver when the specified event occurs.
- target:
Target parameter for the callback proc.
- ref:
Ref parameter for the callback proc.
- interruptRef:
The subclass should return an opaque reference to the installed interrupt handler, for use with unregisterInterrupt() and setInterruptState().
Return Value
An IOReturn code.
Overview
The IOFramebuffer class will call its subclasses to set callbacks to be called on interrupt events generated by hardware events. Only two are currently in use - vertical blank interrupts and connection changed interrupts.
See Also
Miscellaneous
connectFlagsconvertCursorImagedoI2CRequestenableControllerflushCursorgetApertureRangegetAppleSensegetAttributegetAttributeForConnectiongetConnectionCountgetCurrentDisplayMode(IODisplayModeID *, IOIndex *)getDDCBlockgetDisplayModeCountgetDisplayModesgetInformationForDisplayModegetPixelFormatsgetPixelFormatsForDisplayModegetPixelInformationgetStartupDisplayModegetTimingInfoForDisplayModegetVRAMRangehandleEventhasDDCConnectreadDDCClockreadDDCDatasetApertureEnablesetAttributesetAttributeForConnectionsetCLUTWithEntriessetCurrentDisplayModesetCursorImagesetCursorStatesetDDCClocksetDDCDatasetDetailedTimingssetDisplayModesetGammaTablesetInterruptStatesetStartupDisplayModeunregisterInterrupt(void *)unregisterInterrupt(void *, UInt32)validateDetailedTiming