X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e8e64a4f1d76aaeac3defa13243505cccd25c078..e6416905c4afb34e61276cdc07c44813a3ebc5e7:/lunaix-os/includes/hal/ahci/sata.h?ds=inline diff --git a/lunaix-os/includes/hal/ahci/sata.h b/lunaix-os/includes/hal/ahci/sata.h index 99a45bc..d573a93 100644 --- a/lunaix-os/includes/hal/ahci/sata.h +++ b/lunaix-os/includes/hal/ahci/sata.h @@ -1,7 +1,7 @@ #ifndef __LUNAIX_SATA_H #define __LUNAIX_SATA_H -#include +#include #define SATA_REG_FIS_D2H 0x34 #define SATA_REG_FIS_H2D 0x27 @@ -53,16 +53,9 @@ sata_create_fis(struct sata_reg_fis* cmd_fis, uint64_t lba, uint16_t sector_count); -int -sata_read_buffer(struct hba_port* port, - uint64_t lba, - void* buffer, - uint32_t size); - -int -sata_write_buffer(struct hba_port* port, - 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 */