1 |
/* gxemul: $Id: hpc_bootinfo.h,v 1.5 2005/03/05 12:34:02 debug Exp $ */ |
2 |
/* $NetBSD: bootinfo.h,v 1.2 2002/04/14 06:07:40 takemura Exp $ */ |
3 |
|
4 |
/*- |
5 |
* Copyright (c) 1999-2001 |
6 |
* Shin Takemura and PocketBSD Project. All rights reserved. |
7 |
* |
8 |
* Redistribution and use in source and binary forms, with or without |
9 |
* modification, are permitted provided that the following conditions |
10 |
* are met: |
11 |
* 1. Redistributions of source code must retain the above copyright |
12 |
* notice, this list of conditions and the following disclaimer. |
13 |
* 2. Redistributions in binary form must reproduce the above copyright |
14 |
* notice, this list of conditions and the following disclaimer in the |
15 |
* documentation and/or other materials provided with the distribution. |
16 |
* 3. All advertising materials mentioning features or use of this software |
17 |
* must display the following acknowledgement: |
18 |
* This product includes software developed by the PocketBSD project |
19 |
* and its contributors. |
20 |
* 4. Neither the name of the project nor the names of its contributors |
21 |
* may be used to endorse or promote products derived from this software |
22 |
* without specific prior written permission. |
23 |
* |
24 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
25 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
26 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
27 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
28 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
29 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
30 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
31 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
32 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
33 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 |
* SUCH DAMAGE. |
35 |
* |
36 |
*/ |
37 |
|
38 |
#ifndef _HPC_BOOTINFO_H_ |
39 |
#define _HPC_BOOTINFO_H_ |
40 |
|
41 |
struct hpc_bootinfo { |
42 |
int16_t length; /* short */ |
43 |
int16_t reserved; /* short */ |
44 |
int32_t magic; /* int */ |
45 |
uint32_t fb_addr; /* void * */ |
46 |
int16_t fb_line_bytes; /* short */ |
47 |
int16_t fb_width; /* short */ |
48 |
int16_t fb_height; /* short */ |
49 |
int16_t fb_type; /* short */ |
50 |
|
51 |
int16_t bi_cnuse; /* short */ |
52 |
uint32_t platid_cpu; /* unsigned long */ |
53 |
uint32_t platid_machine; /* unsigned long */ |
54 |
|
55 |
int32_t timezone; /* long */ |
56 |
}; |
57 |
|
58 |
#define BI_CNUSE_BUILTIN (1<<0) |
59 |
#define BI_CNUSE_SERIAL (1<<1) |
60 |
|
61 |
/* extern struct bootinfo *bootinfo; */ |
62 |
#define HPC_BOOTINFO_MAGIC 0x13536135ULL |
63 |
|
64 |
#define BIFB_D2_M2L_3 0 |
65 |
#define BIFBN_D2_M2L_3 "D2_M2L_3" |
66 |
|
67 |
#define BIFB_D2_M2L_3x2 1 |
68 |
#define BIFBN_D2_M2L_3x2 "D2_M2L_3x2" |
69 |
|
70 |
#define BIFB_D2_M2L_0 2 |
71 |
#define BIFBN_D2_M2L_0 "D2_M2L_0" |
72 |
|
73 |
#define BIFB_D8_00 3 |
74 |
#define BIFBN_D8_00 "D8_00" |
75 |
|
76 |
#define BIFB_D8_FF 4 |
77 |
#define BIFBN_D8_FF "D8_FF" |
78 |
|
79 |
#define BIFB_D16_0000 5 |
80 |
#define BIFBN_D16_0000 "D16_0000" |
81 |
|
82 |
#define BIFB_D16_FFFF 6 |
83 |
#define BIFBN_D16_FFFF "D16_FFFF" |
84 |
|
85 |
#define BIFB_D2_M2L_0x2 7 |
86 |
#define BIFBN_D2_M2L_0x2 "D2_M2L_0x2" |
87 |
|
88 |
#define BIFB_D4_M2L_F 8 |
89 |
#define BIFBN_D4_M2L_F "D4_M2L_F" |
90 |
|
91 |
#define BIFB_D4_M2L_Fx2 9 |
92 |
#define BIFBN_D4_M2L_Fx2 "D4_M2L_Fx2" |
93 |
|
94 |
#define BIFB_D4_M2L_0 10 |
95 |
#define BIFBN_D4_M2L_0 "D4_M2L_0" |
96 |
|
97 |
#define BIFB_D4_M2L_0x2 11 |
98 |
#define BIFBN_D4_M2L_0x2 "D4_M2L_0x2" |
99 |
|
100 |
#define BIFB_D1_M2L_0 12 |
101 |
#define BIFBN_D1_M2L_0 "D1_M2L_0" |
102 |
|
103 |
#define BIFB_D1_M2L_1 13 |
104 |
#define BIFBN_D1_M2L_1 "D1_M2L_1" |
105 |
|
106 |
#endif /* _HPC_BOOTINFO_H_ */ |