|
const char * | description |
|
struct usb_device_id * | id_table |
|
char | num_ports |
|
struct list_head | driver_list |
|
struct device_driver | driver |
|
struct usb_driver * | usb_driver |
|
struct usb_dynids | dynids |
|
size_t | bulk_in_size |
|
size_t | bulk_out_size |
|
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(* | disconnect )(struct usb_serial *serial) |
|
void(* | release )(struct usb_serial *serial) |
|
int(* | port_probe )(struct usb_serial_port *port) |
|
int(* | port_remove )(struct usb_serial_port *port) |
|
int(* | suspend )(struct usb_serial *serial, pm_message_t message) |
|
int(* | resume )(struct usb_serial *serial) |
|
int(* | reset_resume )(struct usb_serial *serial) |
|
int(* | open )(struct tty_struct *tty, struct usb_serial_port *port) |
|
void(* | close )(struct usb_serial_port *port) |
|
int(* | write )(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) |
|
int(* | write_room )(struct tty_struct *tty) |
|
int(* | ioctl )(struct tty_struct *tty, unsigned int cmd, unsigned long arg) |
|
void(* | set_termios )(struct tty_struct *tty, struct usb_serial_port *port, struct ktermios *old) |
|
void(* | break_ctl )(struct tty_struct *tty, int break_state) |
|
int(* | chars_in_buffer )(struct tty_struct *tty) |
|
void(* | throttle )(struct tty_struct *tty) |
|
void(* | unthrottle )(struct tty_struct *tty) |
|
int(* | tiocmget )(struct tty_struct *tty) |
|
int(* | tiocmset )(struct tty_struct *tty, unsigned int set, unsigned int clear) |
|
int(* | get_icount )(struct tty_struct *tty, struct serial_icounter_struct *icount) |
|
void(* | dtr_rts )(struct usb_serial_port *port, int on) |
|
int(* | carrier_raised )(struct usb_serial_port *port) |
|
void(* | init_termios )(struct tty_struct *tty) |
|
void(* | read_int_callback )(struct urb *urb) |
|
void(* | write_int_callback )(struct urb *urb) |
|
void(* | read_bulk_callback )(struct urb *urb) |
|
void(* | write_bulk_callback )(struct urb *urb) |
|
void(* | process_read_urb )(struct urb *urb) |
|
int(* | prepare_write_buffer )(struct usb_serial_port *port, void *dest, size_t size) |
|
usb_serial_driver - describes a usb serial driver : pointer to a string that describes this driver. This string used in the syslog messages when a device is inserted or removed. : pointer to a list of usb_device_id structures that define all of the devices this structure can support. : the number of different ports this device will have. : minimum number of bytes to allocate for bulk-in buffer (0 = end-point size) : bytes to allocate for bulk-out buffer (0 = end-point size) : 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() : 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. : 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. : pointer to the driver's disconnect function. This will be called when the device is unplugged or unbound from the driver. : pointer to the driver's release function. This will be called when the usb_serial data structure is about to be destroyed. : pointer to the struct usb_driver that controls this device. This is necessary to allow dynamic ids to be added to the driver from sysfs.
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. Using the module name is a good idea.)
Definition at line 227 of file serial.h.