Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

294 lines
14 KiB

  1. /*
  2. File: ROMDefs.h
  3. Contains: NuBus card ROM Definitions.
  4. Version: Technology: System 7.5
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1986-1998 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __ROMDEFS__
  12. #define __ROMDEFS__
  13. #if PRAGMA_ONCE
  14. #pragma once
  15. #endif
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #if PRAGMA_IMPORT
  20. #pragma import on
  21. #endif
  22. #if PRAGMA_STRUCT_ALIGN
  23. #pragma options align=mac68k
  24. #elif PRAGMA_STRUCT_PACKPUSH
  25. #pragma pack(push, 2)
  26. #elif PRAGMA_STRUCT_PACK
  27. #pragma pack(2)
  28. #endif
  29. enum {
  30. appleFormat = 1, /*Format of Declaration Data (IEEE will assign real value)*/
  31. romRevision = 1, /*Revision of Declaration Data Format*/
  32. romRevRange = 9, /*Revision of Declaration Data Format [1..9]*/
  33. testPattern = 1519594439L, /*FHeader long word test pattern*/
  34. sCodeRev = 2, /*Revision of code (For sExec)*/
  35. sExec2 = 2,
  36. sCPU68000 = 1, /*CPU type = 68000*/
  37. sCPU68020 = 2, /*CPU type = 68020*/
  38. sCPU68030 = 3, /*CPU type = 68030*/
  39. sCPU68040 = 4, /*CPU type = 68040*/
  40. sMacOS68000 = 1, /*Mac OS, CPU type = 68000*/
  41. sMacOS68020 = 2, /*Mac OS, CPU type = 68020*/
  42. sMacOS68030 = 3, /*Mac OS, CPU type = 68030*/
  43. sMacOS68040 = 4, /*Mac OS, CPU type = 68040*/
  44. board = 0, /*Board sResource - Required on all boards*/
  45. displayVideoAppleTFB = 16843009L, /*Video with Apple parameters for TFB card.*/
  46. displayVideoAppleGM = 16843010L, /*Video with Apple parameters for GM card.*/
  47. networkEtherNetApple3Com = 33620225L, /*Ethernet with apple parameters for 3-Comm card.*/
  48. testSimpleAppleAny = -2147417856L, /*A simple test sResource.*/
  49. endOfList = 255, /*End of list*/
  50. defaultTO = 100 /*100 retries.*/
  51. };
  52. enum {
  53. /* sResource flags for sRsrc_Flags */
  54. fOpenAtStart = 1, /* set => open the driver at start time, else do not */
  55. f32BitMode = 2 /* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) */
  56. };
  57. enum {
  58. sRsrcType = 1, /*Type of sResource*/
  59. sRsrcName = 2, /*Name of sResource*/
  60. sRsrcIcon = 3, /*Icon*/
  61. sRsrcDrvrDir = 4, /*Driver directory*/
  62. sRsrcLoadDir = 5, /*Load directory*/
  63. sRsrcBootRec = 6, /*sBoot record*/
  64. sRsrcFlags = 7, /*sResource Flags*/
  65. sRsrcHWDevId = 8, /*Hardware Device Id*/
  66. minorBaseOS = 10, /*Offset to base of sResource in minor space.*/
  67. minorLength = 11, /*Length of sResource's address space in standard slot space.*/
  68. majorBaseOS = 12, /*Offset to base of sResource in Major space.*/
  69. majorLength = 13, /*Length of sResource in super slot space.*/
  70. sRsrcTest = 14, /*sBlock diagnostic code*/
  71. sRsrccicn = 15, /*Color icon*/
  72. sRsrcicl8 = 16, /*8-bit (indexed) icon*/
  73. sRsrcicl4 = 17, /*4-bit (indexed) icon*/
  74. sDRVRDir = 16, /*sDriver directory*/
  75. sGammaDir = 64, /*sGamma directory*/
  76. sRsrcVidNames = 65, /*Video mode name directory*/
  77. sRsrcDock = 80, /*spID for Docking Handlers*/
  78. sDiagRec = 85, /*spID for board diagnostics*/
  79. sVidAuxParams = 123, /*more video info for Display Manager -- timing information*/
  80. sDebugger = 124, /*DatLstEntry for debuggers indicating video anamolies*/
  81. sVidAttributes = 125, /*video attributes data field (optional,word)*/
  82. fLCDScreen = 0, /* bit 0 - when set is LCD, else is CRT*/
  83. fBuiltInDisplay = 1, /* 1 - when set is built-in (in the box) display, else not*/
  84. fDefaultColor = 2, /* 2 - when set display prefers multi-bit color, else gray*/
  85. fActiveBlack = 3, /* 3 - when set black on display must be written, else display is naturally black*/
  86. fDimMinAt1 = 4, /* 4 - when set should dim backlight to level 1 instead of 0*/
  87. fBuiltInDetach = 4, /* 4 - when set is built-in (in the box), but detaches*/
  88. sVidParmDir = 126,
  89. sBkltParmDir = 140, /*directory of backlight tables*/
  90. stdBkltTblSize = 36, /*size of "standard" 0..31-entry backlight table*/
  91. sSuperDir = 254
  92. };
  93. /* ======================================================================= */
  94. /* sResource types */
  95. /* ======================================================================= */
  96. enum {
  97. catBoard = 0x0001, /*Category for board types.*/
  98. catTest = 0x0002, /*Category for test types -- not used much.*/
  99. catDisplay = 0x0003, /*Category for display (video) cards.*/
  100. catNetwork = 0x0004, /*Category for Networking cards.*/
  101. catScanner = 0x0008, /*scanners bring in data somehow*/
  102. catCPU = 0x000A,
  103. catIntBus = 0x000C,
  104. catProto = 0x0011,
  105. catDock = 0x0020, /*<Type>*/
  106. typeBoard = 0x0000,
  107. typeApple = 0x0001,
  108. typeVideo = 0x0001,
  109. typeEtherNet = 0x0001,
  110. typeStation = 0x0001,
  111. typeDesk = 0x0002,
  112. typeTravel = 0x0003,
  113. typeDSP = 0x0004,
  114. typeXPT = 0x000B,
  115. typeSIM = 0x000C,
  116. typeDebugger = 0x0100,
  117. type68000 = 0x0002,
  118. type68020 = 0x0003,
  119. type68030 = 0x0004,
  120. type68040 = 0x0005,
  121. type601 = 0x0025,
  122. type603 = 0x002E,
  123. typeAppleII = 0x0015, /*Driver Interface : <id.SW>*/
  124. drSwMacCPU = 0,
  125. drSwAppleIIe = 0x0001,
  126. drSwApple = 1, /*To ask for or define an Apple-compatible SW device.*/
  127. drSwMacsBug = 0x0104,
  128. drSwDepewEngineering = 0x0101, /*Driver Interface : <id.SW><id.HW>*/
  129. drHwTFB = 1, /*HW ID for the TFB (original Mac II) video card.*/
  130. drHw3Com = 1, /*HW ID for the Apple EtherTalk card.*/
  131. drHwBSC = 3,
  132. drHwGemini = 1,
  133. drHwDeskBar = 1,
  134. drHwHooperDock = 2, /*Hooper's CatDock,TypeDesk,DrSwApple ID; registered with DTS.*/
  135. drHwATT3210 = 0x0001,
  136. drHwBootBug = 0x0100,
  137. drHwMicroDock = 0x0100, /* video hardware id's - <catDisplay><typVideo>*/
  138. drHwSTB3 = 0x0002, /* Assigned by Kevin Mellander for STB-3 hardware. */
  139. drHwSTB = drHwSTB3, /* (Both STB-3 and STB-4 share the same video hardware.) */
  140. drHwRBV = 0x0018, /* IIci Aurora25/16 hw ID */
  141. drHwJMFB = 0x0019, /* 4o8/8o24 NuBus card */
  142. drHwElsie = 0x001A,
  143. drHwTim = 0x001B,
  144. drHwDAFB = 0x001C,
  145. drHwDolphin = 0x001D, /* 8o24GC NuBus card */
  146. drHwGSC = 0x001E, /* (Renamed from GSC drHWDBLite) */
  147. drHwDAFBPDS = 0x001F,
  148. drHWVSC = 0x0020,
  149. drHwApollo = 0x0021,
  150. drHwSonora = 0x0022,
  151. drHwReserved2 = 0x0023,
  152. drHwColumbia = 0x0024,
  153. drHwCivic = 0x0025,
  154. drHwBrazil = 0x0026,
  155. drHWPBLCD = 0x0027,
  156. drHWCSC = 0x0028,
  157. drHwJET = 0x0029,
  158. drHWMEMCjr = 0x002A,
  159. drHwBoogie = 0x002B, /* 8o24AC nuBus video card (built by Radius) */
  160. drHwHPV = 0x002C, /* High performance Video (HPV) PDS card for original PowerMacs */
  161. drHwPlanaria = 0x002D, /*PowerMac 6100/7100/8100 PDS AV video*/
  162. drHwValkyrie = 0x002E,
  163. drHwKeystone = 0x002F,
  164. drHWATI = 0x0055,
  165. drHwGammaFormula = 0x0056, /* Use for gType of display mgr gamma tables */
  166. /* other drHW id's for built-in functions*/
  167. drHwSonic = 0x0110,
  168. drHwMace = 0x0114,
  169. drHwDblExp = 0x0001, /* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*/
  170. MIIBoardId = 0x0010, /*Mac II Board ID*/
  171. ciVidBoardID = 0x001F, /*Aurora25 board ID*/
  172. CX16VidBoardID = 0x0020, /*Aurora16 board ID*/
  173. MIIxBoardId = 0x0021, /*Mac IIx Board ID*/
  174. SE30BoardID = 0x0022, /*Mac SE/30 Board ID*/
  175. MIIcxBoardId = 0x0023, /*Mac IIcx Board ID*/
  176. MIIfxBoardId = 0x0024, /*F19 board ID*/
  177. EricksonBoardID = 0x0028,
  178. ElsieBoardID = 0x0029,
  179. TIMBoardID = 0x002A,
  180. EclipseBoardID = 0x002B,
  181. SpikeBoardID = 0x0033,
  182. DBLiteBoardID = 0x0035,
  183. ZydecoBrdID = 0x0036,
  184. ApolloBoardID = 0x0038,
  185. PDMBrdID = 0x0039,
  186. VailBoardID = 0x003A,
  187. WombatBrdID = 0x003B,
  188. ColumbiaBrdID = 0x003C,
  189. CycloneBrdID = 0x003D,
  190. CompanionBrdID = 0x003E,
  191. DartanianBoardID = 0x0040,
  192. DartExtVidBoardID = 0x0046,
  193. HookBoardID = 0x0047, /*Hook internal video board ID*/
  194. EscherBoardID = 0x004A, /*Board ID for Escher (CSC)*/
  195. POBoardID = 0x004D, /*Board ID for Primus/Optimus/Aladdin*/
  196. TempestBrdID = 0x0050, /*Non-official Board ID for Tempest*/
  197. BlackBirdBdID = 0x0058, /*Board ID for BlackBird*/
  198. BBExtVidBdID = 0x0059, /*Board ID for BlackBird built-in external video*/
  199. YeagerBoardID = 0x005A, /*Board ID for Yeager*/
  200. BBEtherNetBdID = 0x005E, /*Board ID for BlackBird Ethernet board*/
  201. TELLBoardID = 0x0065, /*Board ID for TELL (Valkyrie)*/
  202. MalcolmBoardID = 0x065E, /*Board ID for Malcolm*/
  203. AJBoardID = 0x065F, /*Board ID for AJ*/
  204. M2BoardID = 0x0660, /*Board ID for M2*/
  205. OmegaBoardID = 0x0661, /*Board ID for Omega*/
  206. TNTBoardID = 0x0670, /*Board ID for TNT/Alchemy/Hipclipper CPUs (did Nano just make this up?)*/
  207. HooperBoardID = 0x06CD, /*Board ID for Hooper*/
  208. /* other board IDs*/
  209. BoardIDDblExp = 0x002F,
  210. DAFBPDSBoardID = 0x0037,
  211. MonetBoardID = 0x0048,
  212. SacSONIC16BoardID = 0x004E,
  213. SacSONIC32BoardID = 0x004F, /* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*/
  214. drHWMacII = 0x0001, /*Mac II hw ID*/
  215. drHwMacIIx = 0x0002, /*Mac IIx hw ID*/
  216. drHWSE30 = 0x0003, /*Mac SE/30 hw ID*/
  217. drHwMacIIcx = 0x0004, /*Mac IIcx hw ID*/
  218. drHWMacIIfx = 0x0005, /*Mac IIfx hw ID*/
  219. drHWF19 = 0x0005, /*F19 hw ID*/
  220. sBlockTransferInfo = 20, /*general slot block xfer info*/
  221. sMaxLockedTransferCount = 21, /*slot max. locked xfer count*/
  222. boardId = 32, /*Board Id*/
  223. pRAMInitData = 33, /*sPRAM init data*/
  224. primaryInit = 34, /*Primary init record*/
  225. timeOutConst = 35, /*Time out constant*/
  226. vendorInfo = 36, /*Vendor information List. See Vendor List, below*/
  227. boardFlags = 37, /*Board Flags*/
  228. secondaryInit = 38, /*Secondary init record/code*/
  229. /* The following Id's are associated with all CPU sResources.*/
  230. MajRAMSp = 129, /*ID of Major RAM space.*/
  231. MinROMSp = 130, /*ID of Minor ROM space.*/
  232. vendorId = 1, /*Vendor Id*/
  233. serialNum = 2, /*Serial number*/
  234. revLevel = 3, /*Revision level*/
  235. partNum = 4, /*Part number*/
  236. date = 5 /*Last revision date of the card*/
  237. };
  238. enum {
  239. testByte = 32, /*Test byte.*/
  240. testWord = 33, /*0021*/
  241. testLong = 34, /*Test Long.*/
  242. testString = 35 /*Test String.*/
  243. };
  244. /* sResource List. Category: Display Type: Video */
  245. /* The following Id's are common to all Mode sResources in Display_Video */
  246. /* functional sResources. */
  247. enum {
  248. mBlockTransferInfo = 5, /* slot block xfer info PER MODE */
  249. mMaxLockedTransferCount = 6 /* slot max. locked xfer count PER MODE */
  250. };
  251. #if PRAGMA_STRUCT_ALIGN
  252. #pragma options align=reset
  253. #elif PRAGMA_STRUCT_PACKPUSH
  254. #pragma pack(pop)
  255. #elif PRAGMA_STRUCT_PACK
  256. #pragma pack()
  257. #endif
  258. #ifdef PRAGMA_IMPORT_OFF
  259. #pragma import off
  260. #elif PRAGMA_IMPORT
  261. #pragma import reset
  262. #endif
  263. #ifdef __cplusplus
  264. }
  265. #endif
  266. #endif /* __ROMDEFS__ */