]>
git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/ppc/boot.h
abac020f485c9a28763d6e9e3fc4927a05097d97
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
29 #ifndef _PEXPERT_PPC_BOOT_H_
30 #define _PEXPERT_PPC_BOOT_H_
32 #define BOOT_LINE_LENGTH 256
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 */
47 typedef struct Boot_Video Boot_Video
;
49 /* DRAM Bank definitions - describes physical memory layout.
51 #define kMaxDRAMBanks 26 /* maximum number of DRAM banks */
55 unsigned long base
; /* physical base of DRAM bank */
56 unsigned long size
; /* size of bank */
58 typedef struct DRAMBank DRAMBank
;
61 /* Boot argument structure - passed into Mach kernel at boot time.
63 #define kBootArgsVersion 1
64 #define kBootArgsRevision 1
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 */
78 extern boot_args passed_args
;
80 #endif /* _PEXPERT_PPC_BOOT_H_ */