]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/IOMessage.h
xnu-792.6.22.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 *
e5568f75
A
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.
1c79356b 11 *
e5568f75
A
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
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
e5568f75
A
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.
1c79356b
A
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
29typedef UInt32 IOMessage;
30
91447636
A
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/*! @defined iokit_vendor_specific_msg
35 @discussion iokit_vendor_specific_msg passes messages in the sub_iokit_vendor_specific
36 subsystem. It can be used to be generate messages that are used for private
37 communication between vendor specific code with the IOService::message() etc. APIs.
38*/
39#define iokit_vendor_specific_msg(message) (UInt32)(sys_iokit|sub_iokit_vendor_specific|message)
1c79356b
A
40
41#define kIOMessageServiceIsTerminated iokit_common_msg(0x010)
42#define kIOMessageServiceIsSuspended iokit_common_msg(0x020)
43#define kIOMessageServiceIsResumed iokit_common_msg(0x030)
44
45#define kIOMessageServiceIsRequestingClose iokit_common_msg(0x100)
0b4e3aa0 46#define kIOMessageServiceIsAttemptingOpen iokit_common_msg(0x101)
1c79356b
A
47#define kIOMessageServiceWasClosed iokit_common_msg(0x110)
48
49#define kIOMessageServiceBusyStateChange iokit_common_msg(0x120)
50
55e303ae
A
51#define kIOMessageServicePropertyChange iokit_common_msg(0x130)
52
1c79356b
A
53#define kIOMessageCanDevicePowerOff iokit_common_msg(0x200)
54#define kIOMessageDeviceWillPowerOff iokit_common_msg(0x210)
55#define kIOMessageDeviceWillNotPowerOff iokit_common_msg(0x220)
56#define kIOMessageDeviceHasPoweredOn iokit_common_msg(0x230)
57#define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
58#define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
59#define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
60#define kIOMessageCanSystemSleep iokit_common_msg(0x270)
61#define kIOMessageSystemWillSleep iokit_common_msg(0x280)
62#define kIOMessageSystemWillNotSleep iokit_common_msg(0x290)
63#define kIOMessageSystemHasPoweredOn iokit_common_msg(0x300)
0b4e3aa0 64#define kIOMessageSystemWillRestart iokit_common_msg(0x310)
55e303ae 65#define kIOMessageSystemWillPowerOn iokit_common_msg(0x320)
1c79356b
A
66
67#endif /* ! __IOKIT_IOMESSAGE_H */