Changeset 363 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/ATA_ID.inc
- Timestamp:
- Mar 26, 2012, 4:20:43 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/ATA_ID.inc
r324 r363 3 3 %ifndef ATA_ID_INC 4 4 %define ATA_ID_INC 5 6 ; PIO Minimum Cycle Times (t0) 7 ; Timings for Advanced modes 3 and 4 can be read from ATA info WORDs 67 and 68 8 PIO_0_MIN_CYCLE_TIME_NS EQU 600 9 PIO_1_MIN_CYCLE_TIME_NS EQU 383 10 PIO_2_MIN_CYCLE_TIME_NS EQU 240 11 PIO_3_MIN_CYCLE_TIME_NS EQU 180 12 PIO_4_MIN_CYCLE_TIME_NS EQU 120 13 14 ; PIO Minimum Address Valid Times (t1) 15 PIO_0_MIN_ADDRESS_VALID_NS EQU 70 16 PIO_1_MIN_ADDRESS_VALID_NS EQU 50 17 PIO_2_MIN_ADDRESS_VALID_NS EQU 30 18 PIO_3_MIN_ADDRESS_VALID_NS EQU 30 19 PIO_4_MIN_ADDRESS_VALID_NS EQU 25 20 21 ; PIO Minimum Active Times (t2) 22 PIO_0_MIN_ACTIVE_TIME_NS EQU 165 23 PIO_1_MIN_ACTIVE_TIME_NS EQU 125 24 PIO_2_MIN_ACTIVE_TIME_NS EQU 100 25 PIO_3_MIN_ACTIVE_TIME_NS EQU 80 26 PIO_4_MIN_ACTIVE_TIME_NS EQU 70 27 28 ; PIO Minimum Recovery Times or Inactive Times (t2i) can be calculated 29 ; from Minimum Cycle Time (t0) - Minimum Active Time (t2) - Address Valid Time (t1). 30 ; I'm not sure about this calculation so correct me if I'm wrong! 31 ; Recovery time should be calculated at run time since Cycle Time t0 can be 32 ; read from ATA information (ATA2+) but most drives just report the 33 ; Min Cycle Times listed above. 34 35 5 36 6 37 ; ATA-1 Drive Information struct … … 32 63 resw 1 ; 50R 33 64 resb 1 ; 51[0-7]X 34 .bP IOTiming resb 1 ; 51[8-15]F, PIO data transfer cycle timing mode65 .bPioMode resb 1 ; 51[8-15]F, PIO data transfer cycle timing mode (0, 1 or 2) 35 66 resb 1 ; 52[0-7]X 36 67 .bDMATiming resb 1 ; 52[8-15]F, DMA data transfer cycle timing mode … … 163 194 A2_bBlockFlgs_VALID EQU (1<<0) ; Multiple sector setting (bBlockSel) is valid 164 195 196 ; ATA-2 Word 64, Advanced PIO transfer modes supported 197 A2_bPIOSupp_PIO3 EQU (1<<0) 198 A2_bPIOSupp_PIO4 EQU (1<<1) 199 165 200 166 201 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Note: See TracChangeset
for help on using the changeset viewer.