Initial interrupt URBs support

This commit is contained in:
Wojciech Zajac
2014-05-30 14:58:16 +02:00
committed by Lionel Sambuc
parent efa169276f
commit fc49538d86
6 changed files with 126 additions and 74 deletions

View File

@@ -150,22 +150,6 @@ typedef struct hcd_device_state {
hcd_device_state;
/*===========================================================================*
* HCD transfer requests *
*===========================================================================*/
struct hcd_bulkrequest {
char * data;
int size;
int endpoint;
unsigned int max_packet_size;
hcd_speed speed;
};
typedef struct usb_ctrlrequest hcd_ctrlrequest;
typedef struct hcd_bulkrequest hcd_bulkrequest;
/*===========================================================================*
* HCD event handling *
*===========================================================================*/
@@ -203,6 +187,25 @@ hcd_event;
#define HCD_ENDPOINT_0 0
/*===========================================================================*
* HCD transfer requests *
*===========================================================================*/
struct hcd_datarequest {
char * data;
int size;
int endpoint;
int direction;
unsigned int max_packet_size;
unsigned int interval;
hcd_speed speed;
hcd_transfer type;
};
typedef struct usb_ctrlrequest hcd_ctrlrequest;
typedef struct hcd_datarequest hcd_datarequest;
/*===========================================================================*
* Other definitions *
*===========================================================================*/

View File

@@ -26,8 +26,8 @@ struct hcd_driver_state {
void (*setup_device) (void *, hcd_reg1, hcd_reg1);
int (*reset_device) (void *, hcd_speed *);
void (*setup_stage) (void *, hcd_ctrlrequest *);
void (*bulk_in_stage) (void *, hcd_bulkrequest *);
void (*bulk_out_stage) (void *, hcd_bulkrequest *);
void (*rx_stage) (void *, hcd_datarequest *);
void (*tx_stage) (void *, hcd_datarequest *);
void (*in_data_stage) (void *);
void (*out_data_stage) (void *);
void (*in_status_stage) (void *);