zero.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | zero.c (b9b70170db4d682049040608369e5103f43289d3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * zero.c -- Gadget Zero, for USB development 4 * 5 * Copyright (C) 2003-2008 David Brownell 6 * Copyright (C) 2008 by Nokia Corporation 7 */ 8 9/* 10 * Gadget Zero only needs two bulk endpoints, and is an example of how you 11 * can write a hardware-agnostic gadget driver running inside a USB device. 12 * Some hardware details are visible, but don't affect most of the driver. 13 * | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * zero.c -- Gadget Zero, for USB development 4 * 5 * Copyright (C) 2003-2008 David Brownell 6 * Copyright (C) 2008 by Nokia Corporation 7 */ 8 9/* 10 * Gadget Zero only needs two bulk endpoints, and is an example of how you 11 * can write a hardware-agnostic gadget driver running inside a USB device. 12 * Some hardware details are visible, but don't affect most of the driver. 13 * |
14 * Use it with the Linux host/master side "usbtest" driver to get a basic 15 * functional test of your device-side usb stack, or with "usb-skeleton". | 14 * Use it with the Linux host side "usbtest" driver to get a basic functional 15 * test of your device-side usb stack, or with "usb-skeleton". |
16 * 17 * It supports two similar configurations. One sinks whatever the usb host 18 * writes, and in return sources zeroes. The other loops whatever the host 19 * writes back, so the host can read it. 20 * 21 * Many drivers will only have one configuration, letting them be much 22 * simpler if they also don't support high speed operation (like this 23 * driver does). --- 405 unchanged lines hidden --- | 16 * 17 * It supports two similar configurations. One sinks whatever the usb host 18 * writes, and in return sources zeroes. The other loops whatever the host 19 * writes back, so the host can read it. 20 * 21 * Many drivers will only have one configuration, letting them be much 22 * simpler if they also don't support high speed operation (like this 23 * driver does). --- 405 unchanged lines hidden --- |