]> git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/ppc/boot.h
abac020f485c9a28763d6e9e3fc4927a05097d97
[apple/xnu.git] / pexpert / pexpert / ppc / boot.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_COPYRIGHT@
27 */
28
29 #ifndef _PEXPERT_PPC_BOOT_H_
30 #define _PEXPERT_PPC_BOOT_H_
31
32 #define BOOT_LINE_LENGTH 256
33
34 /*
35 * Video information..
36 */
37
38 struct Boot_Video {
39 unsigned long v_baseAddr; /* Base address of video memory */
40 unsigned long v_display; /* Display Code (if Applicable */
41 unsigned long v_rowBytes; /* Number of bytes per pixel row */
42 unsigned long v_width; /* Width */
43 unsigned long v_height; /* Height */
44 unsigned long v_depth; /* Pixel Depth */
45 };
46
47 typedef struct Boot_Video Boot_Video;
48
49 /* DRAM Bank definitions - describes physical memory layout.
50 */
51 #define kMaxDRAMBanks 26 /* maximum number of DRAM banks */
52
53 struct DRAMBank
54 {
55 unsigned long base; /* physical base of DRAM bank */
56 unsigned long size; /* size of bank */
57 };
58 typedef struct DRAMBank DRAMBank;
59
60
61 /* Boot argument structure - passed into Mach kernel at boot time.
62 */
63 #define kBootArgsVersion 1
64 #define kBootArgsRevision 1
65
66 typedef struct boot_args {
67 unsigned short Revision; /* Revision of boot_args structure */
68 unsigned short Version; /* Version of boot_args structure */
69 char CommandLine[BOOT_LINE_LENGTH]; /* Passed in command line */
70 DRAMBank PhysicalDRAM[kMaxDRAMBanks]; /* base and range pairs for the 26 DRAM banks */
71 Boot_Video Video; /* Video Information */
72 unsigned long machineType; /* Machine Type (gestalt) */
73 void *deviceTreeP; /* Base of flattened device tree */
74 unsigned long deviceTreeLength;/* Length of flattened tree */
75 unsigned long topOfKernelData;/* Highest address used in kernel data area */
76 } boot_args;
77
78 extern boot_args passed_args;
79
80 #endif /* _PEXPERT_PPC_BOOT_H_ */