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

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

?? usb-serial.h

?? USB Serial Converter driver USB串口驅動
?? H
字號:
/* * USB Serial Converter driver * *	Copyright (C) 1999 - 2005 *	    Greg Kroah-Hartman (greg@kroah.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. * */#ifndef __LINUX_USB_SERIAL_H#define __LINUX_USB_SERIAL_H#include <linux/config.h>#include <linux/kref.h>#include <asm/semaphore.h>#define SERIAL_TTY_MAJOR	188	/* Nice legal number now */#define SERIAL_TTY_MINORS	255	/* loads of devices :) */#define MAX_NUM_PORTS		8	/* The maximum number of ports one device can grab at once *//* parity check flag */#define RELEVANT_IFLAG(iflag)	(iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))/** * usb_serial_port: structure for the specific ports of a device. * @serial: pointer back to the struct usb_serial owner of this port. * @tty: pointer to the corresponding tty for this port. * @lock: spinlock to grab when updating portions of this structure. * @sem: semaphore used to synchronize serial_open() and serial_close() *	access for this port. * @number: the number of the port (the minor number). * @interrupt_in_buffer: pointer to the interrupt in buffer for this port. * @interrupt_in_urb: pointer to the interrupt in struct urb for this port. * @interrupt_in_endpointAddress: endpoint address for the interrupt in pipe *	for this port. * @interrupt_out_buffer: pointer to the interrupt out buffer for this port. * @interrupt_out_size: the size of the interrupt_out_buffer, in bytes. * @interrupt_out_urb: pointer to the interrupt out struct urb for this port. * @interrupt_out_endpointAddress: endpoint address for the interrupt out pipe * 	for this port. * @bulk_in_buffer: pointer to the bulk in buffer for this port. * @read_urb: pointer to the bulk in struct urb for this port. * @bulk_in_endpointAddress: endpoint address for the bulk in pipe for this *	port. * @bulk_out_buffer: pointer to the bulk out buffer for this port. * @bulk_out_size: the size of the bulk_out_buffer, in bytes. * @write_urb: pointer to the bulk out struct urb for this port. * @bulk_out_endpointAddress: endpoint address for the bulk out pipe for this *	port. * @write_wait: a wait_queue_head_t used by the port. * @work: work queue entry for the line discipline waking up. * @open_count: number of times this port has been opened. * * This structure is used by the usb-serial core and drivers for the specific * ports of a device. */struct usb_serial_port {	struct usb_serial *	serial;	struct tty_struct *	tty;	spinlock_t		lock;	struct semaphore        sem;	unsigned char		number;	unsigned char *		interrupt_in_buffer;	struct urb *		interrupt_in_urb;	__u8			interrupt_in_endpointAddress;	unsigned char *		interrupt_out_buffer;	int			interrupt_out_size;	struct urb *		interrupt_out_urb;	__u8			interrupt_out_endpointAddress;	unsigned char *		bulk_in_buffer;	int			bulk_in_size;	struct urb *		read_urb;	__u8			bulk_in_endpointAddress;	unsigned char *		bulk_out_buffer;	int			bulk_out_size;	struct urb *		write_urb;	int			write_urb_busy;	__u8			bulk_out_endpointAddress;	wait_queue_head_t	write_wait;	struct work_struct	work;	int			open_count;	struct device		dev;};#define to_usb_serial_port(d) container_of(d, struct usb_serial_port, dev)/* get and set the port private data pointer helper functions */static inline void *usb_get_serial_port_data (struct usb_serial_port *port){	return dev_get_drvdata(&port->dev);}static inline void usb_set_serial_port_data (struct usb_serial_port *port, void *data){	dev_set_drvdata(&port->dev, data);}/** * usb_serial - structure used by the usb-serial core for a device * @dev: pointer to the struct usb_device for this device * @type: pointer to the struct usb_serial_driver for this device * @interface: pointer to the struct usb_interface for this device * @minor: the starting minor number for this device * @num_ports: the number of ports this device has * @num_interrupt_in: number of interrupt in endpoints we have * @num_interrupt_out: number of interrupt out endpoints we have * @num_bulk_in: number of bulk in endpoints we have * @num_bulk_out: number of bulk out endpoints we have * @port: array of struct usb_serial_port structures for the different ports. * @private: place to put any driver specific information that is needed.  The *	usb-serial driver is required to manage this data, the usb-serial core *	will not touch this.  Use usb_get_serial_data() and *	usb_set_serial_data() to access this. */struct usb_serial {	struct usb_device *		dev;	struct usb_serial_driver *	type;	struct usb_interface *		interface;	unsigned char			minor;	unsigned char			num_ports;	unsigned char			num_port_pointers;	char				num_interrupt_in;	char				num_interrupt_out;	char				num_bulk_in;	char				num_bulk_out;	struct usb_serial_port *	port[MAX_NUM_PORTS];	struct kref			kref;	void *				private;};#define to_usb_serial(d) container_of(d, struct usb_serial, kref)#define NUM_DONT_CARE	(-1)/* get and set the serial private data pointer helper functions */static inline void *usb_get_serial_data (struct usb_serial *serial){	return serial->private;}static inline void usb_set_serial_data (struct usb_serial *serial, void *data){	serial->private = data;}/** * usb_serial_driver - describes a usb serial driver * @description: pointer to a string that describes this driver.  This string used *	in the syslog messages when a device is inserted or removed. * @id_table: pointer to a list of usb_device_id structures that define all *	of the devices this structure can support. * @num_interrupt_in: the number of interrupt in endpoints this device will *	have. * @num_interrupt_out: the number of interrupt out endpoints this device will *	have. * @num_bulk_in: the number of bulk in endpoints this device will have. * @num_bulk_out: the number of bulk out endpoints this device will have. * @num_ports: the number of different ports this device will have. * @calc_num_ports: pointer to a function to determine how many ports this *	device has dynamically.  It will be called after the probe() *	callback is called, but before attach() * @probe: pointer to the driver's probe function. *	This will be called when the device is inserted into the system, *	but before the device has been fully initialized by the usb_serial *	subsystem.  Use this function to download any firmware to the device, *	or any other early initialization that might be needed. *	Return 0 to continue on with the initialization sequence.  Anything  *	else will abort it. * @attach: pointer to the driver's attach function. *	This will be called when the struct usb_serial structure is fully set *	set up.  Do any local initialization of the device, or any private *	memory structure allocation at this point in time. * @shutdown: pointer to the driver's shutdown function.  This will be *	called when the device is removed from the system. * * This structure is defines a USB Serial driver.  It provides all of * the information that the USB serial core code needs.  If the function * pointers are defined, then the USB serial core code will call them when * the corresponding tty port functions are called.  If they are not * called, the generic serial function will be used instead. * * The driver.owner field should be set to the module owner of this driver. * The driver.name field should be set to the name of this driver (remember * it will show up in sysfs, so it needs to be short and to the point. * Useing the module name is a good idea.) */struct usb_serial_driver {	const char *description;	const struct usb_device_id *id_table;	char	num_interrupt_in;	char	num_interrupt_out;	char	num_bulk_in;	char	num_bulk_out;	char	num_ports;	struct list_head	driver_list;	struct device_driver	driver;	int (*probe) (struct usb_serial *serial, const struct usb_device_id *id);	int (*attach) (struct usb_serial *serial);	int (*calc_num_ports) (struct usb_serial *serial);	void (*shutdown) (struct usb_serial *serial);	int (*port_probe) (struct usb_serial_port *port);	int (*port_remove) (struct usb_serial_port *port);	/* serial function calls */	int  (*open)		(struct usb_serial_port *port, struct file * filp);	void (*close)		(struct usb_serial_port *port, struct file * filp);	int  (*write)		(struct usb_serial_port *port, const unsigned char *buf, int count);	int  (*write_room)	(struct usb_serial_port *port);	int  (*ioctl)		(struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg);	void (*set_termios)	(struct usb_serial_port *port, struct termios * old);	void (*break_ctl)	(struct usb_serial_port *port, int break_state);	int  (*chars_in_buffer)	(struct usb_serial_port *port);	void (*throttle)	(struct usb_serial_port *port);	void (*unthrottle)	(struct usb_serial_port *port);	int  (*tiocmget)	(struct usb_serial_port *port, struct file *file);	int  (*tiocmset)	(struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear);	void (*read_int_callback)(struct urb *urb, struct pt_regs *regs);	void (*write_int_callback)(struct urb *urb, struct pt_regs *regs);	void (*read_bulk_callback)(struct urb *urb, struct pt_regs *regs);	void (*write_bulk_callback)(struct urb *urb, struct pt_regs *regs);};#define to_usb_serial_driver(d) container_of(d, struct usb_serial_driver, driver)extern int  usb_serial_register(struct usb_serial_driver *driver);extern void usb_serial_deregister(struct usb_serial_driver *driver);extern void usb_serial_port_softint(void *private);extern int usb_serial_probe(struct usb_interface *iface, const struct usb_device_id *id);extern void usb_serial_disconnect(struct usb_interface *iface);extern int ezusb_writememory (struct usb_serial *serial, int address, unsigned char *data, int length, __u8 bRequest);extern int ezusb_set_reset (struct usb_serial *serial, unsigned char reset_bit);/* USB Serial console functions */#ifdef CONFIG_USB_SERIAL_CONSOLEextern void usb_serial_console_init (int debug, int minor);extern void usb_serial_console_exit (void);#elsestatic inline void usb_serial_console_init (int debug, int minor) { }static inline void usb_serial_console_exit (void) { }#endif/* Functions needed by other parts of the usbserial core */extern struct usb_serial *usb_serial_get_by_index (unsigned int minor);extern int usb_serial_generic_open (struct usb_serial_port *port, struct file *filp);extern int usb_serial_generic_write (struct usb_serial_port *port, const unsigned char *buf, int count);extern void usb_serial_generic_close (struct usb_serial_port *port, struct file *filp);extern int usb_serial_generic_write_room (struct usb_serial_port *port);extern int usb_serial_generic_chars_in_buffer (struct usb_serial_port *port);extern void usb_serial_generic_read_bulk_callback (struct urb *urb, struct pt_regs *regs);extern void usb_serial_generic_write_bulk_callback (struct urb *urb, struct pt_regs *regs);extern void usb_serial_generic_shutdown (struct usb_serial *serial);extern int usb_serial_generic_register (int debug);extern void usb_serial_generic_deregister (void);extern int usb_serial_bus_register (struct usb_serial_driver *device);extern void usb_serial_bus_deregister (struct usb_serial_driver *device);extern struct usb_serial_driver usb_serial_generic_device;extern struct bus_type usb_serial_bus_type;extern struct tty_driver *usb_serial_tty_driver;static inline void usb_serial_debug_data(int debug,					 struct device *dev,					 const char *function, int size,					 const unsigned char *data){	int i;	if (debug) {		dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = ", function, size);		for (i = 0; i < size; ++i)			printk ("%.2x ", data[i]);		printk ("\n");	}}/* Use our own dbg macro */#undef dbg#define dbg(format, arg...) do { if (debug) printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , ## arg); } while (0)#endif	/* ifdef __LINUX_USB_SERIAL_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草精品视频| 另类成人小视频在线| 国产精品综合在线视频| 欧美日韩久久一区| 一区二区三区四区精品在线视频| 国产福利一区二区三区| 26uuu亚洲综合色欧美| 日本午夜精品一区二区三区电影| 色噜噜久久综合| 一区二区三区在线免费观看| av在线不卡电影| 久久久三级国产网站| 亚洲1区2区3区4区| 欧美精品1区2区3区| 午夜精品久久久久久久蜜桃app| 在线观看网站黄不卡| 亚洲一线二线三线久久久| 91碰在线视频| 亚洲综合无码一区二区| 欧美亚洲一区二区在线观看| 亚洲一区二区成人在线观看| 欧美高清性hdvideosex| 精品一区二区三区免费播放| 久久精品一区蜜桃臀影院| 国产成人欧美日韩在线电影| 国产精品成人一区二区三区夜夜夜 | 精品一区二区在线视频| 精品久久久久久久一区二区蜜臀| 极品瑜伽女神91| 国产精品久久久久久福利一牛影视| 91丨九色porny丨蝌蚪| 亚洲电影激情视频网站| 日韩精品一区二| 成人午夜电影网站| 亚洲色大成网站www久久九九| 欧美网站大全在线观看| 激情综合网av| 亚洲欧美日本在线| 日韩免费视频一区二区| 国产成人免费视频精品含羞草妖精| 日韩欧美一区二区不卡| 国产成人精品一区二| 亚洲午夜精品一区二区三区他趣| 日韩女优av电影在线观看| 国产精品一二一区| 亚洲狠狠爱一区二区三区| 欧美mv和日韩mv的网站| 波多野结衣一区二区三区| 亚洲一区二区偷拍精品| 亚洲精品在线一区二区| 欧美综合久久久| 国产一区二区三区在线看麻豆| 亚洲人被黑人高潮完整版| 欧美日韩综合不卡| 国产在线不卡一区| 亚洲国产一区二区视频| 国产亚洲欧美日韩在线一区| 色哟哟国产精品免费观看| 久久精品国产澳门| 国产精品萝li| 欧美日韩激情一区| 高清不卡在线观看| 美女被吸乳得到大胸91| 亚洲狠狠爱一区二区三区| 国产亚洲综合性久久久影院| 欧美精品视频www在线观看| www.亚洲色图.com| 国内精品在线播放| 午夜精品福利久久久| 国产精品精品国产色婷婷| 精品成人一区二区三区| 色婷婷国产精品综合在线观看| 国产福利不卡视频| 久草这里只有精品视频| 爽好久久久欧美精品| 亚洲女女做受ⅹxx高潮| 国产三级三级三级精品8ⅰ区| 欧美视频一区二区在线观看| 成人精品视频网站| 狠狠色2019综合网| 免费观看日韩av| 亚洲成人免费观看| 久久久久久久电影| 久久综合色综合88| 日韩欧美国产精品| 欧美一级夜夜爽| 制服丝袜一区二区三区| 欧美浪妇xxxx高跟鞋交| 91传媒视频在线播放| 99re视频精品| 91在线视频18| 99精品视频在线观看免费| 波多野结衣中文字幕一区二区三区| 麻豆91免费观看| 精品一区二区综合| 久久99日本精品| 久久国产精品区| 激情综合亚洲精品| 国产福利视频一区二区三区| 国产福利精品一区二区| 国产福利精品一区| 成人精品gif动图一区| 国产成人精品免费| 97精品国产露脸对白| 日本精品一级二级| 欧美性猛片aaaaaaa做受| 91啪亚洲精品| 欧美日本高清视频在线观看| 欧美裸体bbwbbwbbw| 欧美一级午夜免费电影| 久久女同性恋中文字幕| 中文字幕精品一区二区三区精品| 国产精品福利影院| 日本一区二区视频在线观看| 国产亚洲一区二区在线观看| 国产精品白丝在线| 亚洲一卡二卡三卡四卡| 日本中文在线一区| 国产一本一道久久香蕉| 成人av在线看| 欧美日韩一区视频| 91精品国产综合久久精品app| 欧美一区二区三区免费| 26uuu另类欧美| 国产日韩欧美精品一区| 国产精品嫩草99a| 亚洲一区二区三区四区的| 麻豆精品一二三| 成人午夜在线视频| 欧美中文字幕一区二区三区亚洲| 在线播放91灌醉迷j高跟美女| 精品国产伦一区二区三区观看方式| 欧美精品一区二区在线观看| 国产精品久久午夜夜伦鲁鲁| 首页亚洲欧美制服丝腿| 久久精品国产精品亚洲红杏| 91视频.com| 日韩一卡二卡三卡四卡| 国产精品天天看| 亚洲大尺度视频在线观看| av一本久道久久综合久久鬼色| 精品久久久久久久久久久久久久久久久 | 国产成人鲁色资源国产91色综| 欧美日韩激情在线| 亚洲视频免费看| 成人免费福利片| 欧美精品一区二| 麻豆精品一区二区| 5858s免费视频成人| 亚洲综合色区另类av| av一本久道久久综合久久鬼色| 久久中文娱乐网| 久久草av在线| 日韩女优电影在线观看| 日产欧产美韩系列久久99| 欧美色图免费看| 亚洲欧美国产毛片在线| 99精品视频一区| 亚洲色图20p| 色婷婷av久久久久久久| 亚洲女性喷水在线观看一区| 成人高清免费在线播放| 欧美国产日韩亚洲一区| 成人激情开心网| 亚洲欧美在线视频| 99精品欧美一区| 亚洲人吸女人奶水| 在线免费不卡电影| 亚洲综合一区二区精品导航| 欧美丝袜丝交足nylons| 亚洲福利电影网| 91麻豆精品久久久久蜜臀| 日本欧洲一区二区| 精品乱码亚洲一区二区不卡| 国产一区二区三区久久久| 国产区在线观看成人精品| 懂色av一区二区三区免费观看| 亚洲国产激情av| 91视频在线观看免费| 亚洲一区欧美一区| 欧美一卡2卡三卡4卡5免费| 久久疯狂做爰流白浆xx| 亚洲精品在线观看网站| 国产成人自拍网| 综合欧美亚洲日本| 欧美日韩一二区| 蜜臀a∨国产成人精品| 久久久久国产精品麻豆ai换脸| 国产成人av电影在线观看| 亚洲女厕所小便bbb| 9191久久久久久久久久久| 看电视剧不卡顿的网站| 国产日韩欧美亚洲| 91黄色免费观看| 美女网站一区二区| 欧美国产在线观看| 欧美三片在线视频观看| 精品在线视频一区| 亚洲欧美日韩一区二区| 欧美一区二区在线不卡|