Skip to content

ahci: Basic ATAPI support (Needed for CD drives)

Ian Douglas Scott requested to merge ids1024:atapi into master

Various things still need to be implemented, but this provides basic read support.

It is not possible to mount without an appropriate filesystem driver. But you can test this under Redox using dd.

I attached a CD drive to qemu, which appeared as the file disk/pci-00.1F.02_ahci:2 under Redox. Use stat disk/pci-00.1F.02_ahci:2 to get the file size. Then I divided the size by 2048 (the ordinary block size for CD drives) to get the number of blocks (which was 4, since I just tested with a small text file).

sudo dd if=disk/pci-00.1F.02_ahci:2 of=test.txt count=4 bs=2048

So basic functionality appears to work, with more still to be done.

Merge request reports