ATA PIO Mode: Difference between revisions

Jump to navigation Jump to search
m
→‎48 bit PIO: minor wording change
[unchecked revision][unchecked revision]
m (Temporary link to IO examples)
m (→‎48 bit PIO: minor wording change)
Line 248:
# Send the "READ SECTORS EXT" command (0x24) to port 0x1F7: outb(0x1F7, 0x24)
 
Note on the "magic bits" sent to port 0x1f6: Bit 6 (value = 0x40) is the LBA bit. This must be set for either LBA28 or LBA48 transfers. It must be clear for CHS transfers. Any drive that can support LBA48 will ignore theseall other bits on this port for an LBA48 command. You can set them if it will make your code cleaner (to use the same interfacemagic bits as LBA28).
 
To write sectors in 48 bit PIO mode, send command "WRITE SECTORS EXT" (0x34), instead. (As before, do not use REP OUTSW when writing.) And remember to do a Cache Flush after each write command completes.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu