]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOMessage.h
xnu-517.7.21.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_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23 #ifndef __IOKIT_IOMESSAGE_H
24 #define __IOKIT_IOMESSAGE_H
25
26 #include <IOKit/IOReturn.h>
27 #include <IOKit/IOTypes.h>
28
29 typedef UInt32 IOMessage;
30
31 #define iokit_common_msg(message) (UInt32)(sys_iokit|sub_iokit_common|message)
32 #define iokit_family_msg(sub,message) (UInt32)(sys_iokit|sub|message)
33
34 #define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
35 #define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
36 #define kIOMessageServiceIsResumed iokit_common_msg(0x030)
37
38 #define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
39 #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
40 #define kIOMessageServiceWasClosed iokit_common_msg(0x110)
41
42 #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
43
44 #define kIOMessageServicePropertyChange iokit_common_msg(0x130)
45
46 #define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
47 #define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
48 #define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
49 #define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
50 #define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
51 #define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
52 #define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
53 #define kIOMessageCanSystemSleep iokit_common_msg(0x270)
54 #define kIOMessageSystemWillSleep iokit_common_msg(0x280)
55 #define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
56 #define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
57 #define kIOMessageSystemWillRestart iokit_common_msg(0x310)
58 #define kIOMessageSystemWillPowerOn iokit_common_msg(0x320)
59
60 #endif /* ! __IOKIT_IOMESSAGE_H */