usb_dev.h (193045) | usb_dev.h (193074) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_dev.h 193045 2009-05-29 18:46:57Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_dev.h 193074 2009-05-30 00:22:57Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 162 unchanged lines hidden (view full) --- 172 struct mtx *priv_mtx, struct usb_fifo_methods *pm, 173 struct usb_fifo_sc *f_sc, uint16_t unit, uint16_t subunit, 174 uint8_t iface_index, uid_t uid, gid_t gid, int mode); 175void usb2_fifo_detach(struct usb_fifo_sc *f_sc); 176uint32_t usb2_fifo_put_bytes_max(struct usb_fifo *fifo); 177void usb2_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc, 178 usb_frlength_t offset, usb_frlength_t len, uint8_t what); 179void usb2_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr, | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 162 unchanged lines hidden (view full) --- 172 struct mtx *priv_mtx, struct usb_fifo_methods *pm, 173 struct usb_fifo_sc *f_sc, uint16_t unit, uint16_t subunit, 174 uint8_t iface_index, uid_t uid, gid_t gid, int mode); 175void usb2_fifo_detach(struct usb_fifo_sc *f_sc); 176uint32_t usb2_fifo_put_bytes_max(struct usb_fifo *fifo); 177void usb2_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc, 178 usb_frlength_t offset, usb_frlength_t len, uint8_t what); 179void usb2_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr, |
180 size_t len, uint8_t what); 181uint8_t usb2_fifo_put_data_buffer(struct usb_fifo *f, void *ptr, size_t len); | 180 usb_size_t len, uint8_t what); 181uint8_t usb2_fifo_put_data_buffer(struct usb_fifo *f, void *ptr, usb_size_t len); |
182void usb2_fifo_put_data_error(struct usb_fifo *fifo); 183uint8_t usb2_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc, 184 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, 185 uint8_t what); 186uint8_t usb2_fifo_get_data_linear(struct usb_fifo *fifo, void *ptr, | 182void usb2_fifo_put_data_error(struct usb_fifo *fifo); 183uint8_t usb2_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc, 184 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, 185 uint8_t what); 186uint8_t usb2_fifo_get_data_linear(struct usb_fifo *fifo, void *ptr, |
187 size_t len, size_t *actlen, uint8_t what); | 187 usb_size_t len, usb_size_t *actlen, uint8_t what); |
188uint8_t usb2_fifo_get_data_buffer(struct usb_fifo *f, void **pptr, | 188uint8_t usb2_fifo_get_data_buffer(struct usb_fifo *f, void **pptr, |
189 size_t *plen); | 189 usb_size_t *plen); |
190void usb2_fifo_get_data_error(struct usb_fifo *fifo); 191uint8_t usb2_fifo_opened(struct usb_fifo *fifo); 192void usb2_fifo_free(struct usb_fifo *f); 193void usb2_fifo_reset(struct usb_fifo *f); 194void usb2_fifo_wakeup(struct usb_fifo *f); 195struct usb_symlink *usb2_alloc_symlink(const char *target); 196void usb2_free_symlink(struct usb_symlink *ps); 197int usb2_read_symlink(uint8_t *user_ptr, uint32_t startentry, 198 uint32_t user_len); 199void usb2_fifo_set_close_zlp(struct usb_fifo *, uint8_t); 200 201#endif /* _USB2_DEV_H_ */ | 190void usb2_fifo_get_data_error(struct usb_fifo *fifo); 191uint8_t usb2_fifo_opened(struct usb_fifo *fifo); 192void usb2_fifo_free(struct usb_fifo *f); 193void usb2_fifo_reset(struct usb_fifo *f); 194void usb2_fifo_wakeup(struct usb_fifo *f); 195struct usb_symlink *usb2_alloc_symlink(const char *target); 196void usb2_free_symlink(struct usb_symlink *ps); 197int usb2_read_symlink(uint8_t *user_ptr, uint32_t startentry, 198 uint32_t user_len); 199void usb2_fifo_set_close_zlp(struct usb_fifo *, uint8_t); 200 201#endif /* _USB2_DEV_H_ */ |