]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 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 | * @OSF_FREE_COPYRIGHT@ | |
27 | */ | |
28 | /* | |
29 | * @APPLE_FREE_COPYRIGHT@ | |
30 | */ | |
31 | ||
32 | /* | |
33 | * Here are the Diagnostic interface interfaces | |
34 | * Lovingly crafted by Bill Angell using traditional methods | |
35 | */ | |
36 | ||
37 | #ifndef _DIAGNOSTICS_H_ | |
38 | #define _DIAGNOSTICS_H_ | |
39 | ||
40 | #ifndef __ppc__ | |
41 | #error This file is only useful on PowerPC. | |
42 | #endif | |
43 | ||
44 | int diagCall(struct savearea *save); | |
45 | ||
46 | #define diagSCnum 0x00006000 | |
47 | ||
48 | #define dgAdjTB 0 | |
49 | #define dgLRA 1 | |
50 | #define dgpcpy 2 | |
51 | #define dgreset 3 | |
52 | #define dgtest 4 | |
0b4e3aa0 A |
53 | #define dgBMphys 5 |
54 | #define dgUnMap 6 | |
55 | #define dgBootScreen 7 | |
9bccf70c A |
56 | #define dgFlush 8 |
57 | #define dgAlign 9 | |
0b4e3aa0 | 58 | |
1c79356b A |
59 | |
60 | typedef struct diagWork { /* Diagnostic work area */ | |
61 | ||
62 | unsigned int dgLock; /* Lock if needed */ | |
63 | unsigned int dgFlags; /* Flags */ | |
64 | #define enaExpTrace 0x00000001 | |
65 | #define enaExpTraceb 31 | |
66 | #define enaUsrFCall 0x00000002 | |
67 | #define enaUsrFCallb 30 | |
68 | #define enaUsrPhyMp 0x00000004 | |
69 | #define enaUsrPhyMpb 29 | |
70 | #define enaDiagSCs 0x00000008 | |
71 | #define enaDiagSCsb 28 | |
72 | #define enaDiagDM 0x00000010 | |
73 | #define enaDiagSDMb 27 | |
9bccf70c A |
74 | #define enaDiagEM 0x00000020 |
75 | #define enaDiagEMb 26 | |
1c79356b A |
76 | /* Suppress lock checks */ |
77 | #define disLkType 0x80000000 | |
78 | #define disLktypeb 0 | |
79 | #define disLkThread 0x40000000 | |
80 | #define disLkThreadb 1 | |
81 | #define disLkNmSimp 0x20000000 | |
82 | #define disLkNmSimpb 2 | |
83 | #define disLkMyLck 0x10000000 | |
84 | #define disLkMyLckb 3 | |
85 | ||
86 | unsigned int dgMisc0; | |
87 | unsigned int dgMisc1; | |
88 | unsigned int dgMisc2; | |
89 | unsigned int dgMisc3; | |
90 | unsigned int dgMisc4; | |
91 | unsigned int dgMisc5; | |
92 | ||
93 | } diagWork; | |
94 | ||
95 | extern diagWork dgWork; | |
96 | ||
97 | ||
98 | #endif /* _DIAGNOSTICS_H_ */ |