Changeset 158 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
- Timestamp:
- May 2, 2011, 9:41:51 AM (13 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r152 r158 8 8 struc DPT ; 8 bytes 9 9 ; General Disk Parameter Table related 10 .wFlags resb 2 10 .wFlags: 11 .bFlagsLow resb 1 12 .bFlagsHigh resb 1 11 13 .bIdevarsOffset resb 1 ; Offset to IDEVARS for this drive 12 14 … … 35 37 36 38 37 ; Bit definitions for DPT.wFlags 38 MASK_DPT_CHS_SHIFT_COUNT EQU (7<<0) ; Bits 0...3, P-CHS to L-CHS bit shift count (0...4) 39 FLG_DPT_SLAVE EQU FLG_DRVNHEAD_DRV ; (1<<4), Drive is slave drive 40 MASK_DPT_ADDRESSING_MODE EQU (3<<5) ; Bits 5..6, Addressing Mode (bit 6 == FLG_DRVNHEAD_LBA) 41 FLG_DPT_ENABLE_IRQ EQU (1<<7) 42 FLG_DPT_REVERSED_A0_AND_A3 EQU (1<<8) ; XTIDE mod, Address lines 0 and 3 reversed 43 FLG_DPT_SERIAL_DEVICE EQU (1<<9) ; Serial Port Device 44 FLG_DPT_BLOCK_MODE_SUPPORTED EQU (1<<10) ; Use block transfer commands 45 FLG_DPT_INTERRUPT_IN_SERVICE EQU (1<<11) ; Set when waiting for IRQ 46 FLG_DPT_RESET_nDRDY EQU (1<<12) ; Drive ready to accept commands 47 FLG_DPT_RESET_nINITPRMS EQU (1<<13) ; Initialize Device Parameters successfull 48 FLG_DPT_RESET_nRECALIBRATE EQU (1<<14) ; Recalibrate successfull 49 FLG_DPT_RESET_nSETBLOCK EQU (1<<15) ; Initialize Block Mode successfull 50 MASK_DPT_RESET EQU 0F000h 39 ; Bit definitions for DPT.bFlagsLow 40 MASKL_DPT_CHS_SHIFT_COUNT EQU (7<<0) ; Bits 0...3, P-CHS to L-CHS bit shift count (0...4) 41 FLGL_DPT_SLAVE EQU FLG_DRVNHEAD_DRV ; (1<<4), Drive is slave drive 42 MASKL_DPT_ADDRESSING_MODE EQU (3<<5) ; Bits 5..6, Addressing Mode (bit 6 == FLG_DRVNHEAD_LBA) 43 FLGL_DPT_ENABLE_IRQ EQU (1<<7) 44 45 ; Bit definitions for DPT.bFlagsHigh 46 FLGH_DPT_REVERSED_A0_AND_A3 EQU (1<<0) ; XTIDE mod, Address lines 0 and 3 reversed 47 FLGH_DPT_SERIAL_DEVICE EQU (1<<1) ; Serial Port Device 48 FLGH_DPT_BLOCK_MODE_SUPPORTED EQU (1<<2) ; Use block transfer commands 49 FLGH_DPT_INTERRUPT_IN_SERVICE EQU (1<<3) ; Set when waiting for IRQ 50 FLGH_DPT_RESET_nDRDY EQU (1<<4) ; Drive ready to accept commands 51 FLGH_DPT_RESET_nINITPRMS EQU (1<<5) ; Initialize Device Parameters successfull 52 FLGH_DPT_RESET_nRECALIBRATE EQU (1<<6) ; Recalibrate successfull 53 FLGH_DPT_RESET_nSETBLOCK EQU (1<<7) ; Initialize Block Mode successfull 54 MASKH_DPT_RESET EQU 0F0h 51 55 52 56 ; Addressing modes for DPT.wFlags
Note: See TracChangeset
for help on using the changeset viewer.