linux_usb.c (290135) | linux_usb.c (298829) |
---|---|
1/* $FreeBSD: head/sys/compat/linuxkpi/common/src/linux_usb.c 290135 2015-10-29 08:28:39Z hselasky $ */ | 1/* $FreeBSD: head/sys/compat/linuxkpi/common/src/linux_usb.c 298829 2016-04-30 00:53:10Z pfg $ */ |
2/*- 3 * Copyright (c) 2007 Luigi Rizzo - Universita` di Pisa. All rights reserved. 4 * Copyright (c) 2007 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 634 unchanged lines hidden (view full) --- 644 * control, bulk or interrupt endpoint, specified by "uhe". A control 645 * transfer means that you transfer an 8-byte header first followed by 646 * a data-phase as indicated by the 8-byte header. The "timeout" is 647 * given in milliseconds. 648 * 649 * Return values: 650 * 0: Success 651 * < 0: Failure | 2/*- 3 * Copyright (c) 2007 Luigi Rizzo - Universita` di Pisa. All rights reserved. 4 * Copyright (c) 2007 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 634 unchanged lines hidden (view full) --- 644 * control, bulk or interrupt endpoint, specified by "uhe". A control 645 * transfer means that you transfer an 8-byte header first followed by 646 * a data-phase as indicated by the 8-byte header. The "timeout" is 647 * given in milliseconds. 648 * 649 * Return values: 650 * 0: Success 651 * < 0: Failure |
652 * > 0: Acutal length | 652 * > 0: Actual length |
653 *------------------------------------------------------------------------*/ 654int 655usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe, 656 uint8_t request, uint8_t requesttype, 657 uint16_t value, uint16_t index, void *data, 658 uint16_t size, usb_timeout_t timeout) 659{ 660 struct usb_device_request req; --- 1086 unchanged lines hidden --- | 653 *------------------------------------------------------------------------*/ 654int 655usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe, 656 uint8_t request, uint8_t requesttype, 657 uint16_t value, uint16_t index, void *data, 658 uint16_t size, usb_timeout_t timeout) 659{ 660 struct usb_device_request req; --- 1086 unchanged lines hidden --- |