1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _UAPI_ASM_M68K_BOOTINFO_H
13 #define _UAPI_ASM_M68K_BOOTINFO_H
14
15
16 #include <linux/types.h>
17
18
19 #ifndef __ASSEMBLY__
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 struct bi_record {
35 __be16 tag;
36 __be16 size;
37 __be32 data[0];
38 };
39
40
41 struct mem_info {
42 __be32 addr;
43 __be32 size;
44 };
45
46 #endif
47
48
49
50
51
52
53
54
55
56 #define BI_LAST 0x0000
57 #define BI_MACHTYPE 0x0001
58 #define BI_CPUTYPE 0x0002
59 #define BI_FPUTYPE 0x0003
60 #define BI_MMUTYPE 0x0004
61 #define BI_MEMCHUNK 0x0005
62
63 #define BI_RAMDISK 0x0006
64
65 #define BI_COMMAND_LINE 0x0007
66
67
68
69
70
71
72
73 #define MACH_AMIGA 1
74 #define MACH_ATARI 2
75 #define MACH_MAC 3
76 #define MACH_APOLLO 4
77 #define MACH_SUN3 5
78 #define MACH_MVME147 6
79 #define MACH_MVME16x 7
80 #define MACH_BVME6000 8
81 #define MACH_HP300 9
82 #define MACH_Q40 10
83 #define MACH_SUN3X 11
84 #define MACH_M54XX 12
85 #define MACH_M5441X 13
86
87
88
89
90
91
92
93
94
95
96
97
98
99 #define CPUB_68020 0
100 #define CPUB_68030 1
101 #define CPUB_68040 2
102 #define CPUB_68060 3
103 #define CPUB_COLDFIRE 4
104
105 #define CPU_68020 (1 << CPUB_68020)
106 #define CPU_68030 (1 << CPUB_68030)
107 #define CPU_68040 (1 << CPUB_68040)
108 #define CPU_68060 (1 << CPUB_68060)
109 #define CPU_COLDFIRE (1 << CPUB_COLDFIRE)
110
111 #define FPUB_68881 0
112 #define FPUB_68882 1
113 #define FPUB_68040 2
114 #define FPUB_68060 3
115 #define FPUB_SUNFPA 4
116 #define FPUB_COLDFIRE 5
117
118 #define FPU_68881 (1 << FPUB_68881)
119 #define FPU_68882 (1 << FPUB_68882)
120 #define FPU_68040 (1 << FPUB_68040)
121 #define FPU_68060 (1 << FPUB_68060)
122 #define FPU_SUNFPA (1 << FPUB_SUNFPA)
123 #define FPU_COLDFIRE (1 << FPUB_COLDFIRE)
124
125 #define MMUB_68851 0
126 #define MMUB_68030 1
127 #define MMUB_68040 2
128 #define MMUB_68060 3
129 #define MMUB_APOLLO 4
130 #define MMUB_SUN3 5
131 #define MMUB_COLDFIRE 6
132
133 #define MMU_68851 (1 << MMUB_68851)
134 #define MMU_68030 (1 << MMUB_68030)
135 #define MMU_68040 (1 << MMUB_68040)
136 #define MMU_68060 (1 << MMUB_68060)
137 #define MMU_SUN3 (1 << MMUB_SUN3)
138 #define MMU_APOLLO (1 << MMUB_APOLLO)
139 #define MMU_COLDFIRE (1 << MMUB_COLDFIRE)
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157 #define BOOTINFOV_MAGIC 0x4249561A
158 #define MK_BI_VERSION(major, minor) (((major) << 16) + (minor))
159 #define BI_VERSION_MAJOR(v) (((v) >> 16) & 0xffff)
160 #define BI_VERSION_MINOR(v) ((v) & 0xffff)
161
162 #ifndef __ASSEMBLY__
163
164 struct bootversion {
165 __be16 branch;
166 __be32 magic;
167 struct {
168 __be32 machtype;
169 __be32 version;
170 } machversions[0];
171 } __packed;
172
173 #endif
174
175
176 #endif