Lines Matching defs:uart_port
429 struct uart_port { struct
433 unsigned int (*serial_in)(struct uart_port *, int); argument
434 void (*serial_out)(struct uart_port *, int, int); argument
435 void (*set_termios)(struct uart_port *, argument
438 void (*set_ldisc)(struct uart_port *, argument
440 unsigned int (*get_mctrl)(struct uart_port *); argument
441 void (*set_mctrl)(struct uart_port *, unsigned int); argument
442 unsigned int (*get_divisor)(struct uart_port *, argument
445 void (*set_divisor)(struct uart_port *, argument
449 int (*startup)(struct uart_port *port); argument
450 void (*shutdown)(struct uart_port *port); argument
451 void (*throttle)(struct uart_port *port); argument
452 void (*unthrottle)(struct uart_port *port); argument
453 int (*handle_irq)(struct uart_port *); argument
454 void (*pm)(struct uart_port *, unsigned int state, argument
456 void (*handle_break)(struct uart_port *); argument
457 int (*rs485_config)(struct uart_port *, argument
460 int (*iso7816_config)(struct uart_port *, argument
462 unsigned int ctrl_id; /* optional serial core controller id */
463 unsigned int port_id; /* optional serial core port id */
464 unsigned int irq; /* irq number */
465 unsigned long irqflags; /* irq flags */
466 unsigned int uartclk; /* base uart clock */
467 unsigned int fifosize; /* tx fifo size */
468 unsigned char x_char; /* xon/xoff char */
469 unsigned char regshift; /* reg offset shift */
470 unsigned char iotype; /* io access style */
471 unsigned char quirks; /* internal quirks */
485 unsigned int read_status_mask; /* driver specific */
486 unsigned int ignore_status_mask; /* driver specific */
487 struct uart_state *state; /* pointer to parent state */
488 struct uart_icount icount; /* statistics */
490 struct console *cons; /* struct console, if any */
492 upf_t flags;
550 upstat_t status;
559 bool hw_stopped; /* sw-assisted CTS flow state */
560 unsigned int mctrl; /* current modem ctrl settings */
561 unsigned int frame_time; /* frame timing in ns */
562 unsigned int type; /* port type */
563 const struct uart_ops *ops;
564 unsigned int custom_divisor;
565 unsigned int line; /* port index */
566 unsigned int minor;
567 resource_size_t mapbase; /* for ioremap */
568 resource_size_t mapsize;
592 * uart_port_lock - Lock the UART port argument
595 static inline void uart_port_lock(struct uart_port *up) in uart_port_lock() argument
703 struct uart_port *uart_port; member