;------------------------------------------------------------------- ; ; (c) Apple Computer, Inc. 1987 ; All rights reserved. ; ;------------------------------------------------------------------- ; ; File : CommROM.a ; Author : Michael Klassen, June 8, 1987. ; Description : This file contains the data structure definition ; for the MCP Comm Engine card. ; ;------------------------------------------------------------------- ; Modification History : ; ; 7 March 1988: WHJW: mods to support multiple ROM vers w/ same source code ; 8 July 1988: WHJW: Correctly identified slot resource list entries ;------------------------------------------------------------------- ;************************************************************* ;Constants ;************************************************************* INCLUDE 'CommDeclr.h' INCLUDE 'Application.h' ;Include files PRINT OFF INCLUDE 'DeclROMEqu.a' ;Declaration ROM EQU's INCLUDE 'SlotMgrEqu.a' ;Slot Manager EQU's PRINT ON CommROM MAIN STRING C ;=============================================================================== ; Power-On test ; The following jsr PowerOn must be the first instruction of code in the ROM. ; PowerOn tests RAM, ROM, & will then call the Vendor Powerup test defined in ApplPoweron.a ;=============================================================================== IMPORT PowerOn ;from powerup.a jsr PowerOn ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; Resource Directory ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; _sRsrcDir OSLstEntry sRsrc_Board,_sRsrc_Board ; OSLstEntry sRsrc_CPU, _sRsrc_CPU ; defines CPU, MCP architecture OSLstEntry sRsrc_Comm1, _sRsrc_Comm1 ;category Communications OSLstEntry sRsrc_Comm2, _sRsrc_Comm2 ;category Communications OSLstEntry sRsrc_Comm3, _sRsrc_Comm3 ;category Communications OSLstEntry sRsrc_Comm4, _sRsrc_Comm4 ;category Communications DatLstEntry EndOfList,0 ; <0> ;============================================================= ; sRsrc_Board List ;============================================================= ; _sRsrc_Board OSLstEntry sRsrc_Type,_BoardType ; OSLstEntry sRsrc_Name,_BoardName ; DatLstEntry BoardId,CommBoardId ; OSLstEntry PrimaryInit,_sPInitRec ; <_sPInitRec record offset> OSLstEntry VendorInfo,_VendorInfo ; <_VendorInfo record offset> DatLstEntry EndOfList,0 ; <0> _BoardType DC.W CatBoard ;Board sResource : DC.W TypBoard ; DC.W 0 ; DC.W 0 ; _BoardName DC.L 'Apple 3270/5250 NB' ;Official Name of Board ;------------------------------------------------------------- ; Vendor Info record ;------------------------------------------------------------- _VendorInfo OSLstEntry VendorId,_VendorId ; OSLstEntry RevLevel,_RevLevel ; OSLstEntry PartNum,_PartNum ; DatLstEntry EndOfList,0 ; <0> _VendorId DC.L 'Copyright (C) 1988 Apple Computer' ;Vendor Id _RevLevel DC.L 'ROM rev. A' ;Revision Level(note new part #) _PartNum DC.L '342-0667 (H) 342-0666 (L)' ;Part Number ;============================================================= ; sRsrc_CPU List ;============================================================= ; _sRsrc_CPU OSLstEntry sRsrc_Type,_CPUType ; OSLstEntry sRsrc_Name,_CPUName ; ; OSLstEntry sRsrc_DrvrDir,_ComDrvrDir ; OSLstEntry MinorBaseOS, _MinorBase OSLstEntry MinorLength, _MinorLength OSLstEntry sRsrc_sMemory, _sRsrc_sMemory ; defines card memory mapping DatLstEntry EndOfList,0 ; <0> _CPUType DC.W CatCPU ;Board sResource : DC.W Typ68000 ; DC.W DrSwNotThere ; DC.W DrHwAMCP ; _CPUName DC.L 'CPU_68000_none_AppleMCP' ;Name of CPU _MinorBase DC.L 0 ;Offset is 0 _MinorLength DC.L $1000000 ;memory map length is 16 Meg ;============================================================= ; _sRsrc_sMemory List ;============================================================= ; _sRsrc_sMemory OSLstEntry sRsrc_Type,_sMemoryType ; OSLstEntry sRsrc_Name,_sMemoryName ; OSLstEntry MinorRAMAddr, _MinorRAMAddr OSLstEntry MinorROMAddr, _MinorROMAddr OSLstEntry MinorDeviceAddr, _MinorDeviceAddr DatLstEntry EndOfList,0 ; <0> _sMemoryType DC.W CatsMemory ;Board sResource : DC.W 1 ; MCP type DC.W DrSwNotThere ; DC.W DrHwAMCP ; _sMemoryName DC.L 'sMemory' ;Name of resource _MinorRAMAddr DC.L 12 ;block size in bytes DC.L $400000 ;RAM length (Architecture allows up to 4 Meg) DC.L $0 ;RAM base offset _MinorROMAddr DC.L 12 ;block size in bytes DC.L $10000 ;ROM length (Architecture allows 64K) DC.L $FF0000 ;ROM base offset _MinorDeviceAddr DC.L _EndMinorDeviceAddr - _MinorDeviceAddr ; Block size DC.L $400000 ;no decode/DTACK I/O interface logic length DC.L $400000 ;no decode/DTACK I/O interface logic offset DC.L $200000 ;decode/DTACK I/O interface logic length DC.L $800000 ;decode/DTACK I/O interface logic offset DC.L $200000 ;NuBus control range length DC.L $A00000 ;NuBus control range offset DC.L $00000b ;MCP control range length DC.L $C00000 ;MCP control range offset _EndMinorDeviceAddr EQU * ; End of block ;------------------------------------------------------------- ; Driver directory (not used) ;------------------------------------------------------------- ;_ComDrvrDir OSLstEntry sMacOS68020,_sMacOS68020 ; ; DatLstEntry EndOfList,0 ; <0> ;Driver-1 (68020). ;_sMacOS68020 DC.L _End020Drvr-_sMacOS68020 ;Physical Block Size ; INCLUDE 'ComDrvr.a' ;The Header/Code ;_End020Drvr EQU * STRING C ;============================================================= ; sRsrc_Comm1 List ;============================================================= ; _sRsrc_Comm1 OSLstEntry sRsrc_Type,_CommunicationType1 ; OSLstEntry sRsrc_Name,_CommunicationName1 ; DatLstEntry sRsrc_HWDevId,1 ;hardware device ID DatLstEntry EndOfList,0 ; <0> _CommunicationType1 DC.W CatCommunication ;Board sResource : DC.W Typ3270 ; DC.W DrSwNotThere ; DC.W DrHwAMCP ; _CommunicationName1 DC.L 'Communication_3270_none_AppleMCP' ;Name of resource ;============================================================= ; sRsrc_Comm2 List ;============================================================= ; _sRsrc_Comm2 OSLstEntry sRsrc_Type,_CommunicationType2 ; OSLstEntry sRsrc_Name,_CommunicationName2 ; DatLstEntry sRsrc_HWDevId,2 ;hardware device ID DatLstEntry EndOfList,0 ; <0> _CommunicationType2 DC.W CatCommunication ;Board sResource : DC.W Typ3270 ; DC.W DrSwNotThere ; DC.W DrHwA3270_5250 ;, implies 8344 chip _CommunicationName2 DC.L 'Communication_3270_none_8344' ;Name of resource ;============================================================= ; sRsrc_Comm3 List ;============================================================= ; _sRsrc_Comm3 OSLstEntry sRsrc_Type,_CommunicationType3 ; OSLstEntry sRsrc_Name,_CommunicationName3 ; DatLstEntry sRsrc_HWDevId,3 ;hardware device ID DatLstEntry EndOfList,0 ; <0> _CommunicationType3 DC.W CatCommunication ;Board sResource : DC.W Typ5250 ; DC.W DrSwNotThere ; DC.W DrHwAMCP ; _CommunicationName3 DC.L 'Communication_5250_none_AppleMCP' ;Name of resource ;============================================================= ; sRsrc_Comm4 List ;============================================================= ; _sRsrc_Comm4 OSLstEntry sRsrc_Type,_CommunicationType4 ; OSLstEntry sRsrc_Name,_CommunicationName4 ; DatLstEntry sRsrc_HWDevId,4 ;hardware device ID DatLstEntry EndOfList,0 ; <0> _CommunicationType4 DC.W CatCommunication ;Board sResource : DC.W Typ5250 ; 5250 DC.W DrSwNotThere ; DC.W DrHwA3270_5250 ;, implies 8344 chip _CommunicationName4 DC.L 'Communication_5250_none_8344' ;Name of resource ; DO NOT ADD ANYTHING BELOW THIS LINE OR THE PRIMARY INIT CODE WILL FAIL!!! ;------------------------------------------------------------- ; Primary Init Record ;------------------------------------------------------------- _sPInitRec DC.L _EndsPInitRec-_sPInitRec ;Physical Block Size INCLUDE 'PrimaryInit.a' ;The Primary Init Header/Code _EndsPInitRec EQU * ;End of block STRING C DC.W VendID ; unofficial 3270/5250 id DC.W CommID ; unofficial MCP architecture id ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; Format/Header Block ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ DC.L (_sRsrcDir-*)**$00FFFFFF ;Offset to sResource directory DC.L ROMSize ;Length of declaration data DC.L 0 ;CRC {Patched by crcPatch} DC.B ROMRevLevel ;ROM Revision level defined in application.h DC.B AppleFormat ;Format DC.L TestPattern ;Test pattern DC.B 0 ;Reserved byte DC.B $0F ;ByteLanes: 0000 1111 ENDP END