libusb20.h (09c817ba36db7c3a4ff5e25ac55816ca181a403d) libusb20.h (4594d907db0042ec024fd46cdbaa4bed9a51cd35)
1/* $FreeBSD$ */
2/*-
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
3 * Copyright (c) 2008-2009 Hans Petter Selasky. All rights reserved.
4 * Copyright (c) 2007-2008 Daniel Drake. All rights reserved.
5 * Copyright (c) 2001 Johannes Erdfelt. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.

--- 209 unchanged lines hidden (view full) ---

221void libusb20_tr_set_priv_sc0(struct libusb20_transfer *xfer, void *sc0);
222void libusb20_tr_set_priv_sc1(struct libusb20_transfer *xfer, void *sc1);
223void libusb20_tr_set_timeout(struct libusb20_transfer *xfer, uint32_t timeout);
224void libusb20_tr_set_total_frames(struct libusb20_transfer *xfer, uint32_t nFrames);
225void libusb20_tr_setup_bulk(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
226void libusb20_tr_setup_control(struct libusb20_transfer *xfer, void *psetup, void *pbuf, uint32_t timeout);
227void libusb20_tr_setup_intr(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
228void libusb20_tr_setup_isoc(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint16_t fr_index);
4 * Copyright (c) 2007-2008 Daniel Drake. All rights reserved.
5 * Copyright (c) 2001 Johannes Erdfelt. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.

--- 209 unchanged lines hidden (view full) ---

221void libusb20_tr_set_priv_sc0(struct libusb20_transfer *xfer, void *sc0);
222void libusb20_tr_set_priv_sc1(struct libusb20_transfer *xfer, void *sc1);
223void libusb20_tr_set_timeout(struct libusb20_transfer *xfer, uint32_t timeout);
224void libusb20_tr_set_total_frames(struct libusb20_transfer *xfer, uint32_t nFrames);
225void libusb20_tr_setup_bulk(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
226void libusb20_tr_setup_control(struct libusb20_transfer *xfer, void *psetup, void *pbuf, uint32_t timeout);
227void libusb20_tr_setup_intr(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t timeout);
228void libusb20_tr_setup_isoc(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint16_t fr_index);
229uint8_t libusb20_tr_bulk_intr_sync(struct libusb20_transfer *xfer, void *pbuf, uint32_t length, uint32_t *pactlen, uint32_t timeout);
229void libusb20_tr_start(struct libusb20_transfer *xfer);
230void libusb20_tr_stop(struct libusb20_transfer *xfer);
231void libusb20_tr_submit(struct libusb20_transfer *xfer);
232void *libusb20_tr_get_priv_sc0(struct libusb20_transfer *xfer);
233void *libusb20_tr_get_priv_sc1(struct libusb20_transfer *xfer);
234
235
236/* USB device operations */

--- 63 unchanged lines hidden ---
230void libusb20_tr_start(struct libusb20_transfer *xfer);
231void libusb20_tr_stop(struct libusb20_transfer *xfer);
232void libusb20_tr_submit(struct libusb20_transfer *xfer);
233void *libusb20_tr_get_priv_sc0(struct libusb20_transfer *xfer);
234void *libusb20_tr_get_priv_sc1(struct libusb20_transfer *xfer);
235
236
237/* USB device operations */

--- 63 unchanged lines hidden ---