Changeset 158 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- May 2, 2011, 9:41:51 AM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS/Inc
- Files:
-
- 2 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 -
trunk/XTIDE_Universal_BIOS/Inc/IdeRegisters.inc
r150 r158 19 19 STATUS_REGISTER_in EQU 7 ; Read only 20 20 COMMAND_REGISTER_out EQU 7 ; Write only 21 XTIDE_DATA_HIGH_REGISTER EQU 8 ; Non-standard (actually first Control Block reg)21 ;XTIDE_DATA_HIGH_REGISTER EQU 8 ; Non-standard (actually first Control Block reg) 22 22 23 23 ; IDE Register offsets from Control Block base port … … 58 58 ; Bit definitions for IDE Device Control Register 59 59 ; Bit 0 must be zero, unlisted bits are reserved. 60 FLG_DEVCONTROL_HOB EQU (1<<7) ; High Order Byte (ATA6+)60 ;FLG_DEVCONTROL_HOB EQU (1<<7) ; High Order Byte (ATA6+) 61 61 ;FLG_DEVCONTROL_O8H EQU (1<<3) ; Drive has more than 8 heads (pre-ATA only, 1 on ATA1, reserved on ATA2+) 62 62 FLG_DEVCONTROL_SRST EQU (1<<2) ; Software Reset
Note:
See TracChangeset
for help on using the changeset viewer.