protected:
virtual bool checkForWork();
This function called when the work-loop is ready to check for any work to do and then to call out the owner/action.
Result: Return true if this function needs to be called again before all its outstanding events have been processed.public:
virtual void disable();
A subclass implementation is expected to respect the enabled state when checkForWork is called.
public:
virtual void disableInterruptOccurred(void *, IOService *nub, int ind);
Name Description nub Where did the interrupt originate from ind What is this interrupts index within 'nub'.
public:
virtual void enable();
A subclass implementation is expected to respect the enabled state when checkForWork is called. Calling this function will cause the work-loop to be signalled so that a checkForWork is performed.
protected:
virtual void free();
Result: value of autoDisable.public:
virtual bool getAutoDisable() const;
Result: value of intIndex.public:
virtual int getIntIndex() const;
Result: value of provider.public:
virtual const IOService *getProvider() const;
public:
virtual bool init(OSObject *owner, Action action, IOService *provider = 0, int intIndex = 0);
Result: true if the inherited classes and this instance initialise successfully.
Name Description owner Owning client of the new event source. action 'C' Function to call when something happens. provider IOService that represents the interrupt source. Defaults to 0. When no provider is defined the event source assumes that the client will in some manner call the interruptOccured method explicitly. This will start the ball rolling for safe delivery of asynchronous event's into the driver. intIndex The index of the interrupt within the provider's interrupt sources. Defaults to 0, i.e. the first interrupt in the provider.
public:
static IOInterruptEventSource * interruptEventSource(OSObject *owner, Action action, IOService *provider = 0, int intIndex = 0);
Result: A new interrupt event source if successfully created and initialised, 0 otherwise.
Name Description owner Owning client of the new event source. action 'C' Function to call when something happens. provider IOService that represents the interrupt source. Defaults to 0. When no provider is defined the event source assumes that the client will in some manner call the interruptOccured method explicitly. This will start the ball rolling for safe delivery of asynchronous event's into the driver. intIndex The index of the interrupt within the provider's interrupt sources. Defaults to 0, i.e. the first interrupt in the provider.
public:
virtual void interruptOccurred(void *, IOService *nub, int ind);
Name Description nub Where did the interrupt originate from ind What is this interrupts index within 'nub'.
public:
virtual void normalInterruptOccurred(void *, IOService *nub, int ind);
Name Description nub Where did the interrupt originate from ind What is this interrupts index within 'nub'.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)