1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions
4 */
5 
6 #ifndef _UAPI_ASM_M68K_BOOTINFO_MAC_H
7 #define _UAPI_ASM_M68K_BOOTINFO_MAC_H
8 
9 
10     /*
11      *  Macintosh-specific tags (all __be32)
12      */
13 
14 #define BI_MAC_MODEL		0x8000	/* Mac Gestalt ID (model type) */
15 #define BI_MAC_VADDR		0x8001	/* Mac video base address */
16 #define BI_MAC_VDEPTH		0x8002	/* Mac video depth */
17 #define BI_MAC_VROW		0x8003	/* Mac video rowbytes */
18 #define BI_MAC_VDIM		0x8004	/* Mac video dimensions */
19 #define BI_MAC_VLOGICAL		0x8005	/* Mac video logical base */
20 #define BI_MAC_SCCBASE		0x8006	/* Mac SCC base address */
21 #define BI_MAC_BTIME		0x8007	/* Mac boot time */
22 #define BI_MAC_GMTBIAS		0x8008	/* Mac GMT timezone offset */
23 #define BI_MAC_MEMSIZE		0x8009	/* Mac RAM size (sanity check) */
24 #define BI_MAC_CPUID		0x800a	/* Mac CPU type (sanity check) */
25 #define BI_MAC_ROMBASE		0x800b	/* Mac system ROM base address */
26 
27 
28     /*
29      *  Macintosh hardware profile data - unused, see macintosh.h for
30      *  reasonable type values
31      */
32 
33 #define BI_MAC_VIA1BASE		0x8010	/* Mac VIA1 base address (always present) */
34 #define BI_MAC_VIA2BASE		0x8011	/* Mac VIA2 base address (type varies) */
35 #define BI_MAC_VIA2TYPE		0x8012	/* Mac VIA2 type (VIA, RBV, OSS) */
36 #define BI_MAC_ADBTYPE		0x8013	/* Mac ADB interface type */
37 #define BI_MAC_ASCBASE		0x8014	/* Mac Apple Sound Chip base address */
38 #define BI_MAC_SCSI5380		0x8015	/* Mac NCR 5380 SCSI (base address, multi) */
39 #define BI_MAC_SCSIDMA		0x8016	/* Mac SCSI DMA (base address) */
40 #define BI_MAC_SCSI5396		0x8017	/* Mac NCR 53C96 SCSI (base address, multi) */
41 #define BI_MAC_IDETYPE		0x8018	/* Mac IDE interface type */
42 #define BI_MAC_IDEBASE		0x8019	/* Mac IDE interface base address */
43 #define BI_MAC_NUBUS		0x801a	/* Mac Nubus type (none, regular, pseudo) */
44 #define BI_MAC_SLOTMASK		0x801b	/* Mac Nubus slots present */
45 #define BI_MAC_SCCTYPE		0x801c	/* Mac SCC serial type (normal, IOP) */
46 #define BI_MAC_ETHTYPE		0x801d	/* Mac builtin ethernet type (Sonic, MACE */
47 #define BI_MAC_ETHBASE		0x801e	/* Mac builtin ethernet base address */
48 #define BI_MAC_PMU		0x801f	/* Mac power management / poweroff hardware */
49 #define BI_MAC_IOP_SWIM		0x8020	/* Mac SWIM floppy IOP */
50 #define BI_MAC_IOP_ADB		0x8021	/* Mac ADB IOP */
51 
52 
53     /*
54      * Macintosh Gestalt numbers (BI_MAC_MODEL)
55      */
56 
57 #define MAC_MODEL_II		6
58 #define MAC_MODEL_IIX		7
59 #define MAC_MODEL_IICX		8
60 #define MAC_MODEL_SE30		9
61 #define MAC_MODEL_IICI		11
62 #define MAC_MODEL_IIFX		13	/* And well numbered it is too */
63 #define MAC_MODEL_IISI		18
64 #define MAC_MODEL_LC		19
65 #define MAC_MODEL_Q900		20
66 #define MAC_MODEL_PB170		21
67 #define MAC_MODEL_Q700		22
68 #define MAC_MODEL_CLII		23	/* aka: P200 */
69 #define MAC_MODEL_PB140		25
70 #define MAC_MODEL_Q950		26	/* aka: WGS95 */
71 #define MAC_MODEL_LCIII		27	/* aka: P450 */
72 #define MAC_MODEL_PB210		29
73 #define MAC_MODEL_C650		30
74 #define MAC_MODEL_PB230		32
75 #define MAC_MODEL_PB180		33
76 #define MAC_MODEL_PB160		34
77 #define MAC_MODEL_Q800		35	/* aka: WGS80 */
78 #define MAC_MODEL_Q650		36
79 #define MAC_MODEL_LCII		37	/* aka: P400/405/410/430 */
80 #define MAC_MODEL_PB250		38
81 #define MAC_MODEL_IIVI		44
82 #define MAC_MODEL_P600		45	/* aka: P600CD */
83 #define MAC_MODEL_IIVX		48
84 #define MAC_MODEL_CCL		49	/* aka: P250 */
85 #define MAC_MODEL_PB165C	50
86 #define MAC_MODEL_C610		52	/* aka: WGS60 */
87 #define MAC_MODEL_Q610		53
88 #define MAC_MODEL_PB145		54	/* aka: PB145B */
89 #define MAC_MODEL_P520		56	/* aka: LC520 */
90 #define MAC_MODEL_C660		60
91 #define MAC_MODEL_P460		62	/* aka: LCIII+, P466/P467 */
92 #define MAC_MODEL_PB180C	71
93 #define MAC_MODEL_PB520		72	/* aka: PB520C, PB540, PB540C, PB550C */
94 #define MAC_MODEL_PB270C	77
95 #define MAC_MODEL_Q840		78
96 #define MAC_MODEL_P550		80	/* aka: LC550, P560 */
97 #define MAC_MODEL_CCLII		83	/* aka: P275 */
98 #define MAC_MODEL_PB165		84
99 #define MAC_MODEL_PB190		85	/* aka: PB190CS */
100 #define MAC_MODEL_TV		88
101 #define MAC_MODEL_P475		89	/* aka: LC475, P476 */
102 #define MAC_MODEL_P475F		90	/* aka: P475 w/ FPU (no LC040) */
103 #define MAC_MODEL_P575		92	/* aka: LC575, P577/P578 */
104 #define MAC_MODEL_Q605		94
105 #define MAC_MODEL_Q605_ACC	95	/* Q605 accelerated to 33 MHz */
106 #define MAC_MODEL_Q630		98	/* aka: LC630, P630/631/635/636/637/638/640 */
107 #define MAC_MODEL_P588		99	/* aka: LC580, P580 */
108 #define MAC_MODEL_PB280		102
109 #define MAC_MODEL_PB280C	103
110 #define MAC_MODEL_PB150		115
111 
112 
113     /*
114      *  Latest Macintosh bootinfo version
115      */
116 
117 #define MAC_BOOTI_VERSION	MK_BI_VERSION(2, 0)
118 
119 
120 #endif /* _UAPI_ASM_M68K_BOOTINFO_MAC_H */
121