synchronousMemoryDatabase.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /*
  2. ** asm/bootinfo.h -- Definition of the Linux/m68k boot information structure
  3. **
  4. ** Copyright 1992 by Greg Harp
  5. **
  6. ** This file is subject to the terms and conditions of the GNU General Public
  7. ** License. See the file COPYING in the main directory of this archive
  8. ** for more details.
  9. **
  10. ** Created 09/29/92 by Greg Harp
  11. **
  12. ** 5/2/94 Roman Hodek:
  13. ** Added bi_atari part of the machine dependent union bi_un; for now it
  14. ** contains just a model field to distinguish between TT and Falcon.
  15. ** 26/7/96 Roman Zippel:
  16. ** Renamed to setup.h; added some useful macros to allow gcc some
  17. ** optimizations if possible.
  18. ** 5/10/96 Geert Uytterhoeven:
  19. ** Redesign of the boot information structure; renamed to bootinfo.h again
  20. ** 27/11/96 Geert Uytterhoeven:
  21. ** Backwards compatibility with bootinfo interface version 1.0
  22. */
  23. #ifndef _M68K_BOOTINFO_H
  24. #define _M68K_BOOTINFO_H
  25. /*
  26. * Bootinfo definitions
  27. *
  28. * This is an easily parsable and extendable structure containing all
  29. * information to be passed from the bootstrap to the kernel.
  30. *
  31. * This way I hope to keep all future changes back/forewards compatible.
  32. * Thus, keep your fingers crossed...
  33. *
  34. * This structure is copied right after the kernel bss by the bootstrap
  35. * routine.
  36. */
  37. #ifndef __ASSEMBLY__
  38. struct bi_record {
  39. unsigned short tag; /* tag ID */
  40. unsigned short size; /* size of record (in bytes) */
  41. unsigned long data[0]; /* data */
  42. };
  43. #endif /* __ASSEMBLY__ */
  44. /*
  45. * Tag Definitions
  46. *
  47. * Machine independent tags start counting from 0x0000
  48. * Machine dependent tags start counting from 0x8000
  49. */
  50. #define BI_LAST 0x0000 /* last record (sentinel) */
  51. #define BI_MACHTYPE 0x0001 /* machine type (u_long) */
  52. #define BI_CPUTYPE 0x0002 /* cpu type (u_long) */
  53. #define BI_FPUTYPE 0x0003 /* fpu type (u_long) */
  54. #define BI_MMUTYPE 0x0004 /* mmu type (u_long) */
  55. #define BI_MEMCHUNK 0x0005 /* memory chunk address and size */
  56. /* (struct mem_info) */
  57. #define BI_RAMDISK 0x0006 /* ramdisk address and size */
  58. /* (struct mem_info) */
  59. #define BI_COMMAND_LINE 0x0007 /* kernel command line parameters */
  60. /* (string) */
  61. /*
  62. * Amiga-specific tags
  63. */
  64. #define BI_AMIGA_MODEL 0x8000 /* model (u_long) */
  65. #define BI_AMIGA_AUTOCON 0x8001 /* AutoConfig device */
  66. /* (struct ConfigDev) */
  67. #define BI_AMIGA_CHIP_SIZE 0x8002 /* size of Chip RAM (u_long) */
  68. #define BI_AMIGA_VBLANK 0x8003 /* VBLANK frequency (u_char) */
  69. #define BI_AMIGA_PSFREQ 0x8004 /* power supply frequency (u_char) */
  70. #define BI_AMIGA_ECLOCK 0x8005 /* EClock frequency (u_long) */
  71. #define BI_AMIGA_CHIPSET 0x8006 /* native chipset present (u_long) */
  72. #define BI_AMIGA_SERPER 0x8007 /* serial port period (u_short) */
  73. /*
  74. * Atari-specific tags
  75. */
  76. #define BI_ATARI_MCH_COOKIE 0x8000 /* _MCH cookie from TOS (u_long) */
  77. #define BI_ATARI_MCH_TYPE 0x8001 /* special machine type (u_long) */
  78. /* (values are ATARI_MACH_* defines */
  79. /* mch_cookie values (upper word) */
  80. #define ATARI_MCH_ST 0
  81. #define ATARI_MCH_STE 1
  82. #define ATARI_MCH_TT 2
  83. #define ATARI_MCH_FALCON 3
  84. /* mch_type values */
  85. #define ATARI_MACH_NORMAL 0 /* no special machine type */
  86. #define ATARI_MACH_MEDUSA 1 /* Medusa 040 */
  87. #define ATARI_MACH_HADES 2 /* Hades 040 or 060 */
  88. #define ATARI_MACH_AB40 3 /* Afterburner040 on Falcon */
  89. /*
  90. * VME-specific tags
  91. */
  92. #define BI_VME_TYPE 0x8000 /* VME sub-architecture (u_long) */
  93. #define BI_VME_BRDINFO 0x8001 /* VME board information (struct) */
  94. /* BI_VME_TYPE codes */
  95. #define VME_TYPE_TP34V 0x0034 /* Tadpole TP34V */
  96. #define VME_TYPE_MVME147 0x0147 /* Motorola MVME147 */
  97. #define VME_TYPE_MVME162 0x0162 /* Motorola MVME162 */
  98. #define VME_TYPE_MVME166 0x0166 /* Motorola MVME166 */
  99. #define VME_TYPE_MVME167 0x0167 /* Motorola MVME167 */
  100. #define VME_TYPE_MVME172 0x0172 /* Motorola MVME172 */
  101. #define VME_TYPE_MVME177 0x0177 /* Motorola MVME177 */
  102. #define VME_TYPE_BVME4000 0x4000 /* BVM Ltd. BVME4000 */
  103. #define VME_TYPE_BVME6000 0x6000 /* BVM Ltd. BVME6000 */
  104. /* BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
  105. * Motorola VME boards. Contains board number, Bug version, board
  106. * configuration options, etc. See include/asm/mvme16xhw.h for details.
  107. */
  108. /*
  109. * Macintosh-specific tags (all u_long)
  110. */
  111. #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */
  112. #define BI_MAC_VADDR 0x8001 /* Mac video base address */
  113. #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */
  114. #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */
  115. #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */
  116. #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */
  117. #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */
  118. #define BI_MAC_BTIME 0x8007 /* Mac boot time */
  119. #define BI_MAC_GMTBIAS 0x8008 /* Mac GMT timezone offset */
  120. #define BI_MAC_MEMSIZE 0x8009 /* Mac RAM size (sanity check) */
  121. #define BI_MAC_CPUID 0x800a /* Mac CPU type (sanity check) */
  122. #define BI_MAC_ROMBASE 0x800b /* Mac system ROM base address */
  123. /*
  124. * Macintosh hardware profile data - unused, see macintosh.h for
  125. * reasonable type values
  126. */