forked from len0rd/rockbox
usb stack code police, fix some warnings and set svn keywords correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14761 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
72e7ea22b5
commit
e4363c116c
7 changed files with 52 additions and 25 deletions
|
|
@ -20,6 +20,26 @@
|
|||
#ifndef _USBSTACK_CONTROLLER_H_
|
||||
#define _USBSTACK_CONTROLLER_H_
|
||||
|
||||
/*
|
||||
* stack datatypes
|
||||
*/
|
||||
struct usb_response {
|
||||
void* buf;
|
||||
uint32_t length;
|
||||
};
|
||||
|
||||
struct usb_ep {
|
||||
const char name[15];
|
||||
uint8_t type;
|
||||
uint32_t ep_num; /* which endpoint? */
|
||||
uint32_t pipe_num; /* which pipe? */
|
||||
uint32_t maxpacket;
|
||||
bool claimed;
|
||||
|
||||
struct usb_endpoint_descriptor *desc;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct usb_controller {
|
||||
const char* name;
|
||||
enum usb_controller_type type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue