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

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

?? irda-usb.h

?? 這個linux源代碼是很全面的~基本完整了~使用c編譯的~由于時間問題我沒有親自測試~但就算用來做參考資料也是非常好的
?? H
字號:
/***************************************************************************** * * Filename:      irda-usb.h * Version:       0.9b * Description:   IrDA-USB Driver * Status:        Experimental  * Author:        Dag Brattli <dag@brattli.net> * *	Copyright (C) 2001, Roman Weissgaerber <weissg@vienna.at> *      Copyright (C) 2000, Dag Brattli <dag@brattli.net> *      Copyright (C) 2001, Jean Tourrilhes <jt@hpl.hp.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 <linux/time.h>#include <net/irda/irda.h>#include <net/irda/irlap.h>#include <net/irda/irda_device.h>#define RX_COPY_THRESHOLD 200#define IRDA_USB_MAX_MTU 2051#define IRDA_USB_SPEED_MTU 64		/* Weird, but work like this *//* Maximum number of active URB on the Rx path * This is the amount of buffers the we keep between the USB harware and the * IrDA stack. * * Note : the network layer does also queue the packets between us and the * IrDA stack, and is actually pretty fast and efficient in doing that. * Therefore, we don't need to have a large number of URBs, and we can * perfectly live happy with only one. We certainly don't need to keep the * full IrTTP window around here... * I repeat for those who have trouble to understand : 1 URB is plenty * good enough to handle back-to-back (brickwalled) frames. I tried it, * it works (it's the hardware that has trouble doing it). * * Having 2 URBs would allow the USB stack to process one URB while we take * care of the other and then swap the URBs... * On the other hand, increasing the number of URB will have penalities * in term of latency and will interact with the link management in IrLAP... * Jean II */#define IU_MAX_ACTIVE_RX_URBS	1	/* Don't touch !!! *//* When a Rx URB is passed back to us, we can't reuse it immediately, * because it may still be referenced by the USB layer. Therefore we * need to keep one extra URB in the Rx path. * Jean II */#define IU_MAX_RX_URBS	(IU_MAX_ACTIVE_RX_URBS + 1)/* Various ugly stuff to try to workaround generic problems *//* Send speed command in case of timeout, just for trying to get things sane */#define IU_BUG_KICK_TIMEOUT/* Show the USB class descriptor */#undef IU_DUMP_CLASS_DESC /* Assume a minimum round trip latency for USB transfer (in us)... * USB transfer are done in the next USB slot if there is no traffic * (1/19 msec) and is done at 12 Mb/s : * Waiting for slot + tx = (53us + 16us) * 2 = 137us minimum. * Rx notification will only be done at the end of the USB frame period : * OHCI : frame period = 1ms * UHCI : frame period = 1ms, but notification can take 2 or 3 ms :-( * EHCI : frame period = 125us */#define IU_USB_MIN_RTT		500	/* This should be safe in most cases *//* Inbound header */#define MEDIA_BUSY    0x80#define SPEED_2400    0x01#define SPEED_9600    0x02#define SPEED_19200   0x03#define SPEED_38400   0x04#define SPEED_57600   0x05#define SPEED_115200  0x06#define SPEED_576000  0x07#define SPEED_1152000 0x08#define SPEED_4000000 0x09/* Basic capabilities */#define IUC_DEFAULT	0x00	/* Basic device compliant with 1.0 spec *//* Main bugs */#define IUC_SPEED_BUG	0x01	/* Device doesn't set speed after the frame */#define IUC_NO_WINDOW	0x02	/* Device doesn't behave with big Rx window */#define IUC_NO_TURN	0x04	/* Device doesn't do turnaround by itself *//* Not currently used */#define IUC_SIR_ONLY	0x08	/* Device doesn't behave at FIR speeds */#define IUC_SMALL_PKT	0x10	/* Device doesn't behave with big Rx packets */#define IUC_MAX_WINDOW	0x20	/* Device underestimate the Rx window */#define IUC_MAX_XBOFS	0x40	/* Device need more xbofs than advertised *//* USB class definitions */#define USB_IRDA_HEADER   0x01#define USB_CLASS_IRDA    0x02 /* USB_CLASS_APP_SPEC subclass */ #define USB_DT_IRDA       0x21struct irda_class_desc {	__u8  bLength;	__u8  bDescriptorType;	__u16 bcdSpecRevision;	__u8  bmDataSize;	__u8  bmWindowSize;	__u8  bmMinTurnaroundTime;	__u16 wBaudRate;	__u8  bmAdditionalBOFs;	__u8  bIrdaRateSniff;	__u8  bMaxUnicastList;} __attribute__ ((packed));/* class specific interface request to get the IrDA-USB class descriptor * (6.2.5, USB-IrDA class spec 1.0) */#define IU_REQ_GET_CLASS_DESC	0x06struct irda_usb_cb {	struct irda_class_desc *irda_desc;	struct usb_device *usbdev;	/* init: probe_irda */	unsigned int ifnum;		/* Interface number of the USB dev. */	int netopen;			/* Device is active for network */	int present;			/* Device is present on the bus */	__u32 capability;		/* Capability of the hardware */	__u8  bulk_in_ep;		/* Rx Endpoint assignments */	__u8  bulk_out_ep;		/* Tx Endpoint assignments */	__u16 bulk_out_mtu;		/* Max Tx packet size in bytes */	__u8  bulk_int_ep;		/* Interrupt Endpoint assignments */	wait_queue_head_t wait_q;	/* for timeouts */	struct urb rx_urb[IU_MAX_RX_URBS];	/* URBs used to receive data frames */	struct urb *idle_rx_urb;	/* Pointer to idle URB in Rx path */	struct urb tx_urb;		/* URB used to send data frames */	struct urb speed_urb;		/* URB used to send speed commands */		struct net_device *netdev;	/* Yes! we are some kind of netdev. */	struct net_device_stats stats;	struct irlap_cb   *irlap;	/* The link layer we are binded to */	struct qos_info qos;	hashbin_t *tx_list;		/* Queued transmit skb's */	char *speed_buff;		/* Buffer for speed changes */	struct timeval stamp;	struct timeval now;	spinlock_t lock;		/* For serializing operations */	__u16 xbofs;			/* Current xbofs setting */	__s16 new_xbofs;		/* xbofs we need to set */	__u32 speed;			/* Current speed */	__s32 new_speed;		/* speed we need to set */	__u32 flags;			/* Interface flags */};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲v中文字幕| 久久久精品免费网站| 欧美肥大bbwbbw高潮| 日韩一区二区三区观看| 久久伊人蜜桃av一区二区| 亚洲国产精品ⅴa在线观看| 亚洲免费观看高清完整| 亚洲成人777| 国产综合色产在线精品| 不卡的av中国片| 4hu四虎永久在线影院成人| 久久婷婷综合激情| 一区二区三区欧美在线观看| 日韩va欧美va亚洲va久久| 国产精品一区二区在线观看不卡 | 成人一区二区视频| 99久久精品免费看| 日韩视频一区在线观看| 久久久久久久久久久久久女国产乱| 国产精品久久久久久福利一牛影视| 亚洲综合丁香婷婷六月香| 麻豆精品视频在线观看视频| 99在线精品一区二区三区| 69堂精品视频| 中文字幕一区二区三区视频| 亚洲大片精品永久免费| 粉嫩av一区二区三区| 91.xcao| 国产精品国产三级国产有无不卡 | 欧美视频完全免费看| 欧美成人aa大片| 一区二区成人在线视频| 激情综合一区二区三区| 91高清视频在线| 国产日韩视频一区二区三区| 午夜日韩在线电影| eeuss影院一区二区三区| 欧美一区二区三区日韩视频| 136国产福利精品导航| 男女男精品网站| 日本高清视频一区二区| 久久精品一级爱片| 日本在线不卡视频| 91久久奴性调教| 国产精品精品国产色婷婷| 久久狠狠亚洲综合| 欧美猛男男办公室激情| 亚洲欧美日韩在线| 国产电影一区二区三区| 日韩精品最新网址| 亚洲成人福利片| 日本久久一区二区| 国产精品麻豆欧美日韩ww| 蜜桃av一区二区三区| 欧美日韩精品一区二区三区| 1区2区3区国产精品| 国产精品系列在线播放| 日韩免费观看高清完整版| 亚洲韩国精品一区| 一本色道亚洲精品aⅴ| 中文字幕精品一区二区三区精品| 久久99国产精品免费网站| 欧美一区二区三区四区高清| 亚洲成人av福利| 欧美日韩日本视频| 亚洲五月六月丁香激情| 色悠悠亚洲一区二区| 亚洲欧洲精品天堂一级| 成人sese在线| 亚洲国产精华液网站w| 国产剧情一区在线| 精品国产91九色蝌蚪| 久久av中文字幕片| 欧美变态tickling挠脚心| 免费观看在线综合| 精品日产卡一卡二卡麻豆| 免费成人美女在线观看.| 欧美人与禽zozo性伦| 亚洲已满18点击进入久久| 色天使久久综合网天天| 一区二区三区中文字幕电影| 色噜噜久久综合| 亚洲国产综合人成综合网站| 欧美日本在线播放| 五月婷婷综合激情| 欧美精品一级二级| 蜜臀av性久久久久蜜臀aⅴ | 国产毛片一区二区| 久久久777精品电影网影网| 福利一区二区在线观看| 国产精品久久久久久亚洲毛片| av不卡在线观看| 亚洲精品成人精品456| 色婷婷av一区二区三区gif| 亚洲国产另类av| 欧美一区二区视频在线观看 | 日韩亚洲欧美一区二区三区| 久久国产精品99久久久久久老狼| 日韩欧美视频一区| 国产一区二区h| 中文字幕一区二区三区在线不卡 | 国产日韩欧美在线一区| 成人午夜视频免费看| 亚洲色大成网站www久久九九| 色婷婷av一区二区三区大白胸| 亚洲电影你懂得| 日韩精品一区二区三区视频| 国产91露脸合集magnet | gogo大胆日本视频一区| 亚洲在线视频免费观看| 日韩一区二区视频在线观看| 国内久久婷婷综合| 亚洲人妖av一区二区| 91精品国产麻豆| 成人av在线电影| 日本欧美一区二区| 欧美激情一区在线观看| 91福利视频网站| 国内精品免费**视频| 亚洲日本中文字幕区| 日韩一区二区三区免费看| av高清久久久| 蜜臀av性久久久久av蜜臀妖精| 中文字幕免费一区| 欧美四级电影在线观看| 国产一区二区女| 亚洲国产日日夜夜| 久久久亚洲高清| 欧美性大战久久久| 国产精品99久久久久| 亚洲激情综合网| 精品国产乱码久久久久久图片 | 亚洲图片你懂的| 91精品国产黑色紧身裤美女| 成人动漫视频在线| 日本午夜一本久久久综合| 中日韩av电影| 日韩无一区二区| 91久久国产综合久久| 国产在线精品一区二区| 亚洲国产综合91精品麻豆| 国产欧美精品一区二区三区四区 | 一区二区高清视频在线观看| 国产亚洲一区二区三区在线观看| 欧美三级韩国三级日本一级| 国产69精品久久久久毛片| 日韩中文字幕亚洲一区二区va在线| 欧美经典一区二区三区| 91精品国产欧美一区二区18| 91蜜桃在线观看| 国产精品一区二区在线看| 日韩精品高清不卡| 伊人婷婷欧美激情| 国产亚洲成年网址在线观看| 欧美精品久久一区二区三区| 91在线观看美女| 国产在线精品国自产拍免费| 亚洲va国产天堂va久久en| 国产精品理伦片| 久久久久久久久久美女| 日韩一区二区在线观看视频| 欧美色精品在线视频| 日本乱人伦aⅴ精品| 99久久久无码国产精品| 国产成人精品综合在线观看 | 日韩午夜av一区| 欧美日韩国产小视频| 色久优优欧美色久优优| 成人av在线资源| 成人网页在线观看| 国产精品正在播放| 国产在线精品一区在线观看麻豆| 日韩精品乱码av一区二区| 午夜影视日本亚洲欧洲精品| 一区二区三区在线视频观看| 亚洲国产精品精华液2区45| 久久先锋影音av鲁色资源网| 日韩一区二区电影| 欧美一区二区三区四区在线观看| 欧美视频你懂的| 欧美在线观看视频在线| 日本黄色一区二区| 91麻豆免费看| 91精品91久久久中77777| 91小视频在线免费看| 91日韩在线专区| 91浏览器入口在线观看| 99视频一区二区| 97精品久久久久中文字幕| 99久久精品免费精品国产| 9色porny自拍视频一区二区| av亚洲精华国产精华精华| k8久久久一区二区三区 | 亚洲国产精品99久久久久久久久| 久久久精品欧美丰满| 久久久精品国产免大香伊| 欧美激情艳妇裸体舞| 中文字幕免费在线观看视频一区| 国产精品乱码一区二区三区软件 | 国产一区999|