source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/CompatibleDPT.inc@ 42

Last change on this file since 42 was 3, checked in by Tomi Tilli, 14 years ago
File size: 1.7 KB
Line 
1; File name : CompatibleDPT.inc
2; Project name : IDE BIOS
3; Created date : 6.4.2010
4; Last update : 6.4.2010
5; Author : Tomi Tilli
6; Description : Structs for standard DPTs used for software
7; compatibility.
8%ifndef COMPATIBLEDPT_INC
9%define COMPATIBLEDPT_INC
10
11; Fixed Disk Parameter table used for drives with capacity up to 504 MiB
12struc COMPATIBLE_FDPT
13 .wCyls resb 2 ; 0, Maximum number of cylinders
14 .bHeads resb 1 ; 2, Maximum number of heads
15 .wRedWrCyl resb 2 ; 3, Starting cylinder for reduced write current (MFM)
16 .wWrPreCmpCyl resb 2 ; 5, Starting write precompensation cylinder (MFM)
17 .bMaxECCLen resb 1 ; 7, Maximum ECC data burst length (MFM)
18 .bDrvCtrl resb 1 ; 8, Control Byte
19 .bNormTimeout resb 1 ; 9, Normal timeout value
20 .bFormatTimeout resb 1 ; 10, Timeout value for format disk drive
21 .bCheckTimeout resb 1 ; 11, Timeout value for check disk drive
22 .wLZoneCyl resb 2 ; 12, Landing zone cylinder
23 .bSectPerTrack resb 1 ; 14, Number of sectors per track
24 resb 1 ; 15, unused
25endstruc
26
27
28; Fixed Disk Parameter table used for drives with P-CHS or LBA addressing
29struc COMPATIBLE_EDPT
30 .wLCyls resb 2 ; 0, L-CHS cylinders (1...1024)
31 .bLHeads resb 1 ; 2, L-CHS heads (1...255)
32 .bSignature resb 1 ; 3, EDPT signature (A0h)
33 .bPSect resb 1 ; 4, P-CHS sectors per track (1...63)
34 resb 3 ; 5...7, unused
35 .bDrvCtrl resb 1 ; 8, Control Byte
36 .wPCyls resb 2 ; 9, P-CHS cylinders (1...16383)
37 .bPHeads resb 1 ; 11, P-CHS heads (1...16)
38 resb 2 ; 12...13, unused
39 .bLSect resb 1 ; 14, L-CHS sectors per track (1...63)
40 .bChecksum resb 1 ; 15, Checksum of bytes 0 to 14
41endstruc
42
43COMPATIBLE_EDPT_SIGNATURE EQU 0A0h
44
45
46%endif ; COMPATIBLEDPT_INC
Note: See TracBrowser for help on using the repository browser.