macintosh.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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_IDE_NONE 0
  46. #define MAC_IDE_QUADRA 1
  47. #define MAC_IDE_PB 2
  48. #define MAC_IDE_BABOON 3
  49. #define MAC_SCC_II 1
  50. #define MAC_SCC_IOP 2
  51. #define MAC_SCC_QUADRA 3
  52. #define MAC_SCC_PSC 4
  53. #define MAC_ETHER_NONE 0
  54. #define MAC_ETHER_SONIC 1
  55. #define MAC_ETHER_MACE 2
  56. #define MAC_NO_NUBUS 0
  57. #define MAC_NUBUS 1
  58. #define MAC_FLOPPY_IWM 0
  59. #define MAC_FLOPPY_SWIM_ADDR1 1
  60. #define MAC_FLOPPY_SWIM_ADDR2 2
  61. #define MAC_FLOPPY_SWIM_IOP 3
  62. #define MAC_FLOPPY_AV 4
  63. extern struct mac_model *macintosh_config;
  64. /*
  65. * Internal representation of the Mac hardware, filled in from bootinfo
  66. */
  67. struct mac_booter_data
  68. {
  69. unsigned long videoaddr;
  70. unsigned long videorow;
  71. unsigned long videodepth;
  72. unsigned long dimensions;
  73. unsigned long boottime;
  74. unsigned long gmtbias;
  75. unsigned long videological;
  76. unsigned long sccbase;
  77. unsigned long id;
  78. unsigned long memsize;
  79. unsigned long cpuid;
  80. unsigned long rombase;
  81. };
  82. extern struct mac_booter_data mac_bi_data;
  83. #endif