Changeset 410 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Apr 26, 2012, 1:46:54 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm
r400 r410 47 47 .DetectPowerManagementSupport: 48 48 test BYTE [es:si+ATA6.wSetSup82], A6_wSetSup82_POWERMAN 49 jz .NoPowerManagementSupport49 jz SHORT .NoPowerManagementSupport 50 50 or BYTE [di+DPT.bFlagsHigh], FLGH_DPT_POWER_MANAGEMENT_SUPPORTED 51 51 .NoPowerManagementSupport: 52 52 %endif ; MODULE_FEATURE_SETS 53 54 55 ;-------------------------------------------------------------------- 56 ; .StoreDeviceType 57 ; Parameters: 58 ; DS:DI: Ptr to Disk Parameter Table 59 ; CS:BP: Ptr to IDEVARS for the controller 60 ; Returns: 61 ; Nothing 62 ; Corrupts registers: 63 ; AL 64 ;-------------------------------------------------------------------- 65 .StoreDeviceType: 66 call IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI 67 53 68 54 69 ;-------------------------------------------------------------------- … … 63 78 .StoreBlockMode: 64 79 mov BYTE [di+DPT_ATA.bBlockSize], 1 80 65 81 66 82 %ifdef MODULE_ADVANCED_ATA … … 81 97 mov [di+DPT_ADVANCED_ATA.bPioMode], al 82 98 or [di+DPT.bFlagsHigh], ah 99 83 100 84 101 ;-------------------------------------------------------------------- … … 111 128 .ChangeTo32bitDevice: 112 129 mov BYTE [di+DPT_ATA.bDevice], DEVICE_32BIT_ATA 130 .NoAdvancedControllerDetected: 131 %endif ; MODULE_ADVANCED_ATA 113 132 114 .NoAdvancedControllerDetected:115 ; Fall to IdeDPT_StoreDeviceTypeFromIdevarsInCSBPtoDPTinDSDI116 133 117 %endif ; MODULE_ADVANCED_ATA 134 ; End DPT 135 clc 136 ret 118 137 119 138 … … 131 150 mov al, [cs:bp+IDEVARS.bDevice] 132 151 mov [di+DPT_ATA.bDevice], al 133 ; End DPT134 clc135 152 ret
Note:
See TracChangeset
for help on using the changeset viewer.