source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/EBIOS.inc@ 166

Last change on this file since 166 was 165, checked in by aitotat@…, 13 years ago

Changes to XTIDE Universal BIOS:

  • Hopefully this commit is successful. Sorry for the mess.
File size: 2.2 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Equates used in Enhanced INT 13h functions (EBIOS).
3%ifndef EBIOS_INC
4%define EBIOS_INC
5
6; EBIOS specification returned by INT 13h, AH=41h
7EBIOS_VERSION EQU 21h ; 21h = EDD version 1.1
8
9; Support bits returned by INT 13h, AH=41h
10ENHANCED_DRIVE_ACCESS_SUPPORT EQU (1<<0) ; 41h, 42h, 43h 44h, 47h and 48h are available
11DRIVE_LOCKING_AND_EJECTING_SUPPORT EQU (1<<1) ; 41h, 45h, 46h, 48h, 49h are available and INT 15h, AH=52h
12ENHANDED_DISK_DRIVE_SUPPORT EQU (1<<2) ; 41h, 48h, 4Eh are available (EDD)
13
14
15; Extended Drive Information returned by AH=48h
16struc EDRIVE_INFO
17 .wSize resb 2 ; 0, Size of this buffer, at least 26
18 .wFlags resb 2 ; 2, Information flags
19 .dwCylinders resb 4 ; 4, Total number of addressable cylinders
20 .dwHeads resb 4 ; 8, Total number of addressable heads
21 .dwSectorsPerTrack resb 4 ; 12, Number of sectors per track
22 .qwTotalSectors resb 8 ; 16, Total number of addressable sectors
23 .wSectorSize resb 2 ; 24, Number of bytes per sector
24
25 .fpEDDparams resb 8 ; 26, Optional pointer to Enhanced Disk Drive (EDD) configuration parameters
26endstruc
27
28MINIMUM_EDRIVEINFO_SIZE EQU 26 ; 26 bytes does not include EDD pointer
29
30; Flags for EDRIVE_INFO.wFlags
31FLG_DMA_BOUNDARY_ERRORS_HANDLED_BY_BIOS EQU (1<<0)
32FLG_CHS_INFORMATION_IS_VALID EQU (1<<1)
33FLG_REMOVABLE_DRIVE EQU (1<<2)
34FLG_WRITE_WITH_VERIFY_SUPPORTED EQU (1<<3)
35FLG_CHANGE_LINE_SUPPORT EQU (1<<4) ; Removable media only
36FLG_LOCKABLE EQU (1<<5) ; Removable media only
37FLG_NO_MEDIA_PRESENT_AND_CHS_SET_TO_MAX EQU (1<<6) ; Removable media only
38
39
40; Disk Address Packet for read, write and verify functions
41struc DAP
42 .bSize resb 1 ; 0, Size of this packet in bytes
43 .bReservedAt1 resb 1 ; 1, Currently unused, must be zero
44 .wSectorCount:
45 .bSectorCount resb 1 ; 2, Number of sectors to process (1...127)
46 .bReservedAt3 resb 1 ; 3, Currently unused, must be zero
47 .dwMemoryAddress:
48 .wOffset resb 2 ; 4, Memory offset for transfer
49 .wSegment resb 2 ; 6, Memory segment for transfer
50 .qwLBA resb 8 ; 8, Starting sector for transfer
51endstruc
52
53MINIMUM_DAP_SIZE EQU 16
54
55
56%endif ; EBIOS_INC
Note: See TracBrowser for help on using the repository browser.