8250.h (eb26dfe8aa7eeb5a5aa0b7574550125f8aa4c3b3) | 8250.h (ce7240e445303de3ca66e6d08f17a2ec278a5bf6) |
---|---|
1/* 2 * Driver for 8250/16550-type serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright (C) 2001 Russell King. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 */ 13 14#include <linux/serial_8250.h> 15 | 1/* 2 * Driver for 8250/16550-type serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright (C) 2001 Russell King. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 */ 13 14#include <linux/serial_8250.h> 15 |
16struct uart_8250_port { 17 struct uart_port port; 18 struct timer_list timer; /* "no irq" timer */ 19 struct list_head list; /* ports on this IRQ */ 20 unsigned short capabilities; /* port capabilities */ 21 unsigned short bugs; /* port bugs */ 22 unsigned int tx_loadsz; /* transmit fifo load size */ 23 unsigned char acr; 24 unsigned char ier; 25 unsigned char lcr; 26 unsigned char mcr; 27 unsigned char mcr_mask; /* mask of user bits */ 28 unsigned char mcr_force; /* mask of forced bits */ 29 unsigned char cur_iotype; /* Running I/O type */ 30 31 /* 32 * Some bits in registers are cleared on a read, so they must 33 * be saved whenever the register is read but the bits will not 34 * be immediately processed. 35 */ 36#define LSR_SAVE_FLAGS UART_LSR_BRK_ERROR_BITS 37 unsigned char lsr_saved_flags; 38#define MSR_SAVE_FLAGS UART_MSR_ANY_DELTA 39 unsigned char msr_saved_flags; 40 41 /* 8250 specific callbacks */ 42 int (*dl_read)(struct uart_8250_port *); 43 void (*dl_write)(struct uart_8250_port *, int); 44}; 45 | |
46struct old_serial_port { 47 unsigned int uart; 48 unsigned int baud_base; 49 unsigned int port; 50 unsigned int irq; 51 unsigned int flags; 52 unsigned char hub6; 53 unsigned char io_type; --- 79 unchanged lines hidden --- | 16struct old_serial_port { 17 unsigned int uart; 18 unsigned int baud_base; 19 unsigned int port; 20 unsigned int irq; 21 unsigned int flags; 22 unsigned char hub6; 23 unsigned char io_type; --- 79 unchanged lines hidden --- |