]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
ff6e181a A |
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 | |
11 | * file. | |
1c79356b | 12 | * |
ff6e181a A |
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 | |
1c79356b A |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
ff6e181a A |
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. | |
1c79356b A |
20 | * |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | */ | |
23 | ||
24 | #ifndef __IOKIT_IOMESSAGE_H | |
25 | #define __IOKIT_IOMESSAGE_H | |
26 | ||
27 | #include <IOKit/IOReturn.h> | |
28 | #include <IOKit/IOTypes.h> | |
29 | ||
30 | typedef UInt32 IOMessage; | |
31 | ||
91447636 A |
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) | |
34 | ||
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. | |
39 | */ | |
40 | #define iokit_vendor_specific_msg(message) (UInt32)(sys_iokit|sub_iokit_vendor_specific|message) | |
1c79356b A |
41 | |
42 | #define kIOMessageServiceIsTerminated iokit_common_msg(0x010) | |
43 | #define kIOMessageServiceIsSuspended iokit_common_msg(0x020) | |
44 | #define kIOMessageServiceIsResumed iokit_common_msg(0x030) | |
45 | ||
46 | #define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100) | |
0b4e3aa0 | 47 | #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101) |
1c79356b A |
48 | #define kIOMessageServiceWasClosed iokit_common_msg(0x110) |
49 | ||
50 | #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120) | |
51 | ||
55e303ae A |
52 | #define kIOMessageServicePropertyChange iokit_common_msg(0x130) |
53 | ||
1c79356b A |
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) | |
0b4e3aa0 | 65 | #define kIOMessageSystemWillRestart iokit_common_msg(0x310) |
55e303ae | 66 | #define kIOMessageSystemWillPowerOn iokit_common_msg(0x320) |
1c79356b A |
67 | |
68 | #endif /* ! __IOKIT_IOMESSAGE_H */ |