diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-06-15 01:02:43 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-06-15 01:02:43 +0000 |
commit | 06303d491a0f2982d6774156ea92ce9b41f9b12c (patch) | |
tree | b384d18397090617ec2f5b76c9e0ba67f45456c3 /sys/dev/usb/usb_dev.h | |
parent | 59f1f60cfaca26c7758f2642afca8d6500b9a06a (diff) | |
download | FreeBSD-src-06303d491a0f2982d6774156ea92ce9b41f9b12c.zip FreeBSD-src-06303d491a0f2982d6774156ea92ce9b41f9b12c.tar.gz |
s/usb2_/usb_|usbd_/ on all function names for the USB stack.
Diffstat (limited to 'sys/dev/usb/usb_dev.h')
-rw-r--r-- | sys/dev/usb/usb_dev.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/dev/usb/usb_dev.h b/sys/dev/usb/usb_dev.h index fb41e5a..0af1c79 100644 --- a/sys/dev/usb/usb_dev.h +++ b/sys/dev/usb/usb_dev.h @@ -167,41 +167,41 @@ struct usb_fifo_sc { struct cdev* dev; }; -extern struct cdevsw usb2_devsw; +extern struct cdevsw usb_devsw; -int usb2_fifo_wait(struct usb_fifo *fifo); -void usb2_fifo_signal(struct usb_fifo *fifo); -int usb2_fifo_alloc_buffer(struct usb_fifo *f, uint32_t bufsize, +int usb_fifo_wait(struct usb_fifo *fifo); +void usb_fifo_signal(struct usb_fifo *fifo); +int usb_fifo_alloc_buffer(struct usb_fifo *f, uint32_t bufsize, uint16_t nbuf); -void usb2_fifo_free_buffer(struct usb_fifo *f); -int usb2_fifo_attach(struct usb_device *udev, void *priv_sc, +void usb_fifo_free_buffer(struct usb_fifo *f); +int usb_fifo_attach(struct usb_device *udev, void *priv_sc, struct mtx *priv_mtx, struct usb_fifo_methods *pm, struct usb_fifo_sc *f_sc, uint16_t unit, uint16_t subunit, uint8_t iface_index, uid_t uid, gid_t gid, int mode); -void usb2_fifo_detach(struct usb_fifo_sc *f_sc); -uint32_t usb2_fifo_put_bytes_max(struct usb_fifo *fifo); -void usb2_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc, +void usb_fifo_detach(struct usb_fifo_sc *f_sc); +uint32_t usb_fifo_put_bytes_max(struct usb_fifo *fifo); +void usb_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc, usb_frlength_t offset, usb_frlength_t len, uint8_t what); -void usb2_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr, +void usb_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr, usb_size_t len, uint8_t what); -uint8_t usb2_fifo_put_data_buffer(struct usb_fifo *f, void *ptr, usb_size_t len); -void usb2_fifo_put_data_error(struct usb_fifo *fifo); -uint8_t usb2_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc, +uint8_t usb_fifo_put_data_buffer(struct usb_fifo *f, void *ptr, usb_size_t len); +void usb_fifo_put_data_error(struct usb_fifo *fifo); +uint8_t usb_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc, usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, uint8_t what); -uint8_t usb2_fifo_get_data_linear(struct usb_fifo *fifo, void *ptr, +uint8_t usb_fifo_get_data_linear(struct usb_fifo *fifo, void *ptr, usb_size_t len, usb_size_t *actlen, uint8_t what); -uint8_t usb2_fifo_get_data_buffer(struct usb_fifo *f, void **pptr, +uint8_t usb_fifo_get_data_buffer(struct usb_fifo *f, void **pptr, usb_size_t *plen); -void usb2_fifo_get_data_error(struct usb_fifo *fifo); -uint8_t usb2_fifo_opened(struct usb_fifo *fifo); -void usb2_fifo_free(struct usb_fifo *f); -void usb2_fifo_reset(struct usb_fifo *f); -void usb2_fifo_wakeup(struct usb_fifo *f); -struct usb_symlink *usb2_alloc_symlink(const char *target); -void usb2_free_symlink(struct usb_symlink *ps); -int usb2_read_symlink(uint8_t *user_ptr, uint32_t startentry, +void usb_fifo_get_data_error(struct usb_fifo *fifo); +uint8_t usb_fifo_opened(struct usb_fifo *fifo); +void usb_fifo_free(struct usb_fifo *f); +void usb_fifo_reset(struct usb_fifo *f); +void usb_fifo_wakeup(struct usb_fifo *f); +struct usb_symlink *usb_alloc_symlink(const char *target); +void usb_free_symlink(struct usb_symlink *ps); +int usb_read_symlink(uint8_t *user_ptr, uint32_t startentry, uint32_t user_len); -void usb2_fifo_set_close_zlp(struct usb_fifo *, uint8_t); +void usb_fifo_set_close_zlp(struct usb_fifo *, uint8_t); #endif /* _USB2_DEV_H_ */ |