macintosh.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #ifndef __ASM_MACINTOSH_H
  2. #define __ASM_MACINTOSH_H
  3. #include <linux/seq_file.h>
  4. #include <linux/interrupt.h>
  5. #include <asm/bootinfo-mac.h>
  6. /*
  7. * Apple Macintoshisms
  8. */
  9. extern void mac_reset(void);
  10. extern void mac_poweroff(void);
  11. extern void mac_init_IRQ(void);
  12. extern void mac_irq_enable(struct irq_data *data);
  13. extern void mac_irq_disable(struct irq_data *data);
  14. /*
  15. * Macintosh Table
  16. */
  17. struct mac_model
  18. {
  19. short ident;
  20. char *name;
  21. char adb_type;
  22. char via_type;
  23. char scsi_type;
  24. char ide_type;
  25. char scc_type;
  26. char ether_type;
  27. char nubus_type;
  28. char floppy_type;
  29. };
  30. #define MAC_ADB_NONE 0
  31. #define MAC_ADB_II 1
  32. #define MAC_ADB_IISI 2
  33. #define MAC_ADB_CUDA 3
  34. #define MAC_ADB_PB1 4
  35. #define MAC_ADB_PB2 5
  36. #define MAC_ADB_IOP 6
  37. #define MAC_VIA_II 1
  38. #define MAC_VIA_IICI 2
  39. #define MAC_VIA_QUADRA 3
  40. #define MAC_SCSI_NONE 0
  41. #define MAC_SCSI_OLD 1
  42. #define MAC_SCSI_QUADRA 2
  43. #define MAC_SCSI_QUADRA2 3
  44. #define MAC_SCSI_QUADRA3 4
  45. #define MAC_SCSI_IIFX 5
  46. #define MAC_SCSI_DUO 6
  47. #define MAC_SCSI_LC 7
  48. #define MAC_SCSI_LATE 8
  49. #define MAC_IDE_NONE 0
  50. #define MAC_IDE_QUADRA 1
  51. #define MAC_IDE_PB 2
  52. #define MAC_IDE_BABOON 3
  53. #define MAC_SCC_II 1
  54. #define MAC_SCC_IOP 2
  55. #define MAC_SCC_QUADRA 3
  56. #define MAC_SCC_PSC 4
  57. #define MAC_ETHER_NONE 0
  58. #define MAC_ETHER_SONIC 1
  59. #define MAC_ETHER_MACE 2
  60. #define MAC_NO_NUBUS 0
  61. #define MAC_NUBUS 1
  62. #define MAC_FLOPPY_IWM 0
  63. #define MAC_FLOPPY_SWIM_ADDR1 1
  64. #define MAC_FLOPPY_SWIM_ADDR2 2
  65. #define MAC_FLOPPY_SWIM_IOP 3
  66. #define MAC_FLOPPY_AV 4
  67. extern struct mac_model *macintosh_config;
  68. /*
  69. * Internal representation of the Mac hardware, filled in from bootinfo
  70. */
  71. struct mac_booter_data
  72. {
  73. unsigned long videoaddr;
  74. unsigned long videorow;
  75. unsigned long videodepth;
  76. unsigned long dimensions;
  77. unsigned long boottime;
  78. unsigned long gmtbias;
  79. unsigned long videological;
  80. unsigned long sccbase;
  81. unsigned long id;
  82. unsigned long memsize;
  83. unsigned long cpuid;
  84. unsigned long rombase;
  85. };
  86. extern struct mac_booter_data mac_bi_data;
  87. #endif