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

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

?? usb-serial.h

?? Linux驅動編程源碼
?? 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一区二区三区免费野_久草精品视频
国产精品私人自拍| 久久国产人妖系列| 老司机精品视频线观看86| 国产精品中文字幕欧美| 欧美亚洲愉拍一区二区| 久久久久久99久久久精品网站| 亚洲欧美中日韩| 久久99精品国产麻豆不卡| 色综合天天性综合| 久久久久久免费| 日韩经典中文字幕一区| 日本精品免费观看高清观看| 久久蜜桃av一区二区天堂| 天堂va蜜桃一区二区三区| 97aⅴ精品视频一二三区| 亚洲精品一区二区三区在线观看| 午夜日韩在线电影| 色综合久久88色综合天天| 欧美激情在线一区二区三区| 麻豆91精品91久久久的内涵| 欧美日韩电影在线播放| 亚洲综合精品久久| 色婷婷久久99综合精品jk白丝| 亚洲国产精品av| 国产福利精品一区二区| 精品久久久久久久久久久久久久久 | 色欧美88888久久久久久影院| 精品不卡在线视频| 另类调教123区| 日韩一级免费一区| 日韩精品亚洲一区二区三区免费| 日本国产一区二区| 亚洲丝袜精品丝袜在线| 丁香天五香天堂综合| 久久先锋影音av| 国内偷窥港台综合视频在线播放| 欧美一区二区三区四区高清| 午夜欧美在线一二页| 欧美少妇xxx| 午夜国产不卡在线观看视频| 欧美视频在线播放| 亚洲在线成人精品| 欧美精选午夜久久久乱码6080| 一区二区三区在线视频播放| 欧美性猛片aaaaaaa做受| 亚洲亚洲人成综合网络| 欧美日韩成人一区| 美国毛片一区二区| 国产日产欧美一区二区视频| 懂色中文一区二区在线播放| 综合电影一区二区三区| 在线欧美日韩国产| 视频一区在线视频| 久久综合色鬼综合色| 国产一区不卡视频| 综合久久久久久| 欧美日韩三级一区| 精品在线亚洲视频| 国产精品嫩草久久久久| 在线视频观看一区| 麻豆精品视频在线| 中文av字幕一区| 日本韩国欧美国产| 麻豆91免费看| 亚洲三级免费电影| 日韩欧美一区在线观看| 国产成人免费视频网站高清观看视频 | 久久女同精品一区二区| 成人动漫在线一区| 午夜久久电影网| 2019国产精品| 欧美伊人久久久久久午夜久久久久| 日韩在线一区二区| 中文字幕 久热精品 视频在线| 欧美在线不卡一区| 国产剧情一区二区三区| 一片黄亚洲嫩模| 欧美一区二区三区不卡| 99亚偷拍自图区亚洲| 日韩国产高清影视| 国产精品欧美经典| 欧美一区二区三区免费| 成人av网站在线观看| 日本在线不卡视频| 亚洲欧美视频在线观看| 精品福利一区二区三区| 欧美性猛交xxxx乱大交退制版| 国产麻豆精品久久一二三| 亚洲一区日韩精品中文字幕| 国产日本亚洲高清| 日韩视频在线观看一区二区| 色综合欧美在线| 国产成人精品免费视频网站| 日本不卡视频一二三区| 亚洲视频一区在线| 国产欧美视频一区二区三区| 日韩三级免费观看| 精品视频全国免费看| 91看片淫黄大片一级在线观看| 精品一区二区三区免费视频| 亚洲一区二区三区四区不卡| 中文字幕日韩精品一区| 国产调教视频一区| 精品国产精品网麻豆系列| 欧美精品日韩精品| 欧美视频一区二| 欧美自拍丝袜亚洲| 色婷婷av一区二区三区大白胸| 成人性生交大片免费看中文| 韩国av一区二区三区| 久久精品国产99国产精品| 日韩电影在线观看电影| 亚洲图片自拍偷拍| 一区二区三区高清| 亚洲精品va在线观看| 亚洲人成网站影音先锋播放| 国产精品麻豆视频| 国产精品久久久久影院亚瑟| 国产精品久久久久三级| 国产亚洲精品福利| 欧美国产禁国产网站cc| 中文在线免费一区三区高中清不卡| 久久久久综合网| 国产日韩欧美精品在线| 国产精品美女久久久久aⅴ| 国产女人aaa级久久久级| 欧美国产一区在线| 国产精品麻豆网站| 一区二区三区精品久久久| 夜夜嗨av一区二区三区| 五月婷婷欧美视频| 美女免费视频一区| 国产成人精品综合在线观看| 成人永久免费视频| 91日韩在线专区| 欧美三级一区二区| 日韩欧美视频在线| 国产日韩精品一区二区三区| 国产精品区一区二区三| 亚洲精品高清视频在线观看| 日日夜夜精品视频天天综合网| 毛片av一区二区| 国产成人免费av在线| 在线观看区一区二| 日韩一二三区不卡| 国产精品嫩草久久久久| 亚洲国产成人tv| 韩日精品视频一区| 91蜜桃传媒精品久久久一区二区| 欧日韩精品视频| 欧美成人女星排名| 中文字幕一区视频| 日韩精品午夜视频| 成人丝袜视频网| 91精品国产一区二区| 久久久777精品电影网影网| 亚洲欧洲制服丝袜| 久久99精品一区二区三区三区| 成人网页在线观看| 日韩一区二区三区在线视频| 中文字幕中文在线不卡住| 三级不卡在线观看| 91在线播放网址| 日韩你懂的电影在线观看| 亚洲色图一区二区三区| 免费一级片91| 91精品办公室少妇高潮对白| 2020国产成人综合网| 亚洲综合小说图片| 国产大陆精品国产| 4438亚洲最大| 亚洲视频小说图片| 精品在线观看免费| 欧美视频在线一区| 国产精品家庭影院| 国内精品嫩模私拍在线| 欧美日韩一区二区在线视频| 国产精品情趣视频| 国产一区二区三区在线观看免费 | 国产麻豆一精品一av一免费| 在线视频一区二区三| 国产精品青草综合久久久久99| 日本成人在线看| 精品视频1区2区| 一区二区三区国产精华| 99久久亚洲一区二区三区青草| 日韩欧美第一区| 欧美aaaaa成人免费观看视频| 日本高清不卡一区| 亚洲人成人一区二区在线观看| 国产精品一二三区| 精品国产91洋老外米糕| 奇米影视一区二区三区| 欧美日韩免费电影| 亚洲成a人v欧美综合天堂下载| 91久久香蕉国产日韩欧美9色| 亚洲欧美综合另类在线卡通| 99国产精品久久| 综合激情成人伊人| 色婷婷亚洲婷婷|