diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-10-16 14:03:39 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-10-16 16:30:15 -0400 |
commit | 54a1c6d629b7aafe52974a2a9f5c8cf3a3780413 (patch) | |
tree | eebcb20dda928f91edd94b368cbab555b115e472 /src/hw/usb.h | |
parent | 277ea6f5d145f77d2374b9425016735c302811a0 (diff) | |
download | seabios-54a1c6d629b7aafe52974a2a9f5c8cf3a3780413.tar.gz |
usb: Use usb_realloc_pipe for pipe alloc, update, and free.
Now that the usb controller drivers all support the realloc method,
use that for all pipe allocations, reallocations, and freeing. This
gives the driver more control over the pipe life cycle.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb.h')
-rw-r--r-- | src/hw/usb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hw/usb.h b/src/hw/usb.h index 8e3e60a0..208d08f5 100644 --- a/src/hw/usb.h +++ b/src/hw/usb.h @@ -228,17 +228,17 @@ struct usb_endpoint_descriptor { ****************************************************************/ // usb.c -struct usb_pipe *usb_alloc_pipe(struct usbdevice_s *usbdev - , struct usb_endpoint_descriptor *epdesc); int usb_send_bulk(struct usb_pipe *pipe, int dir, void *data, int datasize); int usb_poll_intr(struct usb_pipe *pipe, void *data); int usb_32bit_pipe(struct usb_pipe *pipe_fl); +struct usb_pipe *usb_alloc_pipe(struct usbdevice_s *usbdev + , struct usb_endpoint_descriptor *epdesc); +void usb_free_pipe(struct usbdevice_s *usbdev, struct usb_pipe *pipe); int usb_send_default_control(struct usb_pipe *pipe , const struct usb_ctrlrequest *req, void *data); int usb_is_freelist(struct usb_s *cntl, struct usb_pipe *pipe); void usb_add_freelist(struct usb_pipe *pipe); struct usb_pipe *usb_get_freelist(struct usb_s *cntl, u8 eptype); -void usb_free_pipe(struct usbdevice_s *usbdev, struct usb_pipe *pipe); void usb_desc2pipe(struct usb_pipe *pipe, struct usbdevice_s *usbdev , struct usb_endpoint_descriptor *epdesc); int usb_get_period(struct usbdevice_s *usbdev |