I am trying to identify if a ATA and SATA drives with the ECh command with the opcodes:
- 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?