]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/IOMessage.h
xnu-344.49.tar.gz
[apple/xnu.git] / iokit / IOKit / IOMessage.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
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
13 * file.
14 *
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
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.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26#ifndef __IOKIT_IOMESSAGE_H
27#define __IOKIT_IOMESSAGE_H
28
29#include <IOKit/IOReturn.h>
30#include <IOKit/IOTypes.h>
31
32typedef UInt32 IOMessage;
33
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)
36
37#define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
38#define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
39#define kIOMessageServiceIsResumed iokit_common_msg(0x030)
40
41#define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
0b4e3aa0 42#define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
1c79356b
A
43#define kIOMessageServiceWasClosed iokit_common_msg(0x110)
44
45#define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
46
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)
0b4e3aa0 58#define kIOMessageSystemWillRestart iokit_common_msg(0x310)
1c79356b
A
59
60#endif /* ! __IOKIT_IOMESSAGE_H */