]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/IOMessage.h
xnu-1456.1.26.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 *
2d21ac55 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
1c79356b 5 *
2d21ac55
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. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
8f6c56a5 14 *
2d21ac55
A
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
8f6c56a5
A
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2d21ac55
A
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
8f6c56a5 25 *
2d21ac55 26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
1c79356b
A
27 */
28
29#ifndef __IOKIT_IOMESSAGE_H
30#define __IOKIT_IOMESSAGE_H
31
32#include <IOKit/IOReturn.h>
33#include <IOKit/IOTypes.h>
34
35typedef UInt32 IOMessage;
36
91447636
A
37#define iokit_common_msg(message) (UInt32)(sys_iokit|sub_iokit_common|message)
38#define iokit_family_msg(sub,message) (UInt32)(sys_iokit|sub|message)
39
40/*! @defined iokit_vendor_specific_msg
41 @discussion iokit_vendor_specific_msg passes messages in the sub_iokit_vendor_specific
42 subsystem. It can be used to be generate messages that are used for private
43 communication between vendor specific code with the IOService::message() etc. APIs.
44*/
45#define iokit_vendor_specific_msg(message) (UInt32)(sys_iokit|sub_iokit_vendor_specific|message)
1c79356b
A
46
47#define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
48#define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
49#define kIOMessageServiceIsResumed iokit_common_msg(0x030)
50
51#define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
0b4e3aa0 52#define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
1c79356b
A
53#define kIOMessageServiceWasClosed iokit_common_msg(0x110)
54
55#define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
56
55e303ae
A
57#define kIOMessageServicePropertyChange iokit_common_msg(0x130)
58
1c79356b
A
59#define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
60#define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
61#define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
62#define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
63#define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
64#define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
65#define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
66#define kIOMessageCanSystemSleep iokit_common_msg(0x270)
67#define kIOMessageSystemWillSleep iokit_common_msg(0x280)
68#define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
69#define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
0b4e3aa0 70#define kIOMessageSystemWillRestart iokit_common_msg(0x310)
55e303ae 71#define kIOMessageSystemWillPowerOn iokit_common_msg(0x320)
1c79356b 72
2d21ac55
A
73#define kIOMessageCopyClientID iokit_common_msg(0x330)
74
1c79356b 75#endif /* ! __IOKIT_IOMESSAGE_H */