Changeset 399 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Timestamp:
- Apr 19, 2012, 10:39:44 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm
r376 r399 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 16 ; GNU General Public License for more details. 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 19 19 20 20 ; Section containing code … … 34 34 IdeDPT_Finalize: 35 35 36 %ifdef MODULE_FEATURE_SETS 37 ;-------------------------------------------------------------------- 38 ; .DetectPowerManagementSupport 39 ; Parameters: 40 ; DS:DI: Ptr to Disk Parameter Table 41 ; ES:SI: Ptr to 512-byte ATA information read from the drive 42 ; Returns: 43 ; Nothing 44 ; Corrupts registers: 45 ; Nothing 46 ;-------------------------------------------------------------------- 47 .DetectPowerManagementSupport: 48 test BYTE [es:si+ATA6.wSetSup82], A6_wSetSup82_POWERMAN 49 jz .NoPowerManagementSupport 50 or BYTE [di+DPT.bFlagsHigh], FLGH_DPT_POWER_MANAGEMENT_SUPPORTED 51 .NoPowerManagementSupport: 52 %endif ; MODULE_FEATURE_SETS 53 36 54 ;-------------------------------------------------------------------- 37 55 ; .StoreBlockMode 38 56 ; Parameters: 39 57 ; DS:DI: Ptr to Disk Parameter Table 40 ; ES:SI: Ptr to 512-byte ATA information read from the drive41 ; CS:BP: Ptr to IDEVARS for the controller42 58 ; Returns: 43 59 ; Nothing 44 60 ; Corrupts registers: 45 ; AX61 ; Nothing 46 62 ;-------------------------------------------------------------------- 47 63 .StoreBlockMode: … … 78 94 mov [di+DPT_ADVANCED_ATA.wMinPioCycleTime], cx 79 95 mov [di+DPT_ADVANCED_ATA.bPioMode], al 80 or [di+DPT.bFlagsHigh], ah 96 or [di+DPT.bFlagsHigh], ah 81 97 82 98 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.