]>
git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/ppc/boot.h
ff2acd6385ac2c7eb20fbd643feeb9be1ef48f9e
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
27 #ifndef _PEXPERT_PPC_BOOT_H_
28 #define _PEXPERT_PPC_BOOT_H_
30 #define BOOT_LINE_LENGTH 256
37 unsigned long v_baseAddr
; /* Base address of video memory */
38 unsigned long v_display
; /* Display Code (if Applicable */
39 unsigned long v_rowBytes
; /* Number of bytes per pixel row */
40 unsigned long v_width
; /* Width */
41 unsigned long v_height
; /* Height */
42 unsigned long v_depth
; /* Pixel Depth */
45 typedef struct Boot_Video Boot_Video
;
47 /* DRAM Bank definitions - describes physical memory layout.
49 #define kMaxDRAMBanks 26 /* maximum number of DRAM banks */
53 unsigned long base
; /* physical base of DRAM bank */
54 unsigned long size
; /* size of bank */
56 typedef struct DRAMBank DRAMBank
;
59 /* Boot argument structure - passed into Mach kernel at boot time.
61 #define kBootArgsRevision 1
62 #define kBootArgsVersion1 1
63 #define kBootArgsVersion2 2
65 typedef struct boot_args
{
66 unsigned short Revision
; /* Revision of boot_args structure */
67 unsigned short Version
; /* Version of boot_args structure */
68 char CommandLine
[BOOT_LINE_LENGTH
]; /* Passed in command line */
69 DRAMBank PhysicalDRAM
[kMaxDRAMBanks
]; /* base and range pairs for the 26 DRAM banks */
70 Boot_Video Video
; /* Video Information */
71 unsigned long machineType
; /* Machine Type (gestalt) */
72 void *deviceTreeP
; /* Base of flattened device tree */
73 unsigned long deviceTreeLength
;/* Length of flattened tree */
74 unsigned long topOfKernelData
;/* Highest address used in kernel data area */
77 extern boot_args passed_args
;
79 #endif /* _PEXPERT_PPC_BOOT_H_ */