mast.c File Reference

Generic functions for USB mass storage (implementation). More...

#include "mast.h"
#include "cmds.h"
#include <bool.h>
#include <errno.h>
#include <str_error.h>
#include <usb/debug.h>
#include <usb/dev/request.h>

Go to the source code of this file.

Defines

#define MASTLOG(format,)

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_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.

Variables

bool usb_mast_verbose = true


Detailed Description

Generic functions for USB mass storage (implementation).

Definition in file mast.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7