macintosh.h 2.2 KB

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