]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOMessage.h
5df7bffe23f2534c3b34a7d958f6b54ab66ce2fe
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 #ifndef __IOKIT_IOMESSAGE_H
27 #define __IOKIT_IOMESSAGE_H
29 #include <IOKit/IOReturn.h>
30 #include <IOKit/IOTypes.h>
32 typedef UInt32 IOMessage
;
34 #define iokit_common_msg(message) (UInt32)(sys_iokit|sub_iokit_common|message)
35 #define iokit_family_msg(sub,message) (UInt32)(sys_iokit|sub|message)
37 #define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
38 #define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
39 #define kIOMessageServiceIsResumed iokit_common_msg(0x030)
41 #define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
42 #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
43 #define kIOMessageServiceWasClosed iokit_common_msg(0x110)
45 #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
47 #define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
48 #define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
49 #define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
50 #define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
51 #define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
52 #define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
53 #define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
54 #define kIOMessageCanSystemSleep iokit_common_msg(0x270)
55 #define kIOMessageSystemWillSleep iokit_common_msg(0x280)
56 #define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
57 #define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
58 #define kIOMessageSystemWillRestart iokit_common_msg(0x310)
60 #endif /* ! __IOKIT_IOMESSAGE_H */