From 2bfd170cc3c33d575eb61295312e695ac95643ef Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 16 Oct 2014 12:31:42 -0400 Subject: usb: Clarify usb freelist manipulations Rename usb_getFreePipe() to usb_get_freelist(). Add usb_is_freelist() and usb_add_freelist() functions. Signed-off-by: Kevin O'Connor --- src/hw/usb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hw/usb.h') diff --git a/src/hw/usb.h b/src/hw/usb.h index e6948de..8e3e60a 100644 --- a/src/hw/usb.h +++ b/src/hw/usb.h @@ -235,8 +235,10 @@ int usb_poll_intr(struct usb_pipe *pipe, void *data); int usb_32bit_pipe(struct usb_pipe *pipe_fl); 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); -struct usb_pipe *usb_getFreePipe(struct usb_s *cntl, u8 eptype); void usb_desc2pipe(struct usb_pipe *pipe, struct usbdevice_s *usbdev , struct usb_endpoint_descriptor *epdesc); int usb_get_period(struct usbdevice_s *usbdev -- cgit v1.1