#include <usb/dev/driver.h>
#include <usb/debug.h>
#include <usb/classes/classes.h>
#include <usb/classes/massstor.h>
#include <errno.h>
#include <str_error.h>
#include "cmds.h"
#include "scsi.h"
#include "mast.h"
Go to the source code of this file.
Defines | |
#define | BULK_IN_EP 0 |
#define | BULK_OUT_EP 1 |
#define | GET_BULK_IN(dev) ((dev)->pipes[BULK_IN_EP].pipe) |
#define | GET_BULK_OUT(dev) ((dev)->pipes[BULK_OUT_EP].pipe) |
#define | NAME "usbmast" |
Functions | |
int | main (int argc, char *argv[]) |
Main entry point. | |
static int | usbmast_add_device (usb_device_t *dev) |
Callback when new device is attached and recognized as a mass storage. | |
Variables | |
static usb_endpoint_description_t | bulk_in_ep |
static usb_endpoint_description_t | bulk_out_ep |
usb_endpoint_description_t * | mast_endpoints [] |
static usb_driver_t | usbmast_driver |
USB mass storage driver. | |
static usb_driver_ops_t | usbmast_driver_ops |
USB mass storage driver ops. |
Definition in file main.c.