Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_MACINTOSH_H |
| 2 | #define __ASM_MACINTOSH_H |
| 3 | |
| 4 | #include <linux/seq_file.h> |
| 5 | #include <linux/interrupt.h> |
| 6 | |
Geert Uytterhoeven | 8693d61 | 2013-10-03 11:40:00 +0200 | [diff] [blame^] | 7 | #include <asm/bootinfo-mac.h> |
| 8 | |
| 9 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | /* |
| 11 | * Apple Macintoshisms |
| 12 | */ |
| 13 | |
| 14 | extern void mac_reset(void); |
| 15 | extern void mac_poweroff(void); |
| 16 | extern void mac_init_IRQ(void); |
Finn Thain | 30c0527 | 2011-10-24 01:11:14 +1100 | [diff] [blame] | 17 | |
Finn Thain | 2690e21 | 2011-09-11 23:40:50 +1000 | [diff] [blame] | 18 | extern void mac_irq_enable(struct irq_data *data); |
| 19 | extern void mac_irq_disable(struct irq_data *data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
| 21 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | * Macintosh Table |
| 23 | */ |
| 24 | |
| 25 | struct mac_model |
| 26 | { |
| 27 | short ident; |
| 28 | char *name; |
| 29 | char adb_type; |
| 30 | char via_type; |
| 31 | char scsi_type; |
| 32 | char ide_type; |
| 33 | char scc_type; |
| 34 | char ether_type; |
| 35 | char nubus_type; |
Laurent Vivier | 7ad93b4 | 2008-11-06 20:57:41 +0100 | [diff] [blame] | 36 | char floppy_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | #define MAC_ADB_NONE 0 |
| 40 | #define MAC_ADB_II 1 |
| 41 | #define MAC_ADB_IISI 2 |
| 42 | #define MAC_ADB_CUDA 3 |
| 43 | #define MAC_ADB_PB1 4 |
| 44 | #define MAC_ADB_PB2 5 |
| 45 | #define MAC_ADB_IOP 6 |
| 46 | |
| 47 | #define MAC_VIA_II 1 |
Finn Thain | 608e287 | 2011-10-24 01:11:22 +1100 | [diff] [blame] | 48 | #define MAC_VIA_IICI 2 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | #define MAC_VIA_QUADRA 3 |
| 50 | |
| 51 | #define MAC_SCSI_NONE 0 |
| 52 | #define MAC_SCSI_OLD 1 |
| 53 | #define MAC_SCSI_QUADRA 2 |
| 54 | #define MAC_SCSI_QUADRA2 3 |
| 55 | #define MAC_SCSI_QUADRA3 4 |
| 56 | |
| 57 | #define MAC_IDE_NONE 0 |
| 58 | #define MAC_IDE_QUADRA 1 |
| 59 | #define MAC_IDE_PB 2 |
| 60 | #define MAC_IDE_BABOON 3 |
| 61 | |
| 62 | #define MAC_SCC_II 1 |
| 63 | #define MAC_SCC_IOP 2 |
| 64 | #define MAC_SCC_QUADRA 3 |
| 65 | #define MAC_SCC_PSC 4 |
| 66 | |
| 67 | #define MAC_ETHER_NONE 0 |
| 68 | #define MAC_ETHER_SONIC 1 |
| 69 | #define MAC_ETHER_MACE 2 |
| 70 | |
| 71 | #define MAC_NO_NUBUS 0 |
| 72 | #define MAC_NUBUS 1 |
| 73 | |
Laurent Vivier | 7ad93b4 | 2008-11-06 20:57:41 +0100 | [diff] [blame] | 74 | #define MAC_FLOPPY_IWM 0 |
| 75 | #define MAC_FLOPPY_SWIM_ADDR1 1 |
| 76 | #define MAC_FLOPPY_SWIM_ADDR2 2 |
| 77 | #define MAC_FLOPPY_SWIM_IOP 3 |
| 78 | #define MAC_FLOPPY_AV 4 |
| 79 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | extern struct mac_model *macintosh_config; |
| 81 | |
Geert Uytterhoeven | bdd47c9 | 2013-10-02 10:01:43 +0200 | [diff] [blame] | 82 | |
| 83 | /* |
| 84 | * Internal representation of the Mac hardware, filled in from bootinfo |
| 85 | */ |
| 86 | |
| 87 | struct mac_booter_data |
| 88 | { |
| 89 | unsigned long videoaddr; |
| 90 | unsigned long videorow; |
| 91 | unsigned long videodepth; |
| 92 | unsigned long dimensions; |
| 93 | unsigned long boottime; |
| 94 | unsigned long gmtbias; |
| 95 | unsigned long videological; |
| 96 | unsigned long sccbase; |
| 97 | unsigned long id; |
| 98 | unsigned long memsize; |
| 99 | unsigned long cpuid; |
| 100 | unsigned long rombase; |
| 101 | }; |
| 102 | |
| 103 | extern struct mac_booter_data mac_bi_data; |
| 104 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | #endif |