Deleted Added
full compact
libusb20_int.h (213852) libusb20_int.h (219100)
1/* $FreeBSD: head/lib/libusb/libusb20_int.h 213852 2010-10-14 20:38:18Z hselasky $ */
1/* $FreeBSD: head/lib/libusb/libusb20_int.h 219100 2011-02-28 17:23:15Z hselasky $ */
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.

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

105typedef int (libusb20_reset_device_t)(struct libusb20_device *pdev);
106typedef int (libusb20_set_power_mode_t)(struct libusb20_device *pdev, uint8_t power_mode);
107typedef int (libusb20_get_power_mode_t)(struct libusb20_device *pdev, uint8_t *power_mode);
108typedef int (libusb20_set_alt_index_t)(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index);
109typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index);
110typedef int (libusb20_check_connected_t)(struct libusb20_device *pdev);
111
112/* USB transfer specific */
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.

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

105typedef int (libusb20_reset_device_t)(struct libusb20_device *pdev);
106typedef int (libusb20_set_power_mode_t)(struct libusb20_device *pdev, uint8_t power_mode);
107typedef int (libusb20_get_power_mode_t)(struct libusb20_device *pdev, uint8_t *power_mode);
108typedef int (libusb20_set_alt_index_t)(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index);
109typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index);
110typedef int (libusb20_check_connected_t)(struct libusb20_device *pdev);
111
112/* USB transfer specific */
113typedef int (libusb20_tr_open_t)(struct libusb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no);
113typedef int (libusb20_tr_open_t)(struct libusb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no, uint8_t pre_scale);
114typedef int (libusb20_tr_close_t)(struct libusb20_transfer *xfer);
115typedef int (libusb20_tr_clear_stall_sync_t)(struct libusb20_transfer *xfer);
116typedef void (libusb20_tr_submit_t)(struct libusb20_transfer *xfer);
117typedef void (libusb20_tr_cancel_async_t)(struct libusb20_transfer *xfer);
118
119#define LIBUSB20_DEVICE(m,n) \
120 m(n, detach_kernel_driver) \
121 m(n, do_request_sync) \

--- 115 unchanged lines hidden ---
114typedef int (libusb20_tr_close_t)(struct libusb20_transfer *xfer);
115typedef int (libusb20_tr_clear_stall_sync_t)(struct libusb20_transfer *xfer);
116typedef void (libusb20_tr_submit_t)(struct libusb20_transfer *xfer);
117typedef void (libusb20_tr_cancel_async_t)(struct libusb20_transfer *xfer);
118
119#define LIBUSB20_DEVICE(m,n) \
120 m(n, detach_kernel_driver) \
121 m(n, do_request_sync) \

--- 115 unchanged lines hidden ---