#ifndef __LUNAIX_SATA_H
#define __LUNAIX_SATA_H
-#include <stdint.h>
+#include <hal/ahci/hba.h>
#define SATA_REG_FIS_D2H 0x34
#define SATA_REG_FIS_H2D 0x27
uint64_t lba,
uint16_t sector_count);
-int
-sata_read_buffer(struct hba_device* dev,
- uint64_t lba,
- void* buffer,
- uint32_t size);
-
-int
-sata_write_buffer(struct hba_device* dev,
- uint64_t lba,
- void* buffer,
- uint32_t size);
+void
+sata_submit(struct hba_device* dev, struct blkio_req* io_req);
+void
+sata_read_error(struct hba_port* port);
#endif /* __LUNAIX_SATA_H */