Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Mar 4, 2012, 1:35:10 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootMenu.inc
r291 r294 1 1 ; Project name : XTIDE Universal BIOS 2 2 ; Description : Equates and structs used in Boot Menu. 3 3 4 %ifndef BOOTMENU_INC 4 5 %define BOOTMENU_INC … … 19 20 20 21 ; Boot Menu Information Table. These are generated for all XTIDE Universal 21 ; BIOS drives. Available only until boot is successful l.22 ; BIOS drives. Available only until boot is successful. 22 23 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name 23 24 … … 30 31 DPT_BOOTMENUINFO_SIZE_MULTIPLIER equ BOOTMENUINFO_size / LARGEST_DPT_SIZE 31 32 32 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 33 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 33 34 34 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0 35 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations."35 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0 36 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations." 36 37 %endif 37 38 38 39 %if BOOTMENUINFO_size % LARGEST_DPT_SIZE <> 0 39 %error "BOOTMENUINFO's size must be an even multiple of DPT's size. Add or remove padding at the bottom of BOOTMENUINFO to bring the two sizes into alignment. As BOOTMENUINFO is only used at boot time, with plenty of memory to consume, it is OK to waste some space here."40 %error "BOOTMENUINFO's size must be an even multiple of DPT's size. Add or remove padding at the bottom of BOOTMENUINFO to bring the two sizes into alignment. As BOOTMENUINFO is only used at boot time, with plenty of memory to consume, it is OK to waste some space here." 40 41 %endif 41 42 42 43 %if BOOTMENUINFO.szDrvName <> 0 43 %error "BOOTMENUINFO.szDrvName is assumed to be the first member of struc BOOTMENUINFO, in BootMenuPrint_RefreshItem"44 %error "BOOTMENUINFO.szDrvName is assumed to be the first member of struc BOOTMENUINFO, in BootMenuPrint_RefreshItem" 44 45 %endif 45 46 -
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r254 r294 10 10 11 11 12 ; Pre-boot variables. These do not exist after successful lboot to OS.12 ; Pre-boot variables. These do not exist after successful boot to OS. 13 13 ; Segment is always 0000h, same as BDA segment 14 14 struc BOOTVARS … … 95 95 mov ss, ax 96 96 lss sp, [ss:BOOTVARS.dwPostStack] 97 %endif 97 %endif 98 98 %endmacro 99 99 -
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r258 r294 37 37 %ifdef MODULE_SERIAL 38 38 ; DPT for Serial devices 39 struc DPT_SERIAL 39 struc DPT_SERIAL 40 40 .dpt resb DPT_size 41 41 … … 63 63 FLGH_DPT_INTERRUPT_IN_SERVICE EQU (1<<3) ; Set when waiting for IRQ 64 64 FLGH_DPT_RESET_nDRDY EQU (1<<4) ; Drive ready to accept commands 65 FLGH_DPT_RESET_nINITPRMS EQU (1<<5) ; Initialize Device Parameters successful l66 FLGH_DPT_RESET_nRECALIBRATE EQU (1<<6) ; Recalibrate successful l67 FLGH_DPT_RESET_nSETBLOCK EQU (1<<7) ; Initialize Block Mode successful l65 FLGH_DPT_RESET_nINITPRMS EQU (1<<5) ; Initialize Device Parameters successful 66 FLGH_DPT_RESET_nRECALIBRATE EQU (1<<6) ; Recalibrate successful 67 FLGH_DPT_RESET_nSETBLOCK EQU (1<<7) ; Initialize Block Mode successful 68 68 MASKH_DPT_RESET EQU 0F0h 69 69 -
trunk/XTIDE_Universal_BIOS/Inc/Int13h.inc
r218 r294 5 5 6 6 ; Hard Disk function (INT 13h) return status codes in AH 7 RET_HD_SUCCESS EQU 0h ; Operation succes full, no error occurred7 RET_HD_SUCCESS EQU 0h ; Operation successful, no error occurred 8 8 RET_HD_INVALID EQU 1h ; Invalid value passed or unsupported func 9 9 RET_HD_ADDRMARK EQU 2h ; Missing address mark
Note:
See TracChangeset
for help on using the changeset viewer.