|
| rt_packed (struct rt_scsi_unknow { rt_uint8_t opcode;}) |
|
| rt_packed (struct rt_scsi_test_unit_ready { rt_uint8_t opcode;rt_uint8_t reserved[4];rt_uint8_t control;rt_uint8_t pad[6];}) |
|
| rt_packed (struct rt_scsi_inquiry { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t page;rt_uint8_t reserved;rt_uint8_t alloc_length;rt_uint8_t control;rt_uint8_t pad[6];}) |
|
| rt_packed (struct rt_scsi_inquiry_data { #define RT_SCSI_DEVTYPE_MASK rt_uint8_t devtype;#define RT_SCSI_REMOVABLE_BIT rt_uint8_t rmb;rt_uint8_t reserved[2];rt_uint8_t length;rt_uint8_t reserved1[3];char vendor[8];char prodid[16];char prodrev[4];}) |
|
| rt_packed (struct rt_scsi_request_sense { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t reserved[2];rt_uint8_t alloc_length;rt_uint8_t control;rt_uint8_t pad[6];}) |
|
| rt_packed (struct rt_scsi_request_sense_data { rt_uint8_t error_code;rt_uint8_t segment_number;rt_uint8_t sense_key;rt_be32_t information;rt_uint8_t additional_sense_length;rt_be32_t cmd_specific_info;rt_uint8_t additional_sense_code;rt_uint8_t additional_sense_code_qualifier;rt_uint8_t field_replaceable_unit_code;rt_uint8_t sense_key_specific[3];}) |
|
| rt_packed (struct rt_scsi_read_capacity10 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t logical_block_addr;rt_uint8_t reserved[2];rt_uint8_t pmi;rt_uint8_t control;rt_be16_t pad;}) |
|
| rt_packed (struct rt_scsi_read_capacity10_data { rt_be32_t last_block;rt_be32_t block_size;}) |
|
| rt_packed (struct rt_scsi_read_capacity16 { rt_uint8_t opcode;rt_uint8_t config;rt_be64_t logical_block_addr;rt_be32_t alloc_len;rt_uint8_t pmi;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_read_capacity16_data { rt_be64_t last_block;rt_be32_t block_size;rt_uint8_t pad[20];}) |
|
| rt_packed (struct rt_scsi_read10 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_uint8_t reserved;rt_be16_t size;rt_uint8_t reserved2;rt_be16_t pad;}) |
|
| rt_packed (struct rt_scsi_read12 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_read16 { rt_uint8_t opcode;rt_uint8_t config;rt_be64_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_write10 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_uint8_t reserved;rt_be16_t size;rt_uint8_t reserved2;rt_be16_t pad;}) |
|
| rt_packed (struct rt_scsi_write12 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_write16 { rt_uint8_t opcode;rt_uint8_t config;rt_be64_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_synchronize_cache10 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_uint8_t reserved;rt_be16_t size;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_synchronize_cache16 { rt_uint8_t opcode;rt_uint8_t config;rt_be64_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_write_same10 { rt_uint8_t opcode;rt_uint8_t config;rt_be32_t lba;rt_uint8_t reserved;rt_be16_t size;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_write_same16 { rt_uint8_t opcode;rt_uint8_t config;rt_be64_t lba;rt_be32_t size;rt_uint8_t reserved;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_mode_select6 { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t reserved[2];rt_uint8_t param_list_len;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_mode_select10 { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t reserved[5];rt_be16_t param_list_len;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_mode_sense6 { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t page_control_code;rt_uint8_t subpage_code;rt_uint8_t allocation_len;rt_uint8_t control;}) |
|
| rt_packed (struct rt_scsi_mode_sense10 { rt_uint8_t opcode;rt_uint8_t config;rt_uint8_t page_control_code;rt_uint8_t subpage_code;rt_uint8_t reserved[3];rt_be16_t allocation_len;rt_uint8_t control;}) |
|
rt_err_t | rt_scsi_host_register (struct rt_scsi_host *scsi) |
|
rt_err_t | rt_scsi_host_unregister (struct rt_scsi_host *scsi) |
|
rt_inline rt_bool_t | rt_scsi_cmd_is_write (struct rt_scsi_cmd *cmd) |
|
rt_err_t | rt_scsi_request_sense (struct rt_scsi_device *sdev, struct rt_scsi_request_sense_data *out_data) |
|
rt_err_t | rt_scsi_test_unit_ready (struct rt_scsi_device *sdev) |
|
rt_err_t | rt_scsi_inquiry (struct rt_scsi_device *sdev, struct rt_scsi_inquiry_data *out_data) |
|
rt_err_t | rt_scsi_read_capacity10 (struct rt_scsi_device *sdev, struct rt_scsi_read_capacity10_data *out_data) |
|
rt_err_t | rt_scsi_read_capacity16 (struct rt_scsi_device *sdev, struct rt_scsi_read_capacity16_data *out_data) |
|
rt_err_t | rt_scsi_read10 (struct rt_scsi_device *sdev, rt_off_t lba, void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_read12 (struct rt_scsi_device *sdev, rt_off_t lba, void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_read16 (struct rt_scsi_device *sdev, rt_off_t lba, void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_write10 (struct rt_scsi_device *sdev, rt_off_t lba, const void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_write12 (struct rt_scsi_device *sdev, rt_off_t lba, const void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_write16 (struct rt_scsi_device *sdev, rt_off_t lba, const void *buffer, rt_size_t size) |
|
rt_err_t | rt_scsi_synchronize_cache10 (struct rt_scsi_device *sdev, rt_off_t lba, rt_size_t size) |
|
rt_err_t | rt_scsi_synchronize_cache16 (struct rt_scsi_device *sdev, rt_off_t lba, rt_size_t size) |
|
rt_err_t | rt_scsi_write_same10 (struct rt_scsi_device *sdev, rt_off_t lba, rt_size_t size) |
|
rt_err_t | rt_scsi_write_same16 (struct rt_scsi_device *sdev, rt_off_t lba, rt_size_t size) |
|
rt_err_t | rt_scsi_mode_select6 (struct rt_scsi_device *sdev, rt_uint8_t pf, rt_uint8_t sp, void *buffer, rt_size_t size, struct rt_scsi_mode_select_data *data) |
|
rt_err_t | rt_scsi_mode_select10 (struct rt_scsi_device *sdev, rt_uint8_t pf, rt_uint8_t sp, void *buffer, rt_size_t size, struct rt_scsi_mode_select_data *data) |
|
rt_err_t | rt_scsi_mode_sense6 (struct rt_scsi_device *sdev, rt_uint8_t dbd, rt_uint8_t modepage, rt_uint8_t subpage, void *buffer, rt_size_t size, struct rt_scsi_mode_select_data *data) |
|
rt_err_t | rt_scsi_mode_sense10 (struct rt_scsi_device *sdev, rt_uint8_t dbd, rt_uint8_t modepage, rt_uint8_t subpage, void *buffer, rt_size_t size, struct rt_scsi_mode_select_data *data) |
|