Line | |
---|
1 | ; File name : BootVars.inc
|
---|
2 | ; Project name : IDE BIOS
|
---|
3 | ; Created date : 23.3.2010
|
---|
4 | ; Last update : 9.4.2010
|
---|
5 | ; Author : Tomi Tilli
|
---|
6 | ; Description : Defines for BOOTVARS struct used by boot menu
|
---|
7 | ; and drive initialization.
|
---|
8 | %ifndef BOOTVARS_INC
|
---|
9 | %define BOOTVARS_INC
|
---|
10 |
|
---|
11 |
|
---|
12 | ; Boot Menu Information Table. These are generated for all XTIDE Universal
|
---|
13 | ; BIOS drives. Available only until boot is successfull.
|
---|
14 | LEN_BOOTNFO_DRV EQU 26 ; Bytes reserved for drive name
|
---|
15 | struc BOOTNFO
|
---|
16 | .twSectCnt resb 6 ; Total user addressable sectors
|
---|
17 | .szDrvName resb LEN_BOOTNFO_DRV+1 ; Drive name
|
---|
18 | resb 1 ; Alignment
|
---|
19 | endstruc
|
---|
20 |
|
---|
21 |
|
---|
22 | ; Pre-boot variables. These do not exist after successfull boot to OS.
|
---|
23 | ; Segment is always 0000h, same as BDA segment
|
---|
24 | struc BOOTVARS
|
---|
25 | resb 800h
|
---|
26 | .dwSys18h resb 4 ; 800h, System INT 18h handler (Diskless boot, Boot failure)
|
---|
27 | .dwPostStack resb 4 ; 804h, POST stack when entering INT 19h
|
---|
28 | .bMenuHotkey resb 1 ; 808h, Boot Menu hotkey, zero if none pressed
|
---|
29 | resb 3
|
---|
30 | .rgBootNfo resb 73F4h ; 80Ch, Array containing BOOTNFO structs
|
---|
31 | .rgbMnuStack: ; 7C00h and below, Boot Menu stack
|
---|
32 | .rgbAtaInfo: ; 7C00h, ATA Information for drive detection
|
---|
33 | .rgbBootSect resb 512 ; 7C00h, Boot sector
|
---|
34 | endstruc
|
---|
35 |
|
---|
36 |
|
---|
37 | %endif ; BOOTVARS_INC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.