xref: /xnu-10063.121.3/iokit/IOKit/IOInterruptEventSource.h (revision 2c2f96dc2b9a4408a43d3150ae9c105355ca3daa)
1*2c2f96dcSApple OSS Distributions /*
2*2c2f96dcSApple OSS Distributions  * Copyright (c) 1998-2019 Apple Inc. All rights reserved.
3*2c2f96dcSApple OSS Distributions  *
4*2c2f96dcSApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*2c2f96dcSApple OSS Distributions  *
6*2c2f96dcSApple OSS Distributions  * This file contains Original Code and/or Modifications of Original Code
7*2c2f96dcSApple OSS Distributions  * as defined in and that are subject to the Apple Public Source License
8*2c2f96dcSApple OSS Distributions  * Version 2.0 (the 'License'). You may not use this file except in
9*2c2f96dcSApple OSS Distributions  * compliance with the License. The rights granted to you under the License
10*2c2f96dcSApple OSS Distributions  * may not be used to create, or enable the creation or redistribution of,
11*2c2f96dcSApple OSS Distributions  * unlawful or unlicensed copies of an Apple operating system, or to
12*2c2f96dcSApple OSS Distributions  * circumvent, violate, or enable the circumvention or violation of, any
13*2c2f96dcSApple OSS Distributions  * terms of an Apple operating system software license agreement.
14*2c2f96dcSApple OSS Distributions  *
15*2c2f96dcSApple OSS Distributions  * Please obtain a copy of the License at
16*2c2f96dcSApple OSS Distributions  * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*2c2f96dcSApple OSS Distributions  *
18*2c2f96dcSApple OSS Distributions  * The Original Code and all software distributed under the License are
19*2c2f96dcSApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*2c2f96dcSApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*2c2f96dcSApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*2c2f96dcSApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*2c2f96dcSApple OSS Distributions  * Please see the License for the specific language governing rights and
24*2c2f96dcSApple OSS Distributions  * limitations under the License.
25*2c2f96dcSApple OSS Distributions  *
26*2c2f96dcSApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*2c2f96dcSApple OSS Distributions  */
28*2c2f96dcSApple OSS Distributions /*
29*2c2f96dcSApple OSS Distributions  *  Copyright (c) 1998 Apple Computer, Inc.	 All rights reserved.
30*2c2f96dcSApple OSS Distributions  *
31*2c2f96dcSApple OSS Distributions  *  HISTORY
32*2c2f96dcSApple OSS Distributions  *   1998-7-13	Godfrey van der Linden(gvdl)
33*2c2f96dcSApple OSS Distributions  *       Created.
34*2c2f96dcSApple OSS Distributions  *   1998-10-30	Godfrey van der Linden(gvdl)
35*2c2f96dcSApple OSS Distributions  *       Converted to C++
36*2c2f96dcSApple OSS Distributions  */
37*2c2f96dcSApple OSS Distributions 
38*2c2f96dcSApple OSS Distributions #ifndef _IOKIT_IOINTERRUPTEVENTSOURCE_H
39*2c2f96dcSApple OSS Distributions #define _IOKIT_IOINTERRUPTEVENTSOURCE_H
40*2c2f96dcSApple OSS Distributions 
41*2c2f96dcSApple OSS Distributions #include <libkern/c++/OSPtr.h>
42*2c2f96dcSApple OSS Distributions #include <IOKit/IOEventSource.h>
43*2c2f96dcSApple OSS Distributions 
44*2c2f96dcSApple OSS Distributions class IOService;
45*2c2f96dcSApple OSS Distributions 
46*2c2f96dcSApple OSS Distributions struct IOInterruptAccountingData;
47*2c2f96dcSApple OSS Distributions 
48*2c2f96dcSApple OSS Distributions /*! @class IOInterruptEventSource : public IOEventSource
49*2c2f96dcSApple OSS Distributions  *   @abstract Event source for interrupt delivery to work-loop based drivers.
50*2c2f96dcSApple OSS Distributions  *   @discussion The IOInterruptEventSource is a generic object that delivers calls interrupt routines in it's client in a guaranteed single-threaded manner.  IOInterruptEventSource is part of the IOKit $link IOWorkLoop infrastructure where the semantic that one and only one action method is executing within a work-loops event chain.
51*2c2f96dcSApple OSS Distributions  *  <br><br>
52*2c2f96dcSApple OSS Distributions  *  When the action method is called in the client member function will receive 2 arguments, (IOEventSource *) sender and (int) count, See $link IOInterruptEventSource::Action.	Where sender will be reference to the interrupt that occurred and the count will be computed by the difference between the $link producerCount and $link consumerCount.  This number may not be reliable as no attempt is made to adjust for around the world type problems but is provided for general information and statistic gathering.
53*2c2f96dcSApple OSS Distributions  *  <br><br>
54*2c2f96dcSApple OSS Distributions  *  In general a client will use the factory member function to create and initialise the event source and then add it to their work-loop.  It is the work loop's responsiblity to maintain the new event source in it's event chain.  See $link IOWorkLoop.
55*2c2f96dcSApple OSS Distributions  *  <br><br>
56*2c2f96dcSApple OSS Distributions  *  An interrupt event source attaches itself to the given provider's interrupt source at initialisation time.  At this time it determines if it is connected to a level or edge triggered interrupt.  If the interrupt is an level triggered interrupt the event source automatically disables the interrupt source at primary interrupt time and after it call's the client it automatically reenables the interrupt.  This action is fairly expensive but it is 100% safe and defaults sensibly so that the driver writer does not have to implement type dependant interrupt routines.  So to repeat, the driver writer does not have to be concerned by the actual underlying interrupt mechanism as the event source hides the complexity.
57*2c2f96dcSApple OSS Distributions  *  <br><br>
58*2c2f96dcSApple OSS Distributions  *  Saying this if the hardware is a multi-device card, for instance a 4 port NIC, where all of the devices are sharing one level triggered interrupt AND it is possible to determine each port's interrupt state non-destructively then the $link IOFilterInterruptEventSource would be a better choice.
59*2c2f96dcSApple OSS Distributions  *  <br><br>
60*2c2f96dcSApple OSS Distributions  *  Warning:  All IOInterruptEventSources are created in the disabled state.  If you want to actually schedule interrupt delivery do not forget to enable the source.
61*2c2f96dcSApple OSS Distributions  */
62*2c2f96dcSApple OSS Distributions class IOInterruptEventSource : public IOEventSource
63*2c2f96dcSApple OSS Distributions {
64*2c2f96dcSApple OSS Distributions 	OSDeclareDefaultStructors(IOInterruptEventSource);
65*2c2f96dcSApple OSS Distributions 
66*2c2f96dcSApple OSS Distributions public:
67*2c2f96dcSApple OSS Distributions /*! @typedef Action
68*2c2f96dcSApple OSS Distributions  *   @discussion 'C' pointer prototype of functions that are called in a single threaded context when an interrupt occurs.
69*2c2f96dcSApple OSS Distributions  *   @param owner Pointer to client instance.
70*2c2f96dcSApple OSS Distributions  *   @param sender Pointer to generation interrupt event source.
71*2c2f96dcSApple OSS Distributions  *   @param count Number of interrupts seen before delivery. */
72*2c2f96dcSApple OSS Distributions 	typedef void (*Action)(OSObject *owner, IOInterruptEventSource *sender, int count);
73*2c2f96dcSApple OSS Distributions 
74*2c2f96dcSApple OSS Distributions #ifdef __BLOCKS__
75*2c2f96dcSApple OSS Distributions 	typedef void (^ActionBlock)(IOInterruptEventSource *sender, int count);
76*2c2f96dcSApple OSS Distributions #endif /* __BLOCKS__ */
77*2c2f96dcSApple OSS Distributions 
78*2c2f96dcSApple OSS Distributions /*! @defined IOInterruptEventAction
79*2c2f96dcSApple OSS Distributions  *   @discussion Backward compatibilty define for the old non-class scoped type definition.  See $link IOInterruptEventSource::Action */
80*2c2f96dcSApple OSS Distributions #define IOInterruptEventAction IOInterruptEventSource::Action
81*2c2f96dcSApple OSS Distributions 
82*2c2f96dcSApple OSS Distributions protected:
83*2c2f96dcSApple OSS Distributions /*! @var provider IOService that provides interrupts for delivery. */
84*2c2f96dcSApple OSS Distributions 	IOService *provider;
85*2c2f96dcSApple OSS Distributions 
86*2c2f96dcSApple OSS Distributions /*! @var intIndex */
87*2c2f96dcSApple OSS Distributions 	int intIndex;
88*2c2f96dcSApple OSS Distributions 
89*2c2f96dcSApple OSS Distributions /*! @var producerCount
90*2c2f96dcSApple OSS Distributions  *   Current count of produced interrupts that have been received. */
91*2c2f96dcSApple OSS Distributions 	volatile unsigned int producerCount;
92*2c2f96dcSApple OSS Distributions 
93*2c2f96dcSApple OSS Distributions /*! @var consumerCount
94*2c2f96dcSApple OSS Distributions  *   Current count of produced interrupts that the owner has been informed of. */
95*2c2f96dcSApple OSS Distributions 	unsigned int consumerCount;
96*2c2f96dcSApple OSS Distributions 
97*2c2f96dcSApple OSS Distributions /*! @var autoDisable Do we need to automatically disable the interrupt source when we take an interrupt, i.e. we are level triggered. */
98*2c2f96dcSApple OSS Distributions 	bool autoDisable;
99*2c2f96dcSApple OSS Distributions 
100*2c2f96dcSApple OSS Distributions /*! @var explicitDisable Has the user expicitly disabled this event source, if so then do not overide their request when returning from the callout */
101*2c2f96dcSApple OSS Distributions 	bool explicitDisable;
102*2c2f96dcSApple OSS Distributions 
103*2c2f96dcSApple OSS Distributions /*! @struct ExpansionData
104*2c2f96dcSApple OSS Distributions  *   @discussion This structure will be used to expand the capablilties of the IOWorkLoop in the future.
105*2c2f96dcSApple OSS Distributions  */
106*2c2f96dcSApple OSS Distributions 	struct ExpansionData {
107*2c2f96dcSApple OSS Distributions 		IOInterruptAccountingData * statistics;
108*2c2f96dcSApple OSS Distributions 	};
109*2c2f96dcSApple OSS Distributions 
110*2c2f96dcSApple OSS Distributions /*! @var reserved
111*2c2f96dcSApple OSS Distributions  *   Reserved for future use.  (Internal use only)  */
112*2c2f96dcSApple OSS Distributions 	APPLE_KEXT_WSHADOW_PUSH;
113*2c2f96dcSApple OSS Distributions 	ExpansionData *reserved;
114*2c2f96dcSApple OSS Distributions 	APPLE_KEXT_WSHADOW_POP;
115*2c2f96dcSApple OSS Distributions 
116*2c2f96dcSApple OSS Distributions /*! @function free
117*2c2f96dcSApple OSS Distributions  *   @abstract Sub-class implementation of free method, disconnects from the interrupt source. */
118*2c2f96dcSApple OSS Distributions 	virtual void free() APPLE_KEXT_OVERRIDE;
119*2c2f96dcSApple OSS Distributions 
120*2c2f96dcSApple OSS Distributions /*! @function checkForWork
121*2c2f96dcSApple OSS Distributions  *   @abstract Pure Virtual member function used by IOWorkLoop for issueing a client calls.
122*2c2f96dcSApple OSS Distributions  *   @discussion This function called when the work-loop is ready to check for any work to do and then to call out the owner/action.
123*2c2f96dcSApple OSS Distributions  *   @result Return true if this function needs to be called again before all its outstanding events have been processed. */
124*2c2f96dcSApple OSS Distributions 	virtual bool checkForWork() APPLE_KEXT_OVERRIDE;
125*2c2f96dcSApple OSS Distributions 
126*2c2f96dcSApple OSS Distributions /*! @function setWorkLoop
127*2c2f96dcSApple OSS Distributions  *   @abstract Sub-class implementation of setWorkLoop method. */
128*2c2f96dcSApple OSS Distributions 	virtual void setWorkLoop(IOWorkLoop *inWorkLoop) APPLE_KEXT_OVERRIDE;
129*2c2f96dcSApple OSS Distributions 
130*2c2f96dcSApple OSS Distributions public:
131*2c2f96dcSApple OSS Distributions 
132*2c2f96dcSApple OSS Distributions /*! @function interruptEventSource
133*2c2f96dcSApple OSS Distributions  *   @abstract Factory function for IOInterruptEventSources creation and initialisation.
134*2c2f96dcSApple OSS Distributions  *   @param owner Owning client of the new event source.
135*2c2f96dcSApple OSS Distributions  *   @param action 'C' Function to call when something happens.
136*2c2f96dcSApple OSS Distributions  *   @param 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.
137*2c2f96dcSApple OSS Distributions  *   @param intIndex The index of the interrupt within the provider's interrupt sources.  Defaults to 0, i.e. the first interrupt in the provider.
138*2c2f96dcSApple OSS Distributions  *   @result A new interrupt event source if successfully created and initialised, 0 otherwise.  */
139*2c2f96dcSApple OSS Distributions 	static OSPtr<IOInterruptEventSource>
140*2c2f96dcSApple OSS Distributions 	interruptEventSource(OSObject *owner,
141*2c2f96dcSApple OSS Distributions 	    Action action,
142*2c2f96dcSApple OSS Distributions 	    IOService *provider = NULL,
143*2c2f96dcSApple OSS Distributions 	    int intIndex = 0);
144*2c2f96dcSApple OSS Distributions 
145*2c2f96dcSApple OSS Distributions 
146*2c2f96dcSApple OSS Distributions #ifdef __BLOCKS__
147*2c2f96dcSApple OSS Distributions /*! @function interruptEventSource
148*2c2f96dcSApple OSS Distributions  *   @abstract Factory function for IOInterruptEventSources creation and initialisation.
149*2c2f96dcSApple OSS Distributions  *   @param owner Owning client of the new event source.
150*2c2f96dcSApple OSS Distributions  *   @param provider IOService that represents the interrupt source.  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.
151*2c2f96dcSApple OSS Distributions  *   @param intIndex The index of the interrupt within the provider's interrupt sources.
152*2c2f96dcSApple OSS Distributions  *   @param action Block for the callout routine of this event source..
153*2c2f96dcSApple OSS Distributions  *   @result A new interrupt event source if successfully created and initialised, 0 otherwise.  */
154*2c2f96dcSApple OSS Distributions 	static OSPtr<IOInterruptEventSource>
155*2c2f96dcSApple OSS Distributions 	interruptEventSource(OSObject *owner,
156*2c2f96dcSApple OSS Distributions 	    IOService *provider,
157*2c2f96dcSApple OSS Distributions 	    int intIndex,
158*2c2f96dcSApple OSS Distributions 	    ActionBlock action);
159*2c2f96dcSApple OSS Distributions #endif /* __BLOCKS__ */
160*2c2f96dcSApple OSS Distributions 
161*2c2f96dcSApple OSS Distributions #if XNU_KERNEL_PRIVATE
162*2c2f96dcSApple OSS Distributions 	static void actionToBlock(OSObject *owner, IOInterruptEventSource *sender, int count);
163*2c2f96dcSApple OSS Distributions #endif /* XNU_KERNEL_PRIVATE */
164*2c2f96dcSApple OSS Distributions 
165*2c2f96dcSApple OSS Distributions /*! @function init
166*2c2f96dcSApple OSS Distributions  *   @abstract Primary initialiser for the IOInterruptEventSource class.
167*2c2f96dcSApple OSS Distributions  *   @param owner Owning client of the new event source.
168*2c2f96dcSApple OSS Distributions  *   @param action 'C' Function to call when something happens.
169*2c2f96dcSApple OSS Distributions  *   @param 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.
170*2c2f96dcSApple OSS Distributions  *   @param intIndex The index of the interrupt within the provider's interrupt sources.  Defaults to 0, i.e. the first interrupt in the provider.
171*2c2f96dcSApple OSS Distributions  *   @result true if the inherited classes and this instance initialise
172*2c2f96dcSApple OSS Distributions  *  successfully.  */
173*2c2f96dcSApple OSS Distributions 	virtual bool init(OSObject *owner,
174*2c2f96dcSApple OSS Distributions 	    Action action,
175*2c2f96dcSApple OSS Distributions 	    IOService *provider = NULL,
176*2c2f96dcSApple OSS Distributions 	    int intIndex = 0);
177*2c2f96dcSApple OSS Distributions 
178*2c2f96dcSApple OSS Distributions /*! @function enable
179*2c2f96dcSApple OSS Distributions  *   @abstract Enable event source.
180*2c2f96dcSApple OSS Distributions  *   @discussion A subclass implementation is expected to respect the enabled
181*2c2f96dcSApple OSS Distributions  *  state when checkForWork is called.  Calling this function will cause the
182*2c2f96dcSApple OSS Distributions  *  work-loop to be signalled so that a checkForWork is performed. */
183*2c2f96dcSApple OSS Distributions 	virtual void enable() APPLE_KEXT_OVERRIDE;
184*2c2f96dcSApple OSS Distributions 
185*2c2f96dcSApple OSS Distributions /*! @function disable
186*2c2f96dcSApple OSS Distributions  *   @abstract Disable event source.
187*2c2f96dcSApple OSS Distributions  *   @discussion A subclass implementation is expected to respect the enabled
188*2c2f96dcSApple OSS Distributions  *  state when checkForWork is called. */
189*2c2f96dcSApple OSS Distributions 	virtual void disable() APPLE_KEXT_OVERRIDE;
190*2c2f96dcSApple OSS Distributions 
191*2c2f96dcSApple OSS Distributions /*! @function getProvider
192*2c2f96dcSApple OSS Distributions  *   @abstract Get'ter for $link provider variable.
193*2c2f96dcSApple OSS Distributions  *   @result value of provider. */
194*2c2f96dcSApple OSS Distributions 	virtual const IOService *getProvider() const;
195*2c2f96dcSApple OSS Distributions 
196*2c2f96dcSApple OSS Distributions /*! @function getIntIndex
197*2c2f96dcSApple OSS Distributions  *   @abstract Get'ter for $link intIndex interrupt index variable.
198*2c2f96dcSApple OSS Distributions  *   @result value of intIndex. */
199*2c2f96dcSApple OSS Distributions 	virtual int getIntIndex() const;
200*2c2f96dcSApple OSS Distributions 
201*2c2f96dcSApple OSS Distributions /*! @function getAutoDisable
202*2c2f96dcSApple OSS Distributions  *   @abstract Get'ter for $link autoDisable variable.
203*2c2f96dcSApple OSS Distributions  *   @result value of autoDisable. */
204*2c2f96dcSApple OSS Distributions 	virtual bool getAutoDisable() const;
205*2c2f96dcSApple OSS Distributions 
206*2c2f96dcSApple OSS Distributions /*! @function interruptOccurred
207*2c2f96dcSApple OSS Distributions  *   @abstract Functions that get called by the interrupt controller. See $link IOService::registerInterrupt
208*2c2f96dcSApple OSS Distributions  *   @param nub Where did the interrupt originate from
209*2c2f96dcSApple OSS Distributions  *   @param ind What is this interrupts index within 'nub'. */
210*2c2f96dcSApple OSS Distributions 	virtual void interruptOccurred(void *, IOService *nub, int ind);
211*2c2f96dcSApple OSS Distributions 
212*2c2f96dcSApple OSS Distributions /*! @function normalInterruptOccurred
213*2c2f96dcSApple OSS Distributions  *   @abstract Functions that get called by the interrupt controller.See $link IOService::registerInterrupt
214*2c2f96dcSApple OSS Distributions  *   @param nub Where did the interrupt originate from
215*2c2f96dcSApple OSS Distributions  *   @param ind What is this interrupts index within 'nub'. */
216*2c2f96dcSApple OSS Distributions 	virtual void normalInterruptOccurred(void *, IOService *nub, int ind);
217*2c2f96dcSApple OSS Distributions 
218*2c2f96dcSApple OSS Distributions /*! @function disableInterruptOccurred
219*2c2f96dcSApple OSS Distributions  *   @abstract Functions that get called by the interrupt controller.See $link IOService::registerInterrupt
220*2c2f96dcSApple OSS Distributions  *   @param nub Where did the interrupt originate from
221*2c2f96dcSApple OSS Distributions  *   @param ind What is this interrupts index within 'nub'. */
222*2c2f96dcSApple OSS Distributions 	virtual void disableInterruptOccurred(void *, IOService *nub, int ind);
223*2c2f96dcSApple OSS Distributions 
224*2c2f96dcSApple OSS Distributions /*! @function warmCPU
225*2c2f96dcSApple OSS Distributions  *   @abstract Tries to reduce latency for an interrupt which will be received near a specified time.
226*2c2f96dcSApple OSS Distributions  *   @discussion Warms up a CPU in advance of an interrupt so that the interrupt may be serviced with predictable latency.
227*2c2f96dcSApple OSS Distributions  *   The warm-up is not periodic; callers should call warmCPU once in advance of each interrupt.  It is recommended that
228*2c2f96dcSApple OSS Distributions  *   requests be issues in serial (i.e. each after the target for the previous call has elapsed), as there is a systemwide
229*2c2f96dcSApple OSS Distributions  *   cap on the number of outstanding requests.  This routine may be disruptive to the system if used with very small intervals
230*2c2f96dcSApple OSS Distributions  *   between requests; it should be used only in cases where interrupt latency is absolutely critical, and tens or hundreds of
231*2c2f96dcSApple OSS Distributions  *   milliseconds between targets is the expected time scale.  NOTE: it is not safe to call this method with interrupts disabled.
232*2c2f96dcSApple OSS Distributions  *   @param abstime Time at which interrupt is expected. */
233*2c2f96dcSApple OSS Distributions 	IOReturn warmCPU(uint64_t abstime);
234*2c2f96dcSApple OSS Distributions 
235*2c2f96dcSApple OSS Distributions /*! @function enablePrimaryInterruptTimestamp
236*2c2f96dcSApple OSS Distributions  *   @abstract Enables collection of mach_absolute_time at primary interrupt.
237*2c2f96dcSApple OSS Distributions  *   @discussion Enables collection of mach_absolute_time at primary interrupt.
238*2c2f96dcSApple OSS Distributions  *   @param enable True to enable timestamp. */
239*2c2f96dcSApple OSS Distributions 
240*2c2f96dcSApple OSS Distributions 	void enablePrimaryInterruptTimestamp(bool enable);
241*2c2f96dcSApple OSS Distributions 
242*2c2f96dcSApple OSS Distributions /*! @function getPrimaryInterruptTimestamp
243*2c2f96dcSApple OSS Distributions  *   @abstract Returns mach_absolute_time timestamp of primary interrupt.
244*2c2f96dcSApple OSS Distributions  *   @discussion Returns mach_absolute_time timestamp of primary interrupt.
245*2c2f96dcSApple OSS Distributions  *   @result Value of the timestamp. Zero if never interrupted, or -1ULL if timestamp collection has not been enabled. */
246*2c2f96dcSApple OSS Distributions 
247*2c2f96dcSApple OSS Distributions 	uint64_t getPrimaryInterruptTimestamp();
248*2c2f96dcSApple OSS Distributions 
249*2c2f96dcSApple OSS Distributions private:
250*2c2f96dcSApple OSS Distributions 	IOReturn registerInterruptHandler(IOService *inProvider, int inIntIndex);
251*2c2f96dcSApple OSS Distributions 	void unregisterInterruptHandler(IOService *inProvider, int inIntIndex);
252*2c2f96dcSApple OSS Distributions 
253*2c2f96dcSApple OSS Distributions private:
254*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 0);
255*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 1);
256*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 2);
257*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 3);
258*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 4);
259*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 5);
260*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 6);
261*2c2f96dcSApple OSS Distributions 	OSMetaClassDeclareReservedUnused(IOInterruptEventSource, 7);
262*2c2f96dcSApple OSS Distributions };
263*2c2f96dcSApple OSS Distributions 
264*2c2f96dcSApple OSS Distributions #endif /* !_IOKIT_IOINTERRUPTEVENTSOURCE_H */
265