#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;
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,