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