Skip to content

Commit

Permalink
Increate maximum transfer size to 4 KB
Browse files Browse the repository at this point in the history
To allow proxing device with larger configuration descriptors.

Also drop unused definitions.
  • Loading branch information
xairy committed Jun 14, 2024
1 parent 0bb3688 commit 01a09c8
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions host-raw-gadget.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,33 +86,16 @@ struct usb_raw_eps_info {

/*----------------------------------------------------------------------*/

#define EP_MAX_PACKET_CONTROL 1024
#define EP_MAX_PACKET_BULK 1024
#define EP_MAX_PACKET_INT 8
#define MAX_TRANSFER_SIZE 4096

struct usb_raw_control_event {
struct usb_raw_event inner;
struct usb_ctrlrequest ctrl;
};

struct usb_raw_control_io {
struct usb_raw_ep_io inner;
char data[EP_MAX_PACKET_CONTROL];
};

struct usb_raw_bulk_io {
struct usb_raw_ep_io inner;
char data[EP_MAX_PACKET_BULK];
};

struct usb_raw_int_io {
struct usb_raw_ep_io inner;
char data[EP_MAX_PACKET_INT];
};

struct usb_raw_transfer_io {
struct usb_raw_ep_io inner;
char data[1024];
char data[MAX_TRANSFER_SIZE];
};

/*----------------------------------------------------------------------*/
Expand Down

0 comments on commit 01a09c8

Please sign in to comment.