Identify a ATA or SATA
Posted: March 16th, 2014, 8:15
I am trying to identify if a ATA and SATA drives with the ECh command with the opcodes:
but this code returns FFh in ax register and when I try to read 1F4h and 1F5h ports returns FFh in ax too. How can I identify if is a ATA or SATA drive using I/O ports?
- Code:
mov ax,00ECh
out 1F7h,ax
in 1F7h,ax
but this code returns FFh in ax register and when I try to read 1F4h and 1F5h ports returns FFh in ax too. How can I identify if is a ATA or SATA drive using I/O ports?