Changeset 173 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Sep 18, 2011, 11:41:29 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r165 r173 6 6 7 7 ; Base DPT for all device types 8 struc DPT ; 8bytes8 struc DPT ; 10 bytes 9 9 ; General Disk Parameter Table related 10 10 .wFlags: … … 12 12 .bFlagsHigh resb 1 13 13 .bIdevarsOffset resb 1 ; Offset to IDEVARS for this drive 14 15 ; L-CHS to P-CHS and L-CHS to LBA28 conversion related 16 .bLchsHeads resb 1 ; Number of L-CHS Heads (1...255) 14 resb 1 17 15 18 16 ; IDE Drive related 19 . wPchsCylinders resb 2 ; Number of P-CHS (IDE) Cylinders (1...16383)20 .w PchsHeadsAndSectors:21 .b PchsHeads resb 1 ; Number of P-CHS (IDE) Heads (1...16)22 .b PchsSectors resb 1 ; Number of P-CHS (IDE)Sectors per Track (1...63)17 .dwCylinders resb 4 ; Number of Cylinders 18 .wHeadsAndSectors: 19 .bHeads resb 1 ; Number of Heads (1...255) 20 .bSectors resb 1 ; Number of Sectors per Track (1...63) 23 21 endstruc 24 22 25 23 ; DPT for ATA devices 26 struc DPT_ATA ; 8 + 2 bytes = 10bytes24 struc DPT_ATA ; 10 + 2 bytes = 12 bytes 27 25 .dpt resb DPT_size 28 26 … … 61 59 ADDRESSING_MODE_LBA48 EQU 3 ; 48-bit LBA Addressing Mode 62 60 61 ; Number of Sectors per Track is fixed to 63 for LBA assist calculation. 62 ; 1024 cylinders, 256 heads, 63 sectors = 8.4 GB limit (but DOS does not support more than 255 heads) 63 MAX_LCHS_CYLINDERS EQU 1024 64 LBA_ASSIST_SPT EQU 63 65 63 66 64 67 %endif ; CUSTOMDPT_INC
Note:
See TracChangeset
for help on using the changeset viewer.