X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e8e64a4f1d76aaeac3defa13243505cccd25c078..3b6a05fc894d0c1a3d431045ee5a53955ba093a0:/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 cce9af4..e1bbb71 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; @@ -48,15 +51,9 @@ scsi_create_packet16(struct scsi_cdb16* cdb, uint32_t alloc_size); void -scsi_read_buffer(struct hba_port* port, - uint64_t lba, - void* buffer, - uint32_t size); +scsi_submit(struct hba_device* dev, struct blkio_req* io_req); void -scsi_write_buffer(struct hba_port* port, - uint64_t lba, - void* buffer, - uint32_t size); +scsi_parse_capacity(struct hba_device* device, uint32_t* parameter); #endif /* __LUNAIX_ATAPI_H */