/* File: CSCDeclVideo.r Contains: DeclData info for the CSC hardware. Written by: Mike Puckett, January 12, 1993. Copyright: © 1993-1994 by Apple Computer, Inc., all rights reserved. Change History (most recent first): 1/24/94 rab Changed MinorLength_640x400b to MinorLength640x400 to match DepVideoEqu and sync with Kaos. 1/4/94 PN Add additional support for the rest of CSC panels from Kaos. 12/13/93 PN Roll in KAOs and Horror changes to support Malcom and AJ machines <1> 01-12-93 jmp first checked in */ //------------------------------------------------------------- // Includes/Equates //------------------------------------------------------------- #include "Types.r" #define _NO_SINL_ // Don’t need 'SINL' resource here. #include "ROMLink.r" #undef _NO_SINL_ #include "DepVideoEqu.r" #include "HardwarePrivateEqu.r" #include "InternalOnlyEqu.r" #include "Quickdraw.r" // This #define's are a stopgap measure for now. #define firstVidMode 0x80 #define secondVidMode 0x81 #define thirdVidMode 0x82 #define fourthVidMode 0x83 #define fifthVidMode 0x84 #define sixthVidMode 0x85 //------------------------------------------------------------- // CSC sRsrc Directory //------------------------------------------------------------- resource 'sdir' (6000, "_sRsrcCSCDir") {{ sRsrc_BdEscher, l{"_sRsrc_BdEscher"}; // Board sResources sRsrc_BdBlackBird, l{"_sRsrc_BdBlackBird"}; sRsrc_BdYeager, l{"_sRsrc_BdYeager"}; // Functional sRsrcs for CSC-based video. // sRsrc_Vid_CSC_C_S_TFT_399, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 $80 sRsrc_Vid_CSC_C_S_TFT_480, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 $81 sRsrc_Vid_CSC_C_S_TFT_399a, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 $82 sRsrc_Vid_CSC_C_S_TFT_480a, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 sRsrc_Vid_CSC_C_D_STN_480, l{"_sRsrc_Vid_CSC_640x480_STN"}; // 1,2,4,8 $85 sRsrc_Vid_CSC_C_S_TFT_399b, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 sRsrc_Vid_CSC_C_S_TFT_480b, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 sRsrc_Vid_CSC_C_S_TFT_399c, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 sRsrc_Vid_CSC_C_S_TFT_480c, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 sRsrc_Vid_CSC_C_S_TFT_399d, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 sRsrc_Vid_CSC_C_S_TFT_480d, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 sRsrc_Vid_CSC_G_D_STN_400, l{"_sRsrc_Vid_CSC_640x400Gray"}; // 1,2,4 sRsrc_Vid_CSC_G_S_TFT_400, l{"_sRsrc_Vid_CSC_640x400Gray"}; // 1,2,4 sRsrc_Vid_CSC_G_D_STN_480, l{"_sRsrc_Vid_CSC_640x480Gray"}; // 1,2,4 sRsrc_Vid_CSC_G_S_TFT_480, l{"_sRsrc_Vid_CSC_640x480GrayTFT"}; // 1,2,4,8 sRsrc_Vid_CSC_C_S_TFT_399y, l{"_sRsrc_Vid_CSC_640x399_TFT"}; // 1,2,4,8,16 sRsrc_Vid_CSC_C_S_TFT_480y, l{"_sRsrc_Vid_CSC_640x480_TFT"}; // 1,2,4,8 sRsrc_Vid_CSC_G_D_STN_400y, l{"_sRsrc_Vid_CSC_640x400Gray"}; // 1,2,4 sRsrc_Vid_CSC_G_S_TFT_400y, l{"_sRsrc_Vid_CSC_640x400Gray"}; // 1,2,4 // Miscellaneous sRsrcs for CSC. // sRsrc_CPUMac030, a{"_sRsrc_CPUMac030"}; // CPU sRsrcs. sRsrc_CPUMac040, a{"_sRsrc_CPUMacO40"}; sRsrc_Sonic, a{"_sRsrc_Sonic"}; // Sonic sRrsc. }}; //------------------------------------------------------------- // Board sRsrc List //------------------------------------------------------------- resource 'boar' (6010,"_sRsrc_BdEscher") {{ sRsrcType, a{"_BoardType"}; sRsrcName, c{"CSC Built-in Video"}; BoardId, d{EscherBoardID}; PrimaryInit, a{"_sCSCPrimaryInit"}; VendorInfo, a{"_VendorInfo"}; sRsrcVidNames,l{"_CSCVidNameDir"}; sVidParmDir, l{"_VidParmDir_CSC"}; }}; resource 'boar' (6020,"_sRsrc_BdBlackBird") {{ sRsrcType, a{"_BoardType"}; sRsrcName, c{"CSC-2 Built-In Video"}; BoardId, d{BlackBirdBdID}; PrimaryInit, a{"_sCSCPrimaryInit"}; VendorInfo, a{"_VendorInfo"}; sRsrcVidNames,l{"_CSCVidNameDir"}; sVidParmDir, l{"_VidParmDir_CSC"}; }}; resource 'boar' (6030,"_sRsrc_BdYeager") {{ sRsrcType, a{"_BoardType"}; sRsrcName, c{"CSC-3 Built-In Video"}; BoardId, d{YeagerBoardID}; PrimaryInit, a{"_sCSCPrimaryInit"}; VendorInfo, a{"_VendorInfo"}; sRsrcVidNames,l{"_CSCVidNameDir"}; sVidParmDir, l{"_VidParmDir_CSC"}; }}; //------------------------------------------------------------- // Video Name Directory //------------------------------------------------------------- resource 'vdir' (6000, "_CSCVidNameDir") {{ sRsrc_Vid_CSC_C_S_TFT_399, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_C_S_TFT_399a, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480a, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_C_D_STN_480, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_C_S_TFT_399b, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480b, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_C_S_TFT_399c, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480c, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_C_S_TFT_399d, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480d, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_G_D_STN_400, l{"_sName_GrayLCD400"}; sRsrc_Vid_CSC_G_S_TFT_400, l{"_sName_GrayLCD400"}; sRsrc_Vid_CSC_G_D_STN_480, l{"_sName_GrayLCD480"}; sRsrc_Vid_CSC_G_S_TFT_480, l{"_sName_GrayLCD480x"}; sRsrc_Vid_CSC_C_S_TFT_399y, l{"_sName_ColorLCD"}; sRsrc_Vid_CSC_C_S_TFT_480y, l{"_sName_BigCLCD"}; sRsrc_Vid_CSC_G_D_STN_400y, l{"_sName_GrayLCD400"}; sRsrc_Vid_CSC_G_S_TFT_400y, l{"_sName_GrayLCD400"}; }}; resource 'vmna' (6000,"_sName_ColorLCD") {128, "640 x 400, Thousands of Colors"}; resource 'vmna' (6010,"_sName_BigCLCD") {129, "640 x 480, 256 Colors or Grays"}; resource 'vmna' (6020,"_sName_GrayLCD400") {130, "640 x 400, 16 Grays"}; resource 'vmna' (6030,"_sName_GrayLCD480") {131, "640 x 480, 16 Grays"}; resource 'vmna' (6040,"_sName_GrayLCD480x") {132, "640 x 480, 64 Grays"}; //------------------------------------------------------------- // Functional sResources //------------------------------------------------------------- resource 'srsc' (6000,"_sRsrc_Vid_CSC_640x399_TFT") {{ sRsrcType, l{"_VideoTypeCSC"}; sRsrcName, l{"_VideoNameCSC"}; sRsrcDrvrDir, l{"_VidDrvrDirCSC"}; sRsrcFlags, d{(0|(1<