Changeset 615 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Aug 7, 2021, 9:02:29 AM (3 years ago)
- Location:
- trunk/XTIDE_Universal_BIOS/Inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/DeviceIDE.inc
r567 r615 31 31 TIMEOUT_MAXIMUM EQU 255 ; We would actually want 31 seconds here but I don't think there are so slow drives 32 32 33 34 ; ATA specs say that in standby mode time to respond could be as long as 30 seconds 35 ; Note that some low-power drives (like Toshiba 1,8" HDD) have power management enabled by default 36 ; TODO: It might be better to define timeouts in IDEVARS (in ROMVARS) or in DPT. Having even a single bit in DPT means 37 ; we could adjust timeouts on runtime when enabling or disabling power management. 33 38 %ifdef MODULE_POWER_MANAGEMENT 34 39 TIMEOUT_BSY EQU TIMEOUT_MOTOR_STARTUP -
trunk/XTIDE_Universal_BIOS/Inc/IdeRegisters.inc
r541 r615 97 97 COMMAND_IDENTIFY_DEVICE EQU 0ECh 98 98 COMMAND_SET_FEATURES EQU 0EFh 99 COMMAND_STAND_BY EQU 0E2h 99 100 COMMAND_IDLE EQU 0E3h 100 101 … … 103 104 FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE EQU 01h ; CFA feature set only 104 105 FEATURE_ENABLE_WRITE_CACHE EQU 02h 106 FEATURE_ENABLE_ADVANCED_POWER_MANAGEMENT EQU 05h 105 107 FEATURE_DISABLE_8BIT_PIO_TRANSFER_MODE EQU 81h ; CFA feature set only 106 108 FEATURE_DISABLE_WRITE_CACHE EQU 82h ; Can also be used to flush cache 109 FEATURE_DISABLE_ADVANCED_POWER_MANAGEMENT EQU 85h ; Might not be supported even if FEATURE_ENABLE_ADVANCED_POWER_MANAGEMENT is 107 110 FEATURE_SET_TRANSFER_MODE EQU 03h ; Transfer mode goes to the Sector Count Register 108 111 PIO_DEFAULT_MODE EQU 0h
Note:
See TracChangeset
for help on using the changeset viewer.