Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
usb_serial_port Struct Reference

#include <serial.h>

Data Fields

struct usb_serialserial
 
struct tty_port port
 
spinlock_t lock
 
unsigned char number
 
unsigned charinterrupt_in_buffer
 
struct urbinterrupt_in_urb
 
__u8 interrupt_in_endpointAddress
 
unsigned charinterrupt_out_buffer
 
int interrupt_out_size
 
struct urbinterrupt_out_urb
 
__u8 interrupt_out_endpointAddress
 
unsigned charbulk_in_buffer
 
int bulk_in_size
 
struct urbread_urb
 
__u8 bulk_in_endpointAddress
 
unsigned charbulk_in_buffers [2]
 
struct urbread_urbs [2]
 
unsigned long read_urbs_free
 
unsigned charbulk_out_buffer
 
int bulk_out_size
 
struct urbwrite_urb
 
struct kfifo write_fifo
 
unsigned charbulk_out_buffers [2]
 
struct urbwrite_urbs [2]
 
unsigned long write_urbs_free
 
__u8 bulk_out_endpointAddress
 
int tx_bytes
 
unsigned long flags
 
wait_queue_head_t write_wait
 
struct work_struct work
 
char throttled
 
char throttle_req
 
unsigned long sysrq
 
struct device dev
 

Detailed Description

usb_serial_port: structure for the specific ports of a device. : pointer back to the struct usb_serial owner of this port. : pointer to the corresponding tty_port for this port. : spinlock to grab when updating portions of this structure. : the number of the port (the minor number). : pointer to the interrupt in buffer for this port. : pointer to the interrupt in struct urb for this port. : endpoint address for the interrupt in pipe for this port. : pointer to the interrupt out buffer for this port. : the size of the interrupt_out_buffer, in bytes. : pointer to the interrupt out struct urb for this port. : endpoint address for the interrupt out pipe for this port. : pointer to the bulk in buffer for this port. : the size of the bulk_in_buffer, in bytes. : pointer to the bulk in struct urb for this port. : endpoint address for the bulk in pipe for this port. : pointers to the bulk in buffers for this port : pointers to the bulk in urbs for this port : status bitmap the for bulk in urbs : pointer to the bulk out buffer for this port. : the size of the bulk_out_buffer, in bytes. : pointer to the bulk out struct urb for this port. : kfifo used to buffer outgoing data : pointers to the bulk out buffers for this port : pointers to the bulk out urbs for this port : status bitmap the for bulk out urbs : number of bytes currently in host stack queues : endpoint address for the bulk out pipe for this port. : usb serial port flags : a wait_queue_head_t used by the port. : work queue entry for the line discipline waking up. : nonzero if the read urb is inactive to throttle the device : nonzero if the tty wants to throttle us : pointer to the serial device

This structure is used by the usb-serial core and drivers for the specific ports of a device.

Definition at line 77 of file serial.h.

Field Documentation

unsigned char* bulk_in_buffer

Definition at line 92 of file serial.h.

unsigned char* bulk_in_buffers[2]

Definition at line 97 of file serial.h.

__u8 bulk_in_endpointAddress

Definition at line 95 of file serial.h.

int bulk_in_size

Definition at line 93 of file serial.h.

unsigned char* bulk_out_buffer

Definition at line 101 of file serial.h.

unsigned char* bulk_out_buffers[2]

Definition at line 106 of file serial.h.

__u8 bulk_out_endpointAddress

Definition at line 109 of file serial.h.

int bulk_out_size

Definition at line 102 of file serial.h.

Definition at line 119 of file serial.h.

unsigned long flags

Definition at line 113 of file serial.h.

unsigned char* interrupt_in_buffer

Definition at line 83 of file serial.h.

__u8 interrupt_in_endpointAddress

Definition at line 85 of file serial.h.

struct urb* interrupt_in_urb

Definition at line 84 of file serial.h.

unsigned char* interrupt_out_buffer

Definition at line 87 of file serial.h.

__u8 interrupt_out_endpointAddress

Definition at line 90 of file serial.h.

int interrupt_out_size

Definition at line 88 of file serial.h.

struct urb* interrupt_out_urb

Definition at line 89 of file serial.h.

spinlock_t lock

Definition at line 80 of file serial.h.

unsigned char number

Definition at line 81 of file serial.h.

Definition at line 79 of file serial.h.

struct urb* read_urb

Definition at line 94 of file serial.h.

struct urb* read_urbs[2]

Definition at line 98 of file serial.h.

unsigned long read_urbs_free

Definition at line 99 of file serial.h.

struct usb_serial* serial

Definition at line 78 of file serial.h.

unsigned long sysrq

Definition at line 118 of file serial.h.

char throttle_req

Definition at line 117 of file serial.h.

char throttled

Definition at line 116 of file serial.h.

int tx_bytes

Definition at line 111 of file serial.h.

Definition at line 115 of file serial.h.

struct kfifo write_fifo

Definition at line 104 of file serial.h.

struct urb* write_urb

Definition at line 103 of file serial.h.

struct urb* write_urbs[2]

Definition at line 107 of file serial.h.

unsigned long write_urbs_free

Definition at line 108 of file serial.h.

wait_queue_head_t write_wait

Definition at line 114 of file serial.h.


The documentation for this struct was generated from the following file: