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

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

?? usbd.h

?? Linux2.4.20針對三星公司的s3c2440內核基礎上的一些設備驅動代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* * linux/drivers/usbd/usbd.h  * * 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. * *//* * USB Device Support structures * * Descriptors: * * Driver description: *  *   struct usb_device_description  * * Driver instance configuration: * *   struct usb_device_instance  *   struct usb_endpoint_instance; * *   struct usb_function_instance *   struct usb_bus_instance * * Data transfer: * *   struct urb;  * *//* * * Notes... * * 1. The order of loading must be: * *        usb-device                    default driver for endpoint 0 *        usb-function(s)               one or more function drivers *        usb-bus-interface(s)          one or more bus interface drivers * * 2. Loading usb-function modules allows them to register with the  * usb-device layer. This makes their usb configuration descriptors  * available. * * 3. Loading usb-bus-interface modules causes them to register with * the usb-device layer. * * 4. The last action from loading a usb-bus-interface driver is to enable * their upstream port. This in turn will cause the upstream host to * enumerate this device. * * 5. The usb-device layer provides a default configuration for endpoint 0 for * each device.  * * 6. Additional configurations are added to support the configuration * function driver when entering the configured state. * * 7. The usb-device maintains a list of configurations from the loaded * function drivers. It will provide this to the USB HOST as part of the * enumeration process and will add someof them as the active configuration * as per the USB HOST instructions. *  * */#ifndef MODULE#undef __init#define __init#undef __exit#define __exit#undef GET_USE_COUNT#define GET_USE_COUNT(module) 0#undef THIS_MODULE#define THIS_MODULE 0#endif#ifndef MIN#define MIN(a,b) ((a) < (b) ? (a) : (b))#endif#ifndef MAX#define MAX(a,b) ((a) > (b) ? (a) : (b))#endif/* Overview * * USB Descriptors are used to build a configuration database for each USB * Function driver. * * USB Function Drivers register a configuration that may be used by the * default endpoint 0 driver to provide a USB HOST with options. * * USB Bus Interface drivers find and register specific physical bus * interfaces. * * The USB Device layer creates and maintains a device structure for each * physical interface that specifies the bus interface driver, shows possible  * configurations, specifies the default endpoint 0 driver, active * configured function driver and configured endpoints. * * */struct urb;struct usb_endpoint_instance;struct usb_configuration_description;struct usb_function_driver;struct usb_function_instance;struct usb_device_instance;struct usb_bus_driver;struct usb_bus_instance;/* USB definitions */#if 0#define USB_ENDPOINT_CONTROL            0x00#define USB_ENDPOINT_ISOC               0x01#define USB_ENDPOINT_BULK               0x02#define USB_ENDPOINT_INT                0x03#define USB_CONFIG_REMOTEWAKE           0x20#define USB_CONFIG_SELFPOWERED          0x40#define USB_CONFIG_BUSPOWERED           0x80#define USB_REQUEST_GET_STATUS          0x01#define USB_REQUEST_XXXXXXXXXXXXE       0x02#define USB_REQUEST_CLEAR_FEATURE       0x03#define USB_REQUEST_SET_FEATURE         0x04#define USB_REQUEST_SET_ADDRESS         0x05#define USB_REQUEST_GET_DESCRIPTOR      0x06#define USB_REQUEST_SET_DESCRIPTOR      0x07#define USB_REQUEST_GET_CONFIGURATION   0x08#define USB_REQUEST_SET_CONFIGURATION   0x09#define USB_REQUEST_GET_INTERFACE       0x0A#define USB_REQUEST_SET_INTERFACE       0x0B#define USB_DESCRIPTOR_DEVICE           0x01#define USB_DESCRIPTOR_CONFIG           0x02#define USB_DESCRIPTOR_STRING           0x03#define USB_DESCRIPTOR_INTERFACE        0x04#define USB_DESCRIPTOR_ENDPOINT         0x05#endif/* * Device and/or Interface Class codes */#define USB_CLASS_PER_INTERFACE         0	/* for DeviceClass */#define USB_CLASS_AUDIO                 1#define USB_CLASS_COMM                  2#define USB_CLASS_HID                   3#define USB_CLASS_PHYSICAL              5#define USB_CLASS_PRINTER               7#define USB_CLASS_MASS_STORAGE          8#define USB_CLASS_HUB                   9#define USB_CLASS_DATA                  10#define USB_CLASS_APP_SPEC              0xfe#define USB_CLASS_VENDOR_SPEC           0xff/* * USB types */#define USB_TYPE_STANDARD               (0x00 << 5)#define USB_TYPE_CLASS                  (0x01 << 5)#define USB_TYPE_VENDOR                 (0x02 << 5)#define USB_TYPE_RESERVED               (0x03 << 5)/* * USB recipients */#define USB_RECIP_DEVICE                0x00#define USB_RECIP_INTERFACE             0x01#define USB_RECIP_ENDPOINT              0x02#define USB_RECIP_OTHER                 0x03/* * USB directions */#define USB_DIR_OUT                     0#define USB_DIR_IN                      0x80/* * Descriptor types */#define USB_DT_DEVICE                   0x01#define USB_DT_CONFIG                   0x02#define USB_DT_STRING                   0x03#define USB_DT_INTERFACE                0x04#define USB_DT_ENDPOINT                 0x05#define USB_DT_HID                      (USB_TYPE_CLASS | 0x01)#define USB_DT_REPORT                   (USB_TYPE_CLASS | 0x02)#define USB_DT_PHYSICAL                 (USB_TYPE_CLASS | 0x03)#define USB_DT_HUB                      (USB_TYPE_CLASS | 0x09)/* * Descriptor sizes per descriptor type */#define USB_DT_DEVICE_SIZE              18#define USB_DT_CONFIG_SIZE              9#define USB_DT_INTERFACE_SIZE           9#define USB_DT_ENDPOINT_SIZE            7#define USB_DT_ENDPOINT_AUDIO_SIZE      9	/* Audio extension */#define USB_DT_HUB_NONVAR_SIZE          7#define USB_DT_HID_SIZE                 9/* * Endpoints */#define USB_ENDPOINT_NUMBER_MASK        0x0f	/* in bEndpointAddress */#define USB_ENDPOINT_DIR_MASK           0x80#define USB_ENDPOINT_XFERTYPE_MASK      0x03	/* in bmAttributes */#define USB_ENDPOINT_XFER_CONTROL       0#define USB_ENDPOINT_XFER_ISOC          1#define USB_ENDPOINT_XFER_BULK          2#define USB_ENDPOINT_XFER_INT           3/* * USB Packet IDs (PIDs) */#define USB_PID_UNDEF_0                        0xf0#define USB_PID_OUT                            0xe1#define USB_PID_ACK                            0xd2#define USB_PID_DATA0                          0xc3#define USB_PID_PING                           0xb4	/* USB 2.0 */#define USB_PID_SOF                            0xa5#define USB_PID_NYET                           0x96	/* USB 2.0 */#define USB_PID_DATA2                          0x87	/* USB 2.0 */#define USB_PID_SPLIT                          0x78	/* USB 2.0 */#define USB_PID_IN                             0x69#define USB_PID_NAK                            0x5a#define USB_PID_DATA1                          0x4b#define USB_PID_PREAMBLE                       0x3c	/* Token mode */#define USB_PID_ERR                            0x3c	/* USB 2.0: handshake mode */#define USB_PID_SETUP                          0x2d#define USB_PID_STALL                          0x1e#define USB_PID_MDATA                          0x0f	/* USB 2.0 *//* * Standard requests */#define USB_REQ_GET_STATUS              0x00#define USB_REQ_CLEAR_FEATURE           0x01#define USB_REQ_SET_FEATURE             0x03#define USB_REQ_SET_ADDRESS             0x05#define USB_REQ_GET_DESCRIPTOR          0x06#define USB_REQ_SET_DESCRIPTOR          0x07#define USB_REQ_GET_CONFIGURATION       0x08#define USB_REQ_SET_CONFIGURATION       0x09#define USB_REQ_GET_INTERFACE           0x0A#define USB_REQ_SET_INTERFACE           0x0B#define USB_REQ_SYNCH_FRAME             0x0C#define USBD_DEVICE_REQUESTS(x) (((unsigned int)x <= USB_REQ_SYNCH_FRAME) ? usbd_device_requests[x] : "UNKNOWN")/* * HID requests */#define USB_REQ_GET_REPORT              0x01#define USB_REQ_GET_IDLE                0x02#define USB_REQ_GET_PROTOCOL            0x03#define USB_REQ_SET_REPORT              0x09#define USB_REQ_SET_IDLE                0x0A#define USB_REQ_SET_PROTOCOL            0x0B/* * USB Spec Release number */#define USB_BCD_VERSION                 0x0200/* * Device Requests      (c.f Table 9-2) */#define USB_REQ_DIRECTION_MASK          0x80#define USB_REQ_TYPE_MASK               0x60#define USB_REQ_RECIPIENT_MASK          0x1f#define USB_REQ_DEVICE2HOST             0x80#define USB_REQ_HOST2DEVICE             0x00#define USB_REQ_TYPE_STANDARD           0x00#define USB_REQ_TYPE_CLASS              0x20#define USB_REQ_TYPE_VENDOR             0x40#define USB_REQ_RECIPIENT_DEVICE        0x00#define USB_REQ_RECIPIENT_INTERFACE     0x01#define USB_REQ_RECIPIENT_ENDPOINT      0x02#define USB_REQ_RECIPIENT_OTHER         0x03/* * get status bits */#define USB_STATUS_SELFPOWERED          0x01#define USB_STATUS_REMOTEWAKEUP         0x02#define USB_STATUS_HALT                 0x01/*  * descriptor types */#define USB_DESCRIPTOR_TYPE_DEVICE                      0x01#define USB_DESCRIPTOR_TYPE_CONFIGURATION               0x02#define USB_DESCRIPTOR_TYPE_STRING                      0x03#define USB_DESCRIPTOR_TYPE_INTERFACE                   0x04#define USB_DESCRIPTOR_TYPE_ENDPOINT                    0x05#define USB_DESCRIPTOR_TYPE_DEVICE_QUALIFIER            0x06#define USB_DESCRIPTOR_TYPE_OTHER_SPEED_CONFIGURATION   0x07#define USB_DESCRIPTOR_TYPE_INTERFACE_POWER             0x08#define USB_DESCRIPTOR_TYPE_HID                         0x21#define USB_DESCRIPTOR_TYPE_REPORT                      0x22#define USBD_DEVICE_DESCRIPTORS(x) (((unsigned int)x <= USB_DESCRIPTOR_TYPE_INTERFACE_POWER) ? \                usbd_device_descriptors[x] : "UNKNOWN")/* * standard feature selectors */#define	USB_ENDPOINT_HALT		0x00#define USB_DEVICE_REMOTE_WAKEUP	0x01#define	USB_TEST_MODE			0x02/* USB Requests * */struct usb_device_request {	__u8 bmRequestType;	__u8 bRequest;	__u16 wValue;	__u16 wIndex;	__u16 wLength;} __attribute__ ((packed));/* USB Status * */typedef enum urb_send_status {	SEND_IN_PROGRESS,	SEND_FINISHED_OK,	SEND_FINISHED_ERROR,	RECV_READY,	RECV_OK,	RECV_ERROR} urb_send_status_t;/* * Structure member address manipulation macros. * These are used by client code (code using the urb_link routines), since * the urb_link structure is embedded in the client data structures. * * Note: a macro offsetof equivalent to member_offset is defined in stddef.h *       but this is kept here for the sake of portability. * * p2surround returns a pointer to the surrounding structure given * type of the surrounding structure, the name memb of the structure * member pointed at by ptr.  For example, if you have: *  *      struct foo { *          int x; *          float y; *          char z; *      } thingy; *   *      char *cp = &thingy.z; * * then * *      &thingy == p2surround(struct foo, z, cp) * * Clear? */#define _cv_(ptr)                 ((char*)(void*)(ptr))#define member_offset(type,memb)  (_cv_(&(((type*)0)->memb))-(char*)0)#define p2surround(type,memb,ptr) ((type*)(void*)(_cv_(ptr)-member_offset(type,memb)))typedef struct urb_link {	struct urb_link *next;	struct urb_link *prev;} urb_link;struct urb;/*  * Device Events  * * These are defined in the USB Spec (c.f USB Spec 2.0 Figure 9-1). * * There are additional events defined to handle some extra actions we need * to have handled. * */typedef enum usb_device_event {	DEVICE_UNKNOWN,		// bi - unknown event	DEVICE_INIT,		// bi  - initialize	DEVICE_CREATE,		// bi  - 	DEVICE_HUB_CONFIGURED,	// bi  - bus has been plugged int	DEVICE_RESET,		// bi  - hub has powered our port	DEVICE_ADDRESS_ASSIGNED,	// ep0 - set address setup received	DEVICE_CONFIGURED,	// ep0 - set configure setup received	DEVICE_SET_INTERFACE,	// ep0 - set interface setup received	DEVICE_SET_FEATURE,	// ep0 - set feature setup received	DEVICE_CLEAR_FEATURE,	// ep0 - clear feature setup received	DEVICE_DE_CONFIGURED,	// ep0 - set configure setup received for ??	DEVICE_BUS_INACTIVE,	// bi  - bus in inactive (no SOF packets)	DEVICE_BUS_ACTIVITY,	// bi  - bus is active again	DEVICE_POWER_INTERRUPTION,	// bi  - hub has depowered our port	DEVICE_HUB_RESET,	// bi  - bus has been unplugged	DEVICE_DESTROY,		// bi  - device instance should be destroyed	DEVICE_FUNCTION_PRIVATE,	// function - private} usb_device_event_t;#define USBD_DEVICE_EVENTS(x) (((unsigned int)x <= DEVICE_FUNCTION_PRIVATE) ? \                usbd_device_events[x] : "UNKNOWN")/* Endpoint configuration * * Per endpoint configuration data. Used to track which function driver owns * an endpoint. * */struct usb_endpoint_instance {	int endpoint_address;	// logical endpoint address 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品视频www在线观看 | 9i在线看片成人免费| 成人午夜激情视频| 91精品欧美综合在线观看最新| 亚洲国产精品国自产拍av| 亚洲无人区一区| av资源站一区| 久久久久久久一区| 另类专区欧美蜜桃臀第一页| 欧美在线观看视频在线| 中文字幕中文乱码欧美一区二区 | 成人av网站大全| 欧美电影免费观看高清完整版在| 亚洲精品国产a| 不卡的av在线播放| 国产婷婷色一区二区三区四区| 日韩av成人高清| 精品视频一区二区三区免费| 亚洲色图在线视频| 成人免费观看男女羞羞视频| 久久久噜噜噜久久中文字幕色伊伊 | 在线精品亚洲一区二区不卡| 国产精品乱人伦一区二区| 激情欧美一区二区| 精品999久久久| 久久国产精品色婷婷| 日韩精品一区二区三区中文精品| 天堂久久一区二区三区| 欧美日韩小视频| 亚洲v中文字幕| 欧美精彩视频一区二区三区| 国产另类ts人妖一区二区| 精品久久久久久无| 久久精品二区亚洲w码| 日韩一区二区三区免费看| 天堂久久久久va久久久久| 欧美另类videos死尸| 同产精品九九九| 9191精品国产综合久久久久久| 天天综合色天天| 日韩欧美国产综合在线一区二区三区| 欧美aⅴ一区二区三区视频| 91精品国产福利在线观看| 免费高清不卡av| 国产亚洲欧美日韩俺去了| 国产成人精品www牛牛影视| 久久久国产精品麻豆| 丰满岳乱妇一区二区三区| 国产精品久99| 欧美色图一区二区三区| 美国欧美日韩国产在线播放| 久久久精品2019中文字幕之3| 国产不卡视频在线播放| 亚洲码国产岛国毛片在线| 欧美区在线观看| 久久9热精品视频| 国产精品狼人久久影院观看方式| 色系网站成人免费| 美女在线一区二区| 国产日产欧美一区二区三区| 91在线云播放| 秋霞电影网一区二区| 日本一区二区三区视频视频| 在线观看亚洲一区| 美女精品自拍一二三四| ...av二区三区久久精品| 欧美在线视频全部完| 国产精品一区久久久久| 亚洲一区二区欧美日韩| 精品成人a区在线观看| 97se亚洲国产综合自在线不卡| 三级欧美在线一区| 国产精品丝袜在线| 日韩午夜在线观看视频| 成人aa视频在线观看| 日韩精品一卡二卡三卡四卡无卡| 国产欧美一区二区在线| 欧美日韩国产系列| 成人免费av资源| 日本中文字幕一区二区视频 | 午夜精品一区二区三区电影天堂| 欧美精品一区二区三区一线天视频| 91在线视频在线| 韩国视频一区二区| 亚洲成av人片www| 综合久久一区二区三区| 久久精品视频免费| 91精品国产综合久久精品图片| jlzzjlzz亚洲女人18| 九一九一国产精品| 亚洲成av人影院| 亚洲欧美日韩人成在线播放| 久久先锋影音av鲁色资源网| 91麻豆精品国产自产在线| 91视频一区二区三区| 成人一区二区三区视频| 国产精品一级片| 久久精品国产亚洲高清剧情介绍| 亚洲一区影音先锋| 亚洲天堂网中文字| 亚洲国产精品二十页| 久久香蕉国产线看观看99| 精品免费一区二区三区| 日韩一区二区精品在线观看| 欧美区在线观看| 欧美精三区欧美精三区| 欧美亚洲国产bt| 色菇凉天天综合网| 色老综合老女人久久久| 97久久精品人人做人人爽50路 | 精品一区二区三区蜜桃| 日韩经典中文字幕一区| 天天av天天翘天天综合网色鬼国产| 综合欧美亚洲日本| 亚洲三级在线观看| 日韩美女久久久| 亚洲精品乱码久久久久久久久| 亚洲美女视频一区| 一区二区三区国产精华| 亚洲一区日韩精品中文字幕| 亚洲一区二区三区四区在线| 亚洲影视在线播放| 亚洲国产成人91porn| 午夜久久久久久| 久久99最新地址| 国产精品18久久久久| 丁香另类激情小说| 色噜噜久久综合| 欧美亚洲国产一区二区三区va | 亚洲精品免费在线| 亚洲一区二区精品3399| 男女激情视频一区| 国产在线国偷精品产拍免费yy| 国产91丝袜在线18| 91亚洲国产成人精品一区二三| 色哟哟亚洲精品| 日韩亚洲欧美一区二区三区| 2021久久国产精品不只是精品| 国产人成亚洲第一网站在线播放| 亚洲三级在线免费观看| 丝袜美腿高跟呻吟高潮一区| 精品一区二区三区影院在线午夜| 国产成人高清在线| 欧美午夜精品免费| 精品国产91乱码一区二区三区| 国产精品久久99| 日韩国产一二三区| 成人免费毛片高清视频| 欧美中文字幕一区二区三区亚洲| 日韩欧美国产电影| 中文字幕va一区二区三区| 亚洲电影视频在线| 国产a久久麻豆| 欧美在线三级电影| 国产午夜精品一区二区三区视频| 一区二区三区精品在线观看| 国产毛片精品视频| 欧美在线小视频| 中文一区二区在线观看| 视频一区二区不卡| 99久久精品免费看国产 | 国产精品中文字幕一区二区三区| 91首页免费视频| 精品久久国产字幕高潮| 亚洲免费在线观看视频| 国模冰冰炮一区二区| 欧美三级欧美一级| 国产精品大尺度| 国产麻豆视频精品| 91精品国产综合久久精品性色 | 在线观看中文字幕不卡| 久久久久久免费| 日本女人一区二区三区| 91黄色免费看| 中文字幕五月欧美| 国产福利视频一区二区三区| 91麻豆精品91久久久久久清纯| 日韩理论在线观看| 国产精品99久久久久久似苏梦涵| 91精品欧美综合在线观看最新| 一区二区三区不卡视频| 99在线精品免费| 国产视频视频一区| 毛片基地黄久久久久久天堂| 欧美亚洲动漫精品| 亚洲欧美日韩一区二区三区在线观看| 国产精品亚洲一区二区三区妖精| 日韩一区二区麻豆国产| 午夜成人免费视频| 欧美日产在线观看| 午夜伦理一区二区| 欧美人狂配大交3d怪物一区| 亚洲综合一二区| 在线精品视频免费播放| 亚洲欧美另类图片小说| 色视频一区二区| 一级精品视频在线观看宜春院| 91女神在线视频| 亚洲日韩欧美一区二区在线| 99久久久久久99|