NuBusFPGA/nubus-to-ztex-gateware/DeclROM/vid_decl_rom.s

136 lines
4.3 KiB
ArmAsm
Raw Normal View History

2021-12-21 07:26:30 +00:00
.include "atrap.inc"
.include "globals.inc"
.include "declrom.inc"
.include "ROMDefs.inc"
.include "Video.inc"
.include "DepVideo.inc"
sRsrc_Board = 1 /* board sResource (>0 & <128) */
2022-09-17 15:06:15 +00:00
.include "VidRomDef.s"
sRsrc_RAMDsk = 0x90 /* functional sResources */
2021-12-21 07:26:30 +00:00
2022-09-17 15:06:15 +00:00
.include "VidRomRsrcDir.s"
2021-12-21 07:26:30 +00:00
_sRsrc_Board:
OSLstEntry sRsrcType,_BoardType /* offset to board descriptor */
OSLstEntry sRsrcName,_BoardName /* offset to name of board */
DatLstEntry boardId,NuBusFPGAID /* board ID # (assigned by DTS) */
OSLstEntry primaryInit,_sPInitRec /* offset to PrimaryInit exec blk */
2021-12-21 07:26:30 +00:00
OSLstEntry vendorInfo,_VendorInfo /* offset to vendor info record */
2022-04-17 09:25:48 +00:00
OSLstEntry secondaryInit,_sSInitRec /* offset to SecondaryInit block */
OSLstEntry sRsrcVidNames, _VModeName /* video name directory */
2021-12-21 07:26:30 +00:00
.long EndOfList
_BoardType:
.short catBoard /* board sResource */
.short typeBoard
2021-12-21 07:26:30 +00:00
.short 0
.short 0
_BoardName:
.string "NuBusFPGA GoboFB\0" /* name of board */
ALIGN 2
2021-12-21 07:26:30 +00:00
/* _VidICON ; optional icon, not needed */
/* _sVidNameDir ; optional name(s), not needed */
_sPInitRec:
.long _EndsPInitRec-_sPInitRec /* physical block size */
.include "NuBusFPGAPrimaryInit.s" /* the header/code */
2022-04-17 09:25:48 +00:00
.text
2021-12-21 07:26:30 +00:00
ALIGN 2
2022-04-17 09:25:48 +00:00
_EndsPInitRec:
2021-12-21 07:26:30 +00:00
2022-04-17 09:25:48 +00:00
_sSInitRec:
.long _EndsSInitRec-_sSInitRec /* physical block size */
.include "NuBusFPGASecondaryInit.s" /* the header/code */
.text
ALIGN 2
_EndsSInitRec:
2021-12-21 07:26:30 +00:00
ALIGN 2
2021-12-21 07:26:30 +00:00
_VendorInfo:
OSLstEntry vendorId,_VendorId /* offset to vendor ID */
OSLstEntry serialNum,_SerialNum /* offset to revision */
2021-12-21 07:26:30 +00:00
OSLstEntry revLevel,_RevLevel /* offset to revision */
OSLstEntry partNum,_PartNum /* offset to part number record */
OSLstEntry date,_Date /* offset to ROM build date */
.long EndOfList
_VendorId:
.string "Romain Dolbeau\0" /* vendor ID */
_SerialNum:
.string "0000000001\0" /* serial number */
2021-12-21 07:26:30 +00:00
_RevLevel:
.string "NuBusFPGA V1.0\0" /* revision level */
2021-12-21 07:26:30 +00:00
_PartNum:
.string "Part Number\0" /* part number */
2021-12-21 07:26:30 +00:00
_Date:
.string "&SysDate" /* date */
2021-12-21 07:26:30 +00:00
2022-09-17 15:06:15 +00:00
.include "VidRomName.s" /* contains _VidName */
2021-12-21 07:26:30 +00:00
2022-09-17 15:06:15 +00:00
.include "VidRomDir.s"
ALIGN 2
_GoboFBType:
2021-12-21 07:26:30 +00:00
.short catDisplay /* <Category> */
.short typeVideo /* <Type> */
.short drSwApple /* <DrvrSw> */
.short DrHwNuBusFPGA /* <DrvrHw> */
_GoboFBName:
.string "GoboFB_NuBusFPGA" /* video driver name */
2021-12-21 07:26:30 +00:00
_MinorBase:
.long defMinorBase /* frame buffer offset */
_MinorLength:
.long defMinorLength /* frame buffer length */
ALIGN 2
_GoboFBDrvrDir:
OSLstEntry sMacOS68020,_GoboFBDrvrMacOS68020 /* driver directory for Mac OS */
.long EndOfList
ALIGN 2
_GoboFBDrvrMacOS68020:
.long _GoboFBEnd020Drvr-. /* physical block size */
.include "NuBusFPGADrvr.s" /* driver code */
.text
_GoboFBEnd020Drvr:
2022-09-17 15:06:15 +00:00
.include "VidRomRes.s"
ALIGN 2
_sRsrc_RAMDsk:
OSLstEntry sRsrcType,_RAMDskType /* video type descriptor */
OSLstEntry sRsrcName,_RAMDskName /* offset to driver name string */
OSLstEntry sRsrcDrvrDir,_RAMDskDrvrDir /* offset to driver directory */
DatLstEntry sRsrcFlags,6 /* force 32 bits mode & open */
DatLstEntry sRsrcHWDevId,2 /* hardware device ID */
.long EndOfList /* end of list */
ALIGN 2
_RAMDskType:
.short catProto /* <Category> */
.short typeDrive /* custom */ /* <Type> */
.short drSwApple /* <DrvrSw> */
.short DrHwNuBusFPGADsk /* <DrvrHw> */
_RAMDskName:
.string "RAMDsk_NuBusFPGA" /* video driver name */
ALIGN 2
_RAMDskDrvrDir:
OSLstEntry sMacOS68020,_RAMDskDrvrMacOS68020 /* driver directory for Mac OS */
.long EndOfList
ALIGN 2
_RAMDskDrvrMacOS68020:
.long _RAMDskEnd020Drvr-. /* physical block size */
.include "NuBusFPGARAMDskDrvr.s" /* driver code */
.text
_RAMDskEnd020Drvr: