[90] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
[3] | 2 | ; Description : Defines for ROMVARS struct containing variables stored
|
---|
| 3 | ; in BIOS ROM.
|
---|
| 4 | %ifndef ROMVARS_INC
|
---|
| 5 | %define ROMVARS_INC
|
---|
| 6 |
|
---|
[181] | 7 | ; ROM Variables. Written to the ROM image before flashing.
|
---|
[3] | 8 | struc ROMVARS
|
---|
[181] | 9 | .wRomSign resb 2 ; ROM Signature (AA55h)
|
---|
| 10 | .bRomSize resb 1 ; ROM size in 512 byte blocks
|
---|
| 11 | .rgbJump resb 3 ; First instruction to ROM init (jmp)
|
---|
[90] | 12 |
|
---|
[181] | 13 | .rgbSign resb 8 ; Signature for XTIDE Configurator Program
|
---|
| 14 | .szTitle resb 31 ; BIOS title string
|
---|
| 15 | .szVersion resb 25 ; BIOS version string
|
---|
[90] | 16 |
|
---|
[181] | 17 | .wFlags resb 2 ; Word for ROM flags
|
---|
| 18 | .wDisplayMode resb 2 ; Display mode for boot menu
|
---|
| 19 | .wBootTimeout resb 2 ; Boot Menu selection timeout in system timer ticks
|
---|
| 20 | .bIdeCnt resb 1 ; Number of available IDE controllers
|
---|
| 21 | .bBootDrv resb 1 ; Boot Menu default drive
|
---|
| 22 | .bMinFddCnt resb 1 ; Minimum number of Floppy Drives
|
---|
| 23 | .bStealSize resb 1 ; Number of 1kB blocks stolen from 640kB base RAM
|
---|
[90] | 24 |
|
---|
[181] | 25 | .ideVars0 resb IDEVARS_size
|
---|
| 26 | .ideVars1 resb IDEVARS_size
|
---|
| 27 | .ideVars2 resb IDEVARS_size
|
---|
| 28 | .ideVars3 resb IDEVARS_size
|
---|
[175] | 29 |
|
---|
[176] | 30 | %ifdef MODULE_SERIAL
|
---|
[175] | 31 | .ideVarsSerialAuto resb IDEVARS_size
|
---|
[176] | 32 | %endif
|
---|
[3] | 33 | endstruc
|
---|
| 34 |
|
---|
| 35 | ; Bit defines for ROMVARS.wFlags
|
---|
[181] | 36 | FLG_ROMVARS_FULLMODE EQU (1<<0) ; Full operating mode (steals base RAM, supports EBIOS etc.)
|
---|
| 37 | FLG_ROMVARS_DRVXLAT EQU (1<<2) ; Enable drive number translation
|
---|
[175] | 38 | FLG_ROMVARS_MODULE_SERIAL EQU (1<<3)
|
---|
[176] | 39 | FLG_ROMVARS_MODULE_EBIOS EQU (1<<4)
|
---|
| 40 |
|
---|
[143] | 41 | ; Boot Menu Display Modes (see Assembly Library Display.inc for standard modes)
|
---|
| 42 | DEFAULT_TEXT_MODE EQU 4
|
---|
[3] | 43 |
|
---|
[143] | 44 |
|
---|
[3] | 45 | ; Controller specific variables
|
---|
| 46 | struc IDEVARS
|
---|
[196] | 47 | .wPort: ; IDE Base Port for Command Block (usual) Registers
|
---|
| 48 | .bSerialCOMDigit resb 1 ; Serial Device COM Port digit
|
---|
| 49 | .bSerialPackedPortAndBaud resb 1 ; Serial Device packed port and baud
|
---|
| 50 |
|
---|
| 51 | .wPortCtrl: ; IDE Base Port for Control Block Registers
|
---|
| 52 | .wSerialPackedPrintBaud resb 2 ; Serial Device packed baud rate for printing
|
---|
| 53 |
|
---|
| 54 | .bDevice resb 1 ; Device type
|
---|
| 55 | .bIRQ resb 1 ; Interrupt Request Number
|
---|
| 56 | .drvParamsMaster resb DRVPARAMS_size
|
---|
| 57 | .drvParamsSlave resb DRVPARAMS_size
|
---|
[3] | 58 | endstruc
|
---|
| 59 |
|
---|
[175] | 60 | ; Device types for IDEVARS.bDevice
|
---|
[150] | 61 | DEVICE_8BIT_DUAL_PORT_XTIDE EQU (0<<1)
|
---|
| 62 | DEVICE_XTIDE_WITH_REVERSED_A3_AND_A0 EQU (1<<1)
|
---|
| 63 | DEVICE_8BIT_SINGLE_PORT EQU (2<<1)
|
---|
| 64 | DEVICE_16BIT_ATA EQU (3<<1)
|
---|
| 65 | DEVICE_32BIT_ATA EQU (4<<1)
|
---|
| 66 | DEVICE_SERIAL_PORT EQU (5<<1)
|
---|
[3] | 67 |
|
---|
| 68 | ; Master/Slave drive specific parameters
|
---|
| 69 | struc DRVPARAMS
|
---|
| 70 | .wFlags resb 2 ; Drive flags
|
---|
| 71 | .wCylinders resb 2 ; User specified cylinders (1...16383)
|
---|
[99] | 72 | .wHeadsAndSectors:
|
---|
| 73 | .bHeads resb 1 ; User specified Heads (1...16)
|
---|
[3] | 74 | .bSect resb 1 ; User specified Sectors per track (1...63)
|
---|
| 75 | endstruc
|
---|
| 76 |
|
---|
| 77 | ; Bit defines for DRVPARAMS.wFlags
|
---|
| 78 | FLG_DRVPARAMS_USERCHS EQU (1<<0) ; User specified P-CHS values
|
---|
| 79 | FLG_DRVPARAMS_BLOCKMODE EQU (1<<1) ; Enable Block mode transfers
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 | %endif ; ROMVARS_INC
|
---|