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

Last change on this file since 107 was 97, checked in by Tomi Tilli, 14 years ago

Changes to XTIDE Universal BIOS:

  • Inlined some initialization functions.
  • Removed alignment bytes from some initialization functions.
  • Removed creation of compatible DPTs.
File size: 1.4 KB
Line 
1; Project name : XTIDE Universal BIOS
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.
7SEGMENT_RAMVARS_TOP_OF_INTERRUPT_VECTORS EQU 30h
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
14 .bRecurCnt resb 1 ; INT 13h recursion counter for drive translation
15 resb 1 ; For WORD alignment
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
22 .fpOldI13h resb 4 ; Far pointer to old INT 13h handler
23
24 .dwI13DIDS: ; Temporary DI and DS storages when calling...
25 .wI13hDI: ; ...previous INT 13h handler
26 .wIdeBase resb 2 ; Base port address for currently handled controller
27
28 .wI13hDS:
29 .wTimeoutCounter resb 2
30
31 .wDrvCntAndFirst:
32 .bDrvCnt resb 1 ; Number of drives handled by this BIOS
33 .bFirstDrv resb 1 ; Number of first drive for this BIOS
34
35 ; Variables for drive number translation
36 .xlateVars resb XLATEVARS_size
37endstruc
38
39; Full mode RAM variables.
40struc FULLRAMVARS
41 .ramVars resb RAMVARS_size
42 .wSign resb 2 ; FULLRAMVARS signature for finding segment
43endstruc
44
45W_SIGN_FULLRAMVARS EQU "fR" ; FULLRAMVARS signature
46
47
48%endif ; RAMVARS_INC
Note: See TracBrowser for help on using the repository browser.