summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:35:31 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:35:31 +0000
commitbfc129a5928072edb736b0a682b91bbaaf69f7f7 (patch)
treedacd3ac96aee56e825e899b7ef7eba036ae2f7ab /firmware/usbstack
parent64fb3e8df30a10163bb3474b6ae0664d59ae80bb (diff)
downloadrockbox-bfc129a5928072edb736b0a682b91bbaaf69f7f7.tar.gz
rockbox-bfc129a5928072edb736b0a682b91bbaaf69f7f7.tar.bz2
rockbox-bfc129a5928072edb736b0a682b91bbaaf69f7f7.zip
Fix even more tabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24155 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
-rw-r--r--firmware/usbstack/usb_class_driver.h18
-rw-r--r--firmware/usbstack/usb_storage.c2
2 files changed, 10 insertions, 10 deletions
diff --git a/firmware/usbstack/usb_class_driver.h b/firmware/usbstack/usb_class_driver.h
index a9bc759a5b..c8d1e7047d 100644
--- a/firmware/usbstack/usb_class_driver.h
+++ b/firmware/usbstack/usb_class_driver.h
@@ -41,46 +41,46 @@ struct usb_class_driver {
/* Tells the driver what its first interface number will be. The driver
returns the number of the first available interface for the next driver
(i.e. a driver with one interface will return interface+1)
- A driver must have at least one interface
- Mandatory function */
+ A driver must have at least one interface
+ Mandatory function */
int (*set_first_interface)(int interface);
/* Asks the driver to put the interface descriptor and all other
needed descriptor for this driver at dest.
Returns the number of bytes taken by these descriptors.
- Mandatory function */
+ Mandatory function */
int (*get_config_descriptor)(unsigned char *dest, int max_packet_size);
/* Tells the driver that a usb connection has been set up and is now
ready to use.
- Optional function */
+ Optional function */
void (*init_connection)(void);
/* Initialises the driver. This can be called multiple times,
and should not perform any action that can disturb other threads
(like getting the audio buffer)
- Optional function */
+ Optional function */
void (*init)(void);
/* Tells the driver that the usb connection is no longer active
- Optional function */
+ Optional function */
void (*disconnect)(void);
/* Tells the driver that a usb transfer has been completed. Note that "dir"
is relative to the host
- Optional function */
+ Optional function */
void (*transfer_complete)(int ep,int dir, int status, int length);
/* Tells the driver that a control request has come in. If the driver is
able to handle it, it should ack the request, and return true. Otherwise
it should return false.
- Optional function */
+ Optional function */
bool (*control_request)(struct usb_ctrlrequest* req, unsigned char *dest);
#ifdef HAVE_HOTSWAP
/* Tells the driver that a hotswappable disk/card was inserted or
extracted
- Optional function */
+ Optional function */
void (*notify_hotswap)(int volume, bool inserted);
#endif
};
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index f84cd4eefe..f8e3aba839 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -71,7 +71,7 @@
#define USB_BULK_RESET_REQUEST 0xff
#define USB_BULK_GET_MAX_LUN 0xfe
-#define DIRECT_ACCESS_DEVICE 0x00 /* disks */
+#define DIRECT_ACCESS_DEVICE 0x00 /* disks */
#define DEVICE_REMOVABLE 0x80
#define CBW_SIGNATURE 0x43425355