]>
Commit | Line | Data |
---|---|---|
1c79356b A |
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) | |
0b4e3aa0 | 39 | #define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101) |
1c79356b A |
40 | #define kIOMessageServiceWasClosed iokit_common_msg(0x110) |
41 | ||
42 | #define kIOMessageServiceBusyStateChange iokit_common_msg(0x120) | |
43 | ||
44 | #define kIOMessageCanDevicePowerOff iokit_common_msg(0x200) | |
45 | #define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210) | |
46 | #define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220) | |
47 | #define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230) | |
48 | #define kIOMessageCanSystemPowerOff iokit_common_msg(0x240) | |
49 | #define kIOMessageSystemWillPowerOff iokit_common_msg(0x250) | |
50 | #define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260) | |
51 | #define kIOMessageCanSystemSleep iokit_common_msg(0x270) | |
52 | #define kIOMessageSystemWillSleep iokit_common_msg(0x280) | |
53 | #define kIOMessageSystemWillNotSleep iokit_common_msg(0x290) | |
54 | #define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300) | |
0b4e3aa0 | 55 | #define kIOMessageSystemWillRestart iokit_common_msg(0x310) |
1c79356b A |
56 | |
57 | #endif /* ! __IOKIT_IOMESSAGE_H */ |