]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/alert.h
xnu-344.21.73.tar.gz
[apple/xnu.git] / osfmk / mach / alert.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
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
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * @OSF_FREE_COPYRIGHT@
27 */
28 /*
29 * HISTORY
30 *
31 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
32 * Import of Mac OS X kernel (~semeria)
33 *
34 * Revision 1.1.1.1 1998/03/07 02:25:45 wsanchez
35 * Import of OSF Mach kernel (~mburg)
36 *
37 * Revision 1.1.5.2 1995/01/18 18:35:06 ezf
38 * updated Utah CR notice
39 * [1995/01/18 18:30:38 ezf]
40 *
41 * Revision 1.1.5.1 1994/09/23 02:33:53 ezf
42 * change marker to not FREE
43 * [1994/09/22 21:38:56 ezf]
44 *
45 * Revision 1.1.2.1 1994/01/12 17:56:03 dwm
46 * Coloc: initial restructuring to follow Utah model.
47 * Alert bit definitions
48 * [1994/01/12 17:30:19 dwm]
49 *
50 * $EndLog$
51 */
52 /*
53 * Copyright (c) 1993 The University of Utah and
54 * the Computer Systems Laboratory (CSL). All rights reserved.
55 *
56 * Permission to use, copy, modify and distribute this software and its
57 * documentation is hereby granted, provided that both the copyright
58 * notice and this permission notice appear in all copies of the
59 * software, derivative works or modified versions, and any portions
60 * thereof, and that both notices appear in supporting documentation.
61 *
62 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
63 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
64 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
65 *
66 * CSL requests users of this software to return to csl-dist@cs.utah.edu any
67 * improvements that they make and grant CSL redistribution rights.
68 *
69 */
70
71 #ifndef _MACH_ALERT_H_
72 #define _MACH_ALERT_H_
73
74 #define ALERT_BITS 32 /* Minimum; more may actually be available */
75
76 /* Request to abort _all_ operations */
77 #define ALERT_ABORT_STRONG 0x00000001
78
79 /* Request to abort restartable operations */
80 #define ALERT_ABORT_SAFE 0x00000002
81
82 /* User-defined alert bits */
83 #define ALERT_USER 0xffff0000
84
85 #endif /* _MACH_ALERT_H_ */