ROMDefs.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:17k
源码类别:

多媒体编程

开发平台:

Visual C++

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