X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a5338b60e111972364a8bc6f07011c6defd213d2..bf870a1dde437a48ae40d092a14e164c861ea102:/lunaix-os/includes/hal/ahci/scsi.h diff --git a/lunaix-os/includes/hal/ahci/scsi.h b/lunaix-os/includes/hal/ahci/scsi.h index 6ba0fc2..fee899f 100644 --- a/lunaix-os/includes/hal/ahci/scsi.h +++ b/lunaix-os/includes/hal/ahci/scsi.h @@ -14,6 +14,9 @@ #define SCSI_WRITE_BLOCKS_16 0x8a #define SCSI_WRITE_BLOCKS_12 0xaa +#define SCSI_CDB16 16 +#define SCSI_CDB12 12 + struct scsi_cdb12 { uint8_t opcode; @@ -47,13 +50,13 @@ scsi_create_packet16(struct scsi_cdb16* cdb, uint64_t lba, uint32_t alloc_size); -void +int scsi_read_buffer(struct hba_device* dev, uint64_t lba, void* buffer, uint32_t size); -void +int scsi_write_buffer(struct hba_device* dev, uint64_t lba, void* buffer,