]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/i386/Diagnostics.h
2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * @OSF_FREE_COPYRIGHT@
26 * @APPLE_FREE_COPYRIGHT@
30 * Here are the Diagnostic interface interfaces
31 * Lovingly crafted by Bill Angell using traditional methods
32 * Keep selectors in sync with the PPC version where possible.
36 #ifndef _DIAGNOSTICS_H_
37 #define _DIAGNOSTICS_H_
40 #error This file is not useful on PowerPC.
43 int diagCall(x86_saved_state_t
*regs
);
44 int diagCall64(x86_saved_state_t
*regs
);
46 #define diagSCnum 0x00006000
55 #define dgBootScreen 7
61 #define dgProbeRead 13
76 typedef struct diagWork
{ /* Diagnostic work area */
78 unsigned int dgLock
; /* Lock if needed */
79 unsigned int dgFlags
; /* Flags */
80 #define enaExpTrace 0x00000001
81 #define enaExpTraceb 31
82 #define enaUsrFCall 0x00000002
83 #define enaUsrFCallb 30
84 #define enaUsrPhyMp 0x00000004
85 #define enaUsrPhyMpb 29
86 #define enaDiagSCs 0x00000008
87 #define enaDiagSCsb 28
88 #define enaDiagDM 0x00000010
89 #define enaDiagSDMb 27
90 #define enaDiagEM 0x00000020
92 #define enaDiagTrap 0x00000040
93 #define enaDiagTrapb 25
94 #define enaNotifyEM 0x00000080
95 #define enaNotifyEMb 24
100 unsigned int dgMisc3
;
101 unsigned int dgMisc4
;
102 unsigned int dgMisc5
;
106 extern diagWork dgWork
;
109 #endif /* _DIAGNOSTICS_H_ */
111 #endif /* KERNEL_PRIVATE */