亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbdcore.c

?? OMAP1510的USB驅動程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * (C) Copyright 2003 * Gerry Hamel, geh@ti.com, Texas Instruments * * Based on * linux/drivers/usbd/usbd.c.c - USB Device Core Layer * * Copyright (c) 2000, 2001, 2002 Lineo * Copyright (c) 2001 Hewlett Packard * * By: *	Stuart Lynne <sl@lineo.com>, *	Tom Rushworth <tbr@lineo.com>, *	Bruce Balden <balden@lineo.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */#include <malloc.h>#include "usbdcore.h"#define MAX_INTERFACES 2int maxstrings = 20;/* Global variables ************************************************************************** */struct usb_string_descriptor **usb_strings;int usb_devices;extern struct usb_function_driver ep0_driver;int registered_functions;int registered_devices;char *usbd_device_events[] = {	"DEVICE_UNKNOWN",	"DEVICE_INIT",	"DEVICE_CREATE",	"DEVICE_HUB_CONFIGURED",	"DEVICE_RESET",	"DEVICE_ADDRESS_ASSIGNED",	"DEVICE_CONFIGURED",	"DEVICE_SET_INTERFACE",	"DEVICE_SET_FEATURE",	"DEVICE_CLEAR_FEATURE",	"DEVICE_DE_CONFIGURED",	"DEVICE_BUS_INACTIVE",	"DEVICE_BUS_ACTIVITY",	"DEVICE_POWER_INTERRUPTION",	"DEVICE_HUB_RESET",	"DEVICE_DESTROY",	"DEVICE_FUNCTION_PRIVATE",};char *usbd_device_states[] = {	"STATE_INIT",	"STATE_CREATED",	"STATE_ATTACHED",	"STATE_POWERED",	"STATE_DEFAULT",	"STATE_ADDRESSED",	"STATE_CONFIGURED",	"STATE_UNKNOWN",};char *usbd_device_requests[] = {	"GET STATUS",		/* 0 */	"CLEAR FEATURE",	/* 1 */	"RESERVED",		/* 2 */	"SET FEATURE",		/* 3 */	"RESERVED",		/* 4 */	"SET ADDRESS",		/* 5 */	"GET DESCRIPTOR",	/* 6 */	"SET DESCRIPTOR",	/* 7 */	"GET CONFIGURATION",	/* 8 */	"SET CONFIGURATION",	/* 9 */	"GET INTERFACE",	/* 10 */	"SET INTERFACE",	/* 11 */	"SYNC FRAME",		/* 12 */};char *usbd_device_descriptors[] = {	"UNKNOWN",		/* 0 */	"DEVICE",		/* 1 */	"CONFIG",		/* 2 */	"STRING",		/* 3 */	"INTERFACE",		/* 4 */	"ENDPOINT",		/* 5 */	"DEVICE QUALIFIER",	/* 6 */	"OTHER SPEED",		/* 7 */	"INTERFACE POWER",	/* 8 */};char *usbd_device_status[] = {	"USBD_OPENING",	"USBD_OK",	"USBD_SUSPENDED",	"USBD_CLOSING",};/* Descriptor support functions ************************************************************** *//** * usbd_get_string - find and return a string descriptor * @index: string index to return * * Find an indexed string and return a pointer to a it. */struct usb_string_descriptor *usbd_get_string (__u8 index){	if (index >= maxstrings) {		return NULL;	}	return usb_strings[index];}/* Access to device descriptor functions ***************************************************** *//* * * usbd_device_configuration_instance - find a configuration instance for this device * @device: * @configuration: index to configuration, 0 - N-1 * * Get specifed device configuration. Index should be bConfigurationValue-1. */static struct usb_configuration_instance *usbd_device_configuration_instance (struct usb_device_instance *device,		unsigned int port, unsigned int configuration){	/* XXX */	configuration = configuration ? configuration - 1 : 0;	if (configuration >= device->configurations) {		return NULL;	}	return device->configuration_instance_array + configuration;}/* * * usbd_device_interface_instance * @device: * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * * Return the specified interface descriptor for the specified device. */struct usb_interface_instance *usbd_device_interface_instance (struct usb_device_instance *device, int port, int configuration, int interface){	struct usb_configuration_instance *configuration_instance;	if ((configuration_instance = usbd_device_configuration_instance (device, port, configuration)) == NULL) {		return NULL;	}	if (interface >= configuration_instance->interfaces) {		return NULL;	}	return configuration_instance->interface_instance_array + interface;}/* * * usbd_device_alternate_descriptor_list * @device: * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * @alternate: alternate setting * * Return the specified alternate descriptor for the specified device. */struct usb_alternate_instance *usbd_device_alternate_instance (struct usb_device_instance *device, int port, int configuration, int interface, int alternate){	struct usb_interface_instance *interface_instance;	if ((interface_instance = usbd_device_interface_instance (device, port, configuration, interface)) == NULL) {		return NULL;	}	if (alternate >= interface_instance->alternates) {		return NULL;	}	return interface_instance->alternates_instance_array + alternate;}/* * * usbd_device_device_descriptor * @device: which device * @configuration: index to configuration, 0 - N-1 * @port: which port * * Return the specified configuration descriptor for the specified device. */struct usb_device_descriptor *usbd_device_device_descriptor (struct usb_device_instance *device, int port){	return (device->device_descriptor);}/** * usbd_device_configuration_descriptor * @device: which device * @port: which port * @configuration: index to configuration, 0 - N-1 * * Return the specified configuration descriptor for the specified device. */struct usb_configuration_descriptor *usbd_device_configuration_descriptor (struct									   usb_device_instance									   *device, int port, int configuration){	struct usb_configuration_instance *configuration_instance;	if (!(configuration_instance = usbd_device_configuration_instance (device, port, configuration))) {		return NULL;	}	return (configuration_instance->configuration_descriptor);}/** * usbd_device_interface_descriptor * @device: which device * @port: which port * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * @alternate: alternate setting * * Return the specified interface descriptor for the specified device. */struct usb_interface_descriptor *usbd_device_interface_descriptor (struct usb_device_instance								   *device, int port, int configuration, int interface, int alternate){	struct usb_interface_instance *interface_instance;	if (!(interface_instance = usbd_device_interface_instance (device, port, configuration, interface))) {		return NULL;	}	if ((alternate < 0) || (alternate >= interface_instance->alternates)) {		return NULL;	}	return (interface_instance->alternates_instance_array[alternate].interface_descriptor);}/** * usbd_device_endpoint_descriptor_index * @device: which device * @port: which port * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * @alternate: index setting * @index: which index * * Return the specified endpoint descriptor for the specified device. */struct usb_endpoint_descriptor *usbd_device_endpoint_descriptor_index (struct usb_device_instance								       *device, int port, int configuration, int interface, int alternate, int index){	struct usb_alternate_instance *alternate_instance;	if (!(alternate_instance = usbd_device_alternate_instance (device, port, configuration, interface, alternate))) {		return NULL;	}	if (index >= alternate_instance->endpoints) {		return NULL;	}	return *(alternate_instance->endpoints_descriptor_array + index);}/** * usbd_device_endpoint_transfersize * @device: which device * @port: which port * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * @index: which index * * Return the specified endpoint transfer size; */int usbd_device_endpoint_transfersize (struct usb_device_instance *device, int port, int configuration, int interface, int alternate, int index){	struct usb_alternate_instance *alternate_instance;	if (!(alternate_instance = usbd_device_alternate_instance (device, port, configuration, interface, alternate))) {		return 0;	}	if (index >= alternate_instance->endpoints) {		return 0;	}	return *(alternate_instance->endpoint_transfersize_array + index);}/** * usbd_device_endpoint_descriptor * @device: which device * @port: which port * @configuration: index to configuration, 0 - N-1 * @interface: index to interface * @alternate: alternate setting * @endpoint: which endpoint * * Return the specified endpoint descriptor for the specified device. */struct usb_endpoint_descriptor *usbd_device_endpoint_descriptor (struct usb_device_instance *device, int port, int configuration, int interface, int alternate, int endpoint){	struct usb_endpoint_descriptor *endpoint_descriptor;	int i;	for (i = 0; !(endpoint_descriptor = usbd_device_endpoint_descriptor_index (device, port, configuration, interface, alternate, i)); i++) {		if (endpoint_descriptor->bEndpointAddress == endpoint) {			return endpoint_descriptor;		}	}	return NULL;}/** * usbd_endpoint_halted * @device: point to struct usb_device_instance * @endpoint: endpoint to check * * Return non-zero if endpoint is halted. */int usbd_endpoint_halted (struct usb_device_instance *device, int endpoint)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av动漫网站| 欧美挠脚心视频网站| 亚洲国产一区二区视频| 欧美刺激午夜性久久久久久久| 成人av资源网站| 国产一区视频导航| 午夜精品久久久久影视| 亚洲精品一卡二卡| 久久久国产一区二区三区四区小说| 欧美日韩一区二区三区四区| 91一区二区在线观看| 国产精品一区二区免费不卡| 日本欧美一区二区| 亚洲一级二级三级| 亚洲色图.com| 国产精品电影一区二区| 国产婷婷色一区二区三区四区| 日韩小视频在线观看专区| 欧美手机在线视频| 欧美在线看片a免费观看| 99视频超级精品| 北条麻妃国产九九精品视频| 国产成人8x视频一区二区| 国产呦精品一区二区三区网站| 奇米色777欧美一区二区| 午夜精品成人在线| 亚洲午夜av在线| 一区二区日韩av| 一区二区三区四区亚洲| 亚洲人成亚洲人成在线观看图片| 欧美国产激情一区二区三区蜜月| 国产欧美一区二区在线观看| 久久久精品国产99久久精品芒果| 精品国产乱码久久| 久久夜色精品一区| 久久婷婷国产综合国色天香| 亚洲精品在线一区二区| www国产精品av| 久久久噜噜噜久噜久久综合| 久久午夜免费电影| 国产视频视频一区| 国产精品网曝门| 中文欧美字幕免费| 日韩美女视频一区二区| 一区二区三区视频在线观看| 亚洲国产中文字幕在线视频综合| 亚洲一线二线三线视频| 日韩一区精品字幕| 精品亚洲欧美一区| 国产美女视频一区| 成人av手机在线观看| 色悠久久久久综合欧美99| 欧美亚洲丝袜传媒另类| 欧美一区二区三区播放老司机| 91精品国产综合久久久久久久 | 国产成人综合在线| 岛国一区二区三区| 色综合一区二区| 91精品麻豆日日躁夜夜躁| 精品av久久707| 亚洲欧洲日韩女同| 亚洲成av人综合在线观看| 久久精品国产色蜜蜜麻豆| 国产福利一区二区三区视频| 91欧美一区二区| 欧美精品丝袜中出| 久久久一区二区三区| 亚洲色图丝袜美腿| 日本一不卡视频| 国产精品一二三四区| 一本色道久久综合亚洲91| 6080日韩午夜伦伦午夜伦| 久久这里只有精品6| 自拍偷拍欧美精品| 久久精品国产成人一区二区三区 | 久久亚洲综合av| 中文一区一区三区高中清不卡| 亚洲激情一二三区| 激情综合色播五月| voyeur盗摄精品| 在线播放国产精品二区一二区四区| 欧美精品一区二区三区在线播放| 亚洲精品视频免费观看| 久久精品国产秦先生| 色综合久久中文字幕| 欧美一级片在线看| 亚洲精品美腿丝袜| 国内精品免费在线观看| 欧美制服丝袜第一页| 国产日产亚洲精品系列| 天堂午夜影视日韩欧美一区二区| 国产99精品国产| 日韩一卡二卡三卡四卡| 亚洲欧美日韩精品久久久久| 国模无码大尺度一区二区三区| 欧美三级一区二区| 亚洲欧洲精品一区二区三区不卡| 精品一区二区三区视频在线观看| 欧亚一区二区三区| 国产精品麻豆视频| 韩国三级在线一区| 6080亚洲精品一区二区| 亚洲综合在线视频| 成人激情校园春色| 久久新电视剧免费观看| 免费人成精品欧美精品| 欧美日韩国产另类一区| 国产精品成人在线观看| 国产精品99久久久久久久vr| 日韩欧美在线网站| 午夜成人免费视频| 欧日韩精品视频| 亚洲欧美激情插| 不卡视频在线看| 中文字幕精品在线不卡| 国产精品一二一区| 精品sm在线观看| 精久久久久久久久久久| 日韩美女视频在线| 开心九九激情九九欧美日韩精美视频电影 | 91网站黄www| 国产精品国产a级| 成人激情免费网站| 国产精品视频在线看| 国内精品国产成人国产三级粉色 | 成人白浆超碰人人人人| 国产三级精品在线| 国产成人精品亚洲日本在线桃色 | 尤物在线观看一区| 一本色道久久综合亚洲91| 亚洲免费在线观看| 色综合久久综合网欧美综合网| 亚洲欧美色图小说| 色婷婷精品大视频在线蜜桃视频| 亚洲伦理在线免费看| 色噜噜久久综合| 一区二区三区av电影 | 久久噜噜亚洲综合| 国产一区二区在线看| 久久先锋资源网| 高清不卡在线观看av| 中文字幕日韩av资源站| 91免费视频网址| 亚洲综合成人在线| 在线不卡免费av| 狠狠色丁香婷婷综合久久片| 久久久久久久久蜜桃| 成人黄色网址在线观看| 亚洲人成网站色在线观看| 欧美三区免费完整视频在线观看| 日韩精品免费视频人成| 精品国精品国产| 成人免费视频免费观看| 亚洲素人一区二区| 欧美日韩黄色影视| 蜜臀va亚洲va欧美va天堂| 久久久一区二区三区捆绑**| 99久久久免费精品国产一区二区| 亚洲激情校园春色| 欧美一二三区精品| 成人激情免费网站| 亚洲午夜久久久久| 久久亚洲精品小早川怜子| 99久久久国产精品免费蜜臀| 亚洲一区中文在线| 久久综合九色综合欧美98| 91免费在线播放| 九色综合狠狠综合久久| 最新国产精品久久精品| 在线成人av网站| 丁香婷婷综合五月| 亚洲福利一二三区| 久久久久久久综合狠狠综合| 色婷婷亚洲精品| 九九九久久久精品| 亚洲精品久久久蜜桃| 欧美成人欧美edvon| 一本久久a久久精品亚洲| 免费成人你懂的| 亚洲视频香蕉人妖| www精品美女久久久tv| 色国产综合视频| 国产一区二区在线观看免费| 夜夜精品浪潮av一区二区三区| 精品国产精品一区二区夜夜嗨| 色老头久久综合| 国产福利91精品一区二区三区| 一区二区三区视频在线观看| 久久精品人人做人人爽97| 91麻豆精品国产| 91网址在线看| 国产91综合一区在线观看| 日韩黄色免费网站| 亚洲人成在线播放网站岛国| 亚洲精品一区二区三区精华液| 欧美日韩中文字幕精品| 99久久精品情趣| 国产美女一区二区| 理论片日本一区| 天天综合色天天|