1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_MACINTOSH_H
3 #define __ASM_MACINTOSH_H
5 #include <linux/seq_file.h>
6 #include <linux/interrupt.h>
8 #include <asm/bootinfo-mac.h>
15 extern void mac_reset(void);
16 extern void mac_poweroff(void);
17 extern void mac_init_IRQ(void);
19 extern void mac_irq_enable(struct irq_data *data);
20 extern void mac_irq_disable(struct irq_data *data);
40 #define MAC_ADB_NONE 0
42 #define MAC_ADB_EGRET 2
43 #define MAC_ADB_CUDA 3
49 #define MAC_VIA_IICI 2
50 #define MAC_VIA_QUADRA 3
52 #define MAC_SCSI_NONE 0
53 #define MAC_SCSI_OLD 1
54 #define MAC_SCSI_QUADRA 2
55 #define MAC_SCSI_QUADRA2 3
56 #define MAC_SCSI_QUADRA3 4
57 #define MAC_SCSI_IIFX 5
58 #define MAC_SCSI_DUO 6
60 #define MAC_SCSI_LATE 8
62 #define MAC_IDE_NONE 0
63 #define MAC_IDE_QUADRA 1
65 #define MAC_IDE_BABOON 3
69 #define MAC_SCC_QUADRA 3
72 #define MAC_ETHER_NONE 0
73 #define MAC_ETHER_SONIC 1
74 #define MAC_ETHER_MACE 2
76 #define MAC_NO_NUBUS 0
79 #define MAC_FLOPPY_IWM 0
80 #define MAC_FLOPPY_SWIM_ADDR1 1
81 #define MAC_FLOPPY_SWIM_ADDR2 2
82 #define MAC_FLOPPY_SWIM_IOP 3
83 #define MAC_FLOPPY_AV 4
85 extern struct mac_model *macintosh_config;
89 * Internal representation of the Mac hardware, filled in from bootinfo
92 struct mac_booter_data
94 unsigned long videoaddr;
95 unsigned long videorow;
96 unsigned long videodepth;
97 unsigned long dimensions;
98 unsigned long boottime;
99 unsigned long gmtbias;
100 unsigned long videological;
101 unsigned long sccbase;
103 unsigned long memsize;
105 unsigned long rombase;
108 extern struct mac_booter_data mac_bi_data;