source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/RamVars.inc @ 233

Last change on this file since 233 was 233, checked in by gregli@…, 12 years ago

Serial Port: split single byte port and baud into two bytes, taking advantage of the two bytes in DPT_SERIAL, which supports more serial baud rates and in particular fixed a bug where a 4x client machine couldn't talk to a 115.2K server machine. This is a wide change, touching lots of files, but most are shallow changes. DetectPrint.asm took the most significant changes, now it calculates the baud rate to display instead of using characters provided by the Configurator. The Configurator now has a new menu flag, FLG_MENUITEM_CHOICESTRINGS, for specifying that values are not linear and they should be lookedup rather than indexed. Finally, another important bug fixed here is that in some error cases, the serial port code could get into an infinite loop waiting ont the hardware; now it has a timeout.

File size: 2.0 KB
RevLine 
[88]1; Project name  :   XTIDE Universal BIOS
[3]2; Description   :   RAMVARS struct containing BIOS variables stored in RAM.
3%ifndef RAMVARS_INC
4%define RAMVARS_INC
5
6; Segment when RAMVARS is stored to top of interrupt vectors.
[150]7LITE_MODE_RAMVARS_SEGMENT   EQU     30h
[3]8
9
10; Variables for translating drive numbers.
11struc XLATEVARS
12    .bFDSwap        resb    1   ; Floppy Drive to swap to 00h and vice versa
13    .bHDSwap        resb    1   ; Hard Drive to swap to 80h and vice versa
[148]14    .bXlatedDrv     resb    1   ; Drive number after translation
[203]15                    resb    1   ; alignment
[3]16endstruc
17
18; RAM Variables.
19; Variables should be kept to minimum since they might be located
20; at the top of interrupt vectors.
21struc RAMVARS
[148]22    .fpOldI13h          resb    4   ; Far pointer to old INT 13h handler
[150]23    .wSignature         resb    2   ; Sign for finding stolen 1 kiB
[155]24    .bTimeoutTicksLeft  resb    1
25    .bLastTimeoutUpdate resb    1
[3]26
27    .wDrvCntAndFirst:
[148]28    .bDrvCnt            resb    1   ; Number of drives handled by this BIOS
29    .bFirstDrv          resb    1   ; Number of first drive for this BIOS
[3]30
31    ; Variables for drive number translation
32    .xlateVars      resb    XLATEVARS_size
33endstruc
34
[150]35RAMVARS_SIGNATURE       EQU "Xu"    ; RAMVARS signature for .wSignature
36
[179]37;
38; IDEPACK NOTE: The first six bytes of this structure are directly put on the
39; wire for MODULE_SERIAL, please do not change the order or insert other members.
40;
[150]41struc IDEPACK
[179]42    .bFeatures              resb    1
[150]43    .bDrvAndHead            resb    1   ; LBA28 27...24
44
45    .wSectorCountAndLbaLow:
46    .bSectorCount           resb    1
47    .bSectorNumber:
48    .bLbaLow                resb    1   ; LBA 7...0
49
50    .wCylinder:
51    .wLbaMiddleAndHigh:
52    .bLbaMiddle             resb    1   ; LBA 15...8
53    .bLbaHigh               resb    1   ; LBA 23...16
54
55    .bCommand               resb    1
56    .bDeviceControl         resb    1   ; Offset 7 shared with PIOVARS
[218]57                            resb    1
[150]58
59    ; Parameters for 48-bit LBA
60    .bLbaLowExt             resb    1   ; LBA48 31...24
61    .wLbaMiddleAndHighExt:
62    .bLbaMiddleExt          resb    1   ; LBA48 39...32
63    .bLbaHighExt            resb    1   ; LBA48 47...40
64
65    .intpack                resb    INTPACK_size
[3]66endstruc
67
[155]68EXTRA_BYTES_FOR_INTPACK     EQU (IDEPACK_size - INTPACK_size)
[3]69
70
71%endif ; RAMVARS_INC
Note: See TracBrowser for help on using the repository browser.