]>
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 | #ifndef _PEXPERT_PPC_POWERMAC_H_ | |
26 | #define _PEXPERT_PPC_POWERMAC_H_ | |
27 | ||
28 | #ifndef ASSEMBLER | |
29 | ||
30 | #include <mach/ppc/vm_types.h> | |
31 | ||
32 | #include <pexpert/pexpert.h> | |
33 | #include <pexpert/protos.h> | |
34 | #include <pexpert/ppc/boot.h> | |
35 | ||
36 | ||
37 | /* prototypes */ | |
38 | ||
39 | vm_offset_t PE_find_scc( void ); | |
40 | ||
41 | /* Some useful typedefs for accessing control registers */ | |
42 | ||
43 | typedef volatile unsigned char v_u_char; | |
44 | typedef volatile unsigned short v_u_short; | |
45 | typedef volatile unsigned int v_u_int; | |
46 | typedef volatile unsigned long v_u_long; | |
47 | ||
48 | /* And some useful defines for reading 'volatile' structures, | |
49 | * don't forget to be be careful about sync()s and eieio()s | |
50 | */ | |
51 | #define reg8(reg) (*(v_u_char *)reg) | |
52 | #define reg16(reg) (*(v_u_short *)reg) | |
53 | #define reg32(reg) (*(v_u_int *)reg) | |
54 | ||
55 | /* Non-cached version of bcopy */ | |
56 | extern void bcopy_nc(char *from, char *to, int size); | |
57 | ||
58 | #endif /* ASSEMBLER */ | |
59 | ||
60 | #endif /* _PEXPERT_PPC_POWERMAC_H_ */ |