#include <sys/types.h>
#include <usb/usb.h>
#include <usb/dev/pipes.h>
#include <usb/dev/driver.h>
Go to the source code of this file.
Data Structures | |
struct | usb_massstor_inquiry_result_t |
Result of SCSI INQUIRY command. More... | |
Functions | |
int | usb_massstor_data_in (usb_device_t *dev, size_t bulk_in_pipe_index, size_t bulk_out_pipe_index, uint32_t tag, uint8_t lun, void *cmd, size_t cmd_size, void *in_buffer, size_t in_buffer_size, size_t *received_size) |
Request data from mass storage device. | |
int | usb_massstor_get_max_lun (usb_device_t *dev) |
Get max LUN of a mass storage device. | |
int | usb_massstor_inquiry (usb_device_t *dev, size_t bulk_in_idx, size_t bulk_out_idx, usb_massstor_inquiry_result_t *inquiry_result) |
Perform SCSI INQUIRY command on USB mass storage device. | |
int | usb_massstor_reset (usb_device_t *dev) |
Perform bulk-only mass storage reset. | |
void | usb_massstor_reset_recovery (usb_device_t *dev, size_t bulk_in_idx, size_t bulk_out_idx) |
Perform complete reset recovery of bulk-only mass storage. | |
size_t | usb_masstor_get_lun_count (usb_device_t *dev) |
Get number of LUNs supported by mass storage device. | |
const char * | usb_str_masstor_scsi_peripheral_device_type (int type) |
Get string representation for SCSI peripheral device type. |
Definition in file mast.h.