]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/IOMessage.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #ifndef __IOKIT_IOMESSAGE_H
25 #define __IOKIT_IOMESSAGE_H
27 #include <IOKit/IOReturn.h>
28 #include <IOKit/IOTypes.h>
30 typedef UInt32 IOMessage
;
32 #define iokit_common_msg(message) (UInt32)(sys_iokit|sub_iokit_common|message)
33 #define iokit_family_msg(sub,message) (UInt32)(sys_iokit|sub|message)
35 /*! @defined iokit_vendor_specific_msg
36 @discussion iokit_vendor_specific_msg passes messages in the sub_iokit_vendor_specific
37 subsystem. It can be used to be generate messages that are used for private
38 communication between vendor specific code with the IOService::message() etc. APIs.
40 #define iokit_vendor_specific_msg(message) (UInt32)(sys_iokit|sub_iokit_vendor_specific|message)
42 #define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
43 #define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
44 #define kIOMessageServiceIsResumed iokit_common_msg(0x030)
46 #define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
47 #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
48 #define kIOMessageServiceWasClosed iokit_common_msg(0x110)
50 #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
52 #define kIOMessageServicePropertyChange iokit_common_msg(0x130)
54 #define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
55 #define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
56 #define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
57 #define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
58 #define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
59 #define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
60 #define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
61 #define kIOMessageCanSystemSleep iokit_common_msg(0x270)
62 #define kIOMessageSystemWillSleep iokit_common_msg(0x280)
63 #define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
64 #define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
65 #define kIOMessageSystemWillRestart iokit_common_msg(0x310)
66 #define kIOMessageSystemWillPowerOn iokit_common_msg(0x320)
68 #endif /* ! __IOKIT_IOMESSAGE_H */