]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOMessage.h
xnu-792.12.6.tar.gz
[apple/xnu.git] / iokit / IOKit / IOMessage.h
1 /*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30
31 #ifndef __IOKIT_IOMESSAGE_H
32 #define __IOKIT_IOMESSAGE_H
33
34 #include <IOKit/IOReturn.h>
35 #include <IOKit/IOTypes.h>
36
37 typedef UInt32 IOMessage;
38
39 #define iokit_common_msg(message) (UInt32)(sys_iokit|sub_iokit_common|message)
40 #define iokit_family_msg(sub,message) (UInt32)(sys_iokit|sub|message)
41
42 /*! @defined iokit_vendor_specific_msg
43 @discussion iokit_vendor_specific_msg passes messages in the sub_iokit_vendor_specific
44 subsystem. It can be used to be generate messages that are used for private
45 communication between vendor specific code with the IOService::message() etc. APIs.
46 */
47 #define iokit_vendor_specific_msg(message) (UInt32)(sys_iokit|sub_iokit_vendor_specific|message)
48
49 #define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
50 #define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
51 #define kIOMessageServiceIsResumed iokit_common_msg(0x030)
52
53 #define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
54 #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
55 #define kIOMessageServiceWasClosed iokit_common_msg(0x110)
56
57 #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
58
59 #define kIOMessageServicePropertyChange iokit_common_msg(0x130)
60
61 #define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
62 #define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
63 #define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
64 #define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
65 #define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
66 #define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
67 #define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
68 #define kIOMessageCanSystemSleep iokit_common_msg(0x270)
69 #define kIOMessageSystemWillSleep iokit_common_msg(0x280)
70 #define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
71 #define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
72 #define kIOMessageSystemWillRestart iokit_common_msg(0x310)
73 #define kIOMessageSystemWillPowerOn iokit_common_msg(0x320)
74
75 #endif /* ! __IOKIT_IOMESSAGE_H */