source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc@ 114

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

Changes to XTIDE Universal BIOS:

  • Cleaned boot loader code some more.
File size: 1.0 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Defines for BOOTVARS struct used by boot menu
3; and drive initialization.
4%ifndef BOOTVARS_INC
5%define BOOTVARS_INC
6
7
8BOOT_READ_RETRY_TIMES EQU 3
9
10
11; Boot Menu Information Table. These are generated for all XTIDE Universal
12; BIOS drives. Available only until boot is successfull.
13LEN_BOOTNFO_DRV EQU 26 ; Bytes reserved for drive name
14struc BOOTNFO
15 .twSectCnt resb 6 ; Total user addressable sectors
16 .szDrvName resb LEN_BOOTNFO_DRV+1 ; Drive name
17 resb 1 ; Alignment
18endstruc
19
20
21; Pre-boot variables. These do not exist after successfull boot to OS.
22; Segment is always 0000h, same as BDA segment
23struc BOOTVARS
24 resb 800h
25 .dwPostStack resb 4 ; 804h, POST stack when entering INT 19h
26 resb 8
27 .rgBootNfo resb 73F4h ; 80Ch, Array containing BOOTNFO structs
28 .rgbMnuStack: ; 7C00h and below, Boot Menu stack
29 .rgbAtaInfo: ; 7C00h, ATA Information for drive detection
30 .rgbBootSect resb 512 ; 7C00h, Boot sector
31endstruc
32
33
34%endif ; BOOTVARS_INC
Note: See TracBrowser for help on using the repository browser.