Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pch_uart.c File Reference
#include <linux/kernel.h>
#include <linux/serial_reg.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/serial_core.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/dmi.h>
#include <linux/console.h>
#include <linux/nmi.h>
#include <linux/delay.h>
#include <linux/debugfs.h>
#include <linux/dmaengine.h>
#include <linux/pch_dma.h>

Go to the source code of this file.

Data Structures

struct  pch_uart_buffer
 
struct  eg20t_port
 
struct  pch_uart_driver_data
 

Macros

#define PCH_UART_DRIVER_DEVICE   "ttyPCH"
 
#define PCH_UART_NR   4
 
#define PCH_UART_HANDLED_RX_INT   (1<<((PCH_UART_HANDLED_RX_INT_SHIFT)<<1))
 
#define PCH_UART_HANDLED_TX_INT   (1<<((PCH_UART_HANDLED_TX_INT_SHIFT)<<1))
 
#define PCH_UART_HANDLED_RX_ERR_INT
 
#define PCH_UART_HANDLED_RX_TRG_INT
 
#define PCH_UART_HANDLED_MS_INT   (1<<((PCH_UART_HANDLED_MS_INT_SHIFT)<<1))
 
#define PCH_UART_HANDLED_LS_INT   (1<<((PCH_UART_HANDLED_LS_INT_SHIFT)<<1))
 
#define PCH_UART_RBR   0x00
 
#define PCH_UART_THR   0x00
 
#define PCH_UART_IER_MASK
 
#define PCH_UART_IER_ERBFI   0x00000001
 
#define PCH_UART_IER_ETBEI   0x00000002
 
#define PCH_UART_IER_ELSI   0x00000004
 
#define PCH_UART_IER_EDSSI   0x00000008
 
#define PCH_UART_IIR_IP   0x00000001
 
#define PCH_UART_IIR_IID   0x00000006
 
#define PCH_UART_IIR_MSI   0x00000000
 
#define PCH_UART_IIR_TRI   0x00000002
 
#define PCH_UART_IIR_RRI   0x00000004
 
#define PCH_UART_IIR_REI   0x00000006
 
#define PCH_UART_IIR_TOI   0x00000008
 
#define PCH_UART_IIR_FIFO256   0x00000020
 
#define PCH_UART_IIR_FIFO64   PCH_UART_IIR_FIFO256
 
#define PCH_UART_IIR_FE   0x000000C0
 
#define PCH_UART_FCR_FIFOE   0x00000001
 
#define PCH_UART_FCR_RFR   0x00000002
 
#define PCH_UART_FCR_TFR   0x00000004
 
#define PCH_UART_FCR_DMS   0x00000008
 
#define PCH_UART_FCR_FIFO256   0x00000020
 
#define PCH_UART_FCR_RFTL   0x000000C0
 
#define PCH_UART_FCR_RFTL1   0x00000000
 
#define PCH_UART_FCR_RFTL64   0x00000040
 
#define PCH_UART_FCR_RFTL128   0x00000080
 
#define PCH_UART_FCR_RFTL224   0x000000C0
 
#define PCH_UART_FCR_RFTL16   PCH_UART_FCR_RFTL64
 
#define PCH_UART_FCR_RFTL32   PCH_UART_FCR_RFTL128
 
#define PCH_UART_FCR_RFTL56   PCH_UART_FCR_RFTL224
 
#define PCH_UART_FCR_RFTL4   PCH_UART_FCR_RFTL64
 
#define PCH_UART_FCR_RFTL8   PCH_UART_FCR_RFTL128
 
#define PCH_UART_FCR_RFTL14   PCH_UART_FCR_RFTL224
 
#define PCH_UART_FCR_RFTL_SHIFT   6
 
#define PCH_UART_LCR_WLS   0x00000003
 
#define PCH_UART_LCR_STB   0x00000004
 
#define PCH_UART_LCR_PEN   0x00000008
 
#define PCH_UART_LCR_EPS   0x00000010
 
#define PCH_UART_LCR_SP   0x00000020
 
#define PCH_UART_LCR_SB   0x00000040
 
#define PCH_UART_LCR_DLAB   0x00000080
 
#define PCH_UART_LCR_NP   0x00000000
 
#define PCH_UART_LCR_OP   PCH_UART_LCR_PEN
 
#define PCH_UART_LCR_EP   (PCH_UART_LCR_PEN | PCH_UART_LCR_EPS)
 
#define PCH_UART_LCR_1P   (PCH_UART_LCR_PEN | PCH_UART_LCR_SP)
 
#define PCH_UART_LCR_0P
 
#define PCH_UART_LCR_5BIT   0x00000000
 
#define PCH_UART_LCR_6BIT   0x00000001
 
#define PCH_UART_LCR_7BIT   0x00000002
 
#define PCH_UART_LCR_8BIT   0x00000003
 
#define PCH_UART_MCR_DTR   0x00000001
 
#define PCH_UART_MCR_RTS   0x00000002
 
#define PCH_UART_MCR_OUT   0x0000000C
 
#define PCH_UART_MCR_LOOP   0x00000010
 
#define PCH_UART_MCR_AFE   0x00000020
 
#define PCH_UART_LSR_DR   0x00000001
 
#define PCH_UART_LSR_ERR   (1<<7)
 
#define PCH_UART_MSR_DCTS   0x00000001
 
#define PCH_UART_MSR_DDSR   0x00000002
 
#define PCH_UART_MSR_TERI   0x00000004
 
#define PCH_UART_MSR_DDCD   0x00000008
 
#define PCH_UART_MSR_CTS   0x00000010
 
#define PCH_UART_MSR_DSR   0x00000020
 
#define PCH_UART_MSR_RI   0x00000040
 
#define PCH_UART_MSR_DCD   0x00000080
 
#define PCH_UART_MSR_DELTA
 
#define PCH_UART_DLL   0x00
 
#define PCH_UART_DLM   0x01
 
#define PCH_UART_BRCSR   0x0E
 
#define PCH_UART_IID_RLS   (PCH_UART_IIR_REI)
 
#define PCH_UART_IID_RDR   (PCH_UART_IIR_RRI)
 
#define PCH_UART_IID_RDR_TO   (PCH_UART_IIR_RRI | PCH_UART_IIR_TOI)
 
#define PCH_UART_IID_THRE   (PCH_UART_IIR_TRI)
 
#define PCH_UART_IID_MS   (PCH_UART_IIR_MSI)
 
#define PCH_UART_HAL_PARITY_NONE   (PCH_UART_LCR_NP)
 
#define PCH_UART_HAL_PARITY_ODD   (PCH_UART_LCR_OP)
 
#define PCH_UART_HAL_PARITY_EVEN   (PCH_UART_LCR_EP)
 
#define PCH_UART_HAL_PARITY_FIX1   (PCH_UART_LCR_1P)
 
#define PCH_UART_HAL_PARITY_FIX0   (PCH_UART_LCR_0P)
 
#define PCH_UART_HAL_5BIT   (PCH_UART_LCR_5BIT)
 
#define PCH_UART_HAL_6BIT   (PCH_UART_LCR_6BIT)
 
#define PCH_UART_HAL_7BIT   (PCH_UART_LCR_7BIT)
 
#define PCH_UART_HAL_8BIT   (PCH_UART_LCR_8BIT)
 
#define PCH_UART_HAL_STB1   0
 
#define PCH_UART_HAL_STB2   (PCH_UART_LCR_STB)
 
#define PCH_UART_HAL_CLR_TX_FIFO   (PCH_UART_FCR_TFR)
 
#define PCH_UART_HAL_CLR_RX_FIFO   (PCH_UART_FCR_RFR)
 
#define PCH_UART_HAL_CLR_ALL_FIFO
 
#define PCH_UART_HAL_DMA_MODE0   0
 
#define PCH_UART_HAL_FIFO_DIS   0
 
#define PCH_UART_HAL_FIFO16   (PCH_UART_FCR_FIFOE)
 
#define PCH_UART_HAL_FIFO256
 
#define PCH_UART_HAL_FIFO64   (PCH_UART_HAL_FIFO256)
 
#define PCH_UART_HAL_TRIGGER1   (PCH_UART_FCR_RFTL1)
 
#define PCH_UART_HAL_TRIGGER64   (PCH_UART_FCR_RFTL64)
 
#define PCH_UART_HAL_TRIGGER128   (PCH_UART_FCR_RFTL128)
 
#define PCH_UART_HAL_TRIGGER224   (PCH_UART_FCR_RFTL224)
 
#define PCH_UART_HAL_TRIGGER16   (PCH_UART_FCR_RFTL16)
 
#define PCH_UART_HAL_TRIGGER32   (PCH_UART_FCR_RFTL32)
 
#define PCH_UART_HAL_TRIGGER56   (PCH_UART_FCR_RFTL56)
 
#define PCH_UART_HAL_TRIGGER4   (PCH_UART_FCR_RFTL4)
 
#define PCH_UART_HAL_TRIGGER8   (PCH_UART_FCR_RFTL8)
 
#define PCH_UART_HAL_TRIGGER14   (PCH_UART_FCR_RFTL14)
 
#define PCH_UART_HAL_TRIGGER_L   (PCH_UART_FCR_RFTL64)
 
#define PCH_UART_HAL_TRIGGER_M   (PCH_UART_FCR_RFTL128)
 
#define PCH_UART_HAL_TRIGGER_H   (PCH_UART_FCR_RFTL224)
 
#define PCH_UART_HAL_RX_INT   (PCH_UART_IER_ERBFI)
 
#define PCH_UART_HAL_TX_INT   (PCH_UART_IER_ETBEI)
 
#define PCH_UART_HAL_RX_ERR_INT   (PCH_UART_IER_ELSI)
 
#define PCH_UART_HAL_MS_INT   (PCH_UART_IER_EDSSI)
 
#define PCH_UART_HAL_ALL_INT   (PCH_UART_IER_MASK)
 
#define PCH_UART_HAL_DTR   (PCH_UART_MCR_DTR)
 
#define PCH_UART_HAL_RTS   (PCH_UART_MCR_RTS)
 
#define PCH_UART_HAL_OUT   (PCH_UART_MCR_OUT)
 
#define PCH_UART_HAL_LOOP   (PCH_UART_MCR_LOOP)
 
#define PCH_UART_HAL_AFE   (PCH_UART_MCR_AFE)
 
#define PCI_VENDOR_ID_ROHM   0x10DB
 
#define BOTH_EMPTY   (UART_LSR_TEMT | UART_LSR_THRE)
 
#define DEFAULT_UARTCLK   1843200 /* 1.8432 MHz */
 
#define CMITC_UARTCLK   192000000 /* 192.0000 MHz */
 
#define FRI2_64_UARTCLK   64000000 /* 64.0000 MHz */
 
#define FRI2_48_UARTCLK   48000000 /* 48.0000 MHz */
 
#define NTC1_UARTCLK   64000000 /* 64.0000 MHz */
 
#define PCH_CONSOLE   NULL
 
#define pch_uart_pci_suspend   NULL
 
#define pch_uart_pci_resume   NULL
 

Enumerations

enum  {
  PCH_UART_HANDLED_RX_INT_SHIFT, PCH_UART_HANDLED_TX_INT_SHIFT, PCH_UART_HANDLED_RX_ERR_INT_SHIFT, PCH_UART_HANDLED_RX_TRG_INT_SHIFT,
  PCH_UART_HANDLED_MS_INT_SHIFT, PCH_UART_HANDLED_LS_INT_SHIFT
}
 
enum  { PCH_UART_8LINE, PCH_UART_2LINE }
 
enum  pch_uart_num_t {
  pch_et20t_uart0 = 0, pch_et20t_uart1, pch_et20t_uart2, pch_et20t_uart3,
  pch_ml7213_uart0, pch_ml7213_uart1, pch_ml7213_uart2, pch_ml7223_uart0,
  pch_ml7223_uart1, pch_ml7831_uart0, pch_ml7831_uart1
}
 

Functions

 module_init (pch_uart_module_init)
 
 module_exit (pch_uart_module_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("Intel EG20T PCH UART PCI Driver")
 
 module_param (default_baud, uint, S_IRUGO)
 
 MODULE_PARM_DESC (default_baud,"Default BAUD for initial driver state and console (default 9600)")
 
 module_param (user_uartclk, uint, S_IRUGO)
 
 MODULE_PARM_DESC (user_uartclk,"Override UART default or board specific UART clock")
 

Macro Definition Documentation

#define BOTH_EMPTY   (UART_LSR_TEMT | UART_LSR_THRE)

Definition at line 210 of file pch_uart.c.

#define CMITC_UARTCLK   192000000 /* 192.0000 MHz */

Definition at line 213 of file pch_uart.c.

#define DEFAULT_UARTCLK   1843200 /* 1.8432 MHz */

Definition at line 212 of file pch_uart.c.

#define FRI2_48_UARTCLK   48000000 /* 48.0000 MHz */

Definition at line 215 of file pch_uart.c.

#define FRI2_64_UARTCLK   64000000 /* 64.0000 MHz */

Definition at line 214 of file pch_uart.c.

#define NTC1_UARTCLK   64000000 /* 64.0000 MHz */

Definition at line 216 of file pch_uart.c.

#define PCH_CONSOLE   NULL

Definition at line 1643 of file pch_uart.c.

#define PCH_UART_BRCSR   0x0E

Definition at line 151 of file pch_uart.c.

#define PCH_UART_DLL   0x00

Definition at line 148 of file pch_uart.c.

#define PCH_UART_DLM   0x01

Definition at line 149 of file pch_uart.c.

#define PCH_UART_DRIVER_DEVICE   "ttyPCH"

Definition at line 50 of file pch_uart.c.

#define PCH_UART_FCR_DMS   0x00000008

Definition at line 93 of file pch_uart.c.

#define PCH_UART_FCR_FIFO256   0x00000020

Definition at line 94 of file pch_uart.c.

#define PCH_UART_FCR_FIFOE   0x00000001

Definition at line 90 of file pch_uart.c.

#define PCH_UART_FCR_RFR   0x00000002

Definition at line 91 of file pch_uart.c.

#define PCH_UART_FCR_RFTL   0x000000C0

Definition at line 95 of file pch_uart.c.

#define PCH_UART_FCR_RFTL1   0x00000000

Definition at line 97 of file pch_uart.c.

#define PCH_UART_FCR_RFTL128   0x00000080

Definition at line 99 of file pch_uart.c.

#define PCH_UART_FCR_RFTL14   PCH_UART_FCR_RFTL224

Definition at line 106 of file pch_uart.c.

#define PCH_UART_FCR_RFTL16   PCH_UART_FCR_RFTL64

Definition at line 101 of file pch_uart.c.

#define PCH_UART_FCR_RFTL224   0x000000C0

Definition at line 100 of file pch_uart.c.

#define PCH_UART_FCR_RFTL32   PCH_UART_FCR_RFTL128

Definition at line 102 of file pch_uart.c.

#define PCH_UART_FCR_RFTL4   PCH_UART_FCR_RFTL64

Definition at line 104 of file pch_uart.c.

#define PCH_UART_FCR_RFTL56   PCH_UART_FCR_RFTL224

Definition at line 103 of file pch_uart.c.

#define PCH_UART_FCR_RFTL64   0x00000040

Definition at line 98 of file pch_uart.c.

#define PCH_UART_FCR_RFTL8   PCH_UART_FCR_RFTL128

Definition at line 105 of file pch_uart.c.

#define PCH_UART_FCR_RFTL_SHIFT   6

Definition at line 107 of file pch_uart.c.

#define PCH_UART_FCR_TFR   0x00000004

Definition at line 92 of file pch_uart.c.

#define PCH_UART_HAL_5BIT   (PCH_UART_LCR_5BIT)

Definition at line 164 of file pch_uart.c.

#define PCH_UART_HAL_6BIT   (PCH_UART_LCR_6BIT)

Definition at line 165 of file pch_uart.c.

#define PCH_UART_HAL_7BIT   (PCH_UART_LCR_7BIT)

Definition at line 166 of file pch_uart.c.

#define PCH_UART_HAL_8BIT   (PCH_UART_LCR_8BIT)

Definition at line 167 of file pch_uart.c.

#define PCH_UART_HAL_AFE   (PCH_UART_MCR_AFE)

Definition at line 206 of file pch_uart.c.

#define PCH_UART_HAL_ALL_INT   (PCH_UART_IER_MASK)

Definition at line 200 of file pch_uart.c.

#define PCH_UART_HAL_CLR_ALL_FIFO
Value:
PCH_UART_HAL_CLR_RX_FIFO)

Definition at line 173 of file pch_uart.c.

#define PCH_UART_HAL_CLR_RX_FIFO   (PCH_UART_FCR_RFR)

Definition at line 172 of file pch_uart.c.

#define PCH_UART_HAL_CLR_TX_FIFO   (PCH_UART_FCR_TFR)

Definition at line 171 of file pch_uart.c.

#define PCH_UART_HAL_DMA_MODE0   0

Definition at line 176 of file pch_uart.c.

#define PCH_UART_HAL_DTR   (PCH_UART_MCR_DTR)

Definition at line 202 of file pch_uart.c.

#define PCH_UART_HAL_FIFO16   (PCH_UART_FCR_FIFOE)

Definition at line 178 of file pch_uart.c.

#define PCH_UART_HAL_FIFO256
Value:
PCH_UART_FCR_FIFO256)

Definition at line 179 of file pch_uart.c.

#define PCH_UART_HAL_FIFO64   (PCH_UART_HAL_FIFO256)

Definition at line 181 of file pch_uart.c.

#define PCH_UART_HAL_FIFO_DIS   0

Definition at line 177 of file pch_uart.c.

#define PCH_UART_HAL_LOOP   (PCH_UART_MCR_LOOP)

Definition at line 205 of file pch_uart.c.

#define PCH_UART_HAL_MS_INT   (PCH_UART_IER_EDSSI)

Definition at line 199 of file pch_uart.c.

#define PCH_UART_HAL_OUT   (PCH_UART_MCR_OUT)

Definition at line 204 of file pch_uart.c.

#define PCH_UART_HAL_PARITY_EVEN   (PCH_UART_LCR_EP)

Definition at line 161 of file pch_uart.c.

#define PCH_UART_HAL_PARITY_FIX0   (PCH_UART_LCR_0P)

Definition at line 163 of file pch_uart.c.

#define PCH_UART_HAL_PARITY_FIX1   (PCH_UART_LCR_1P)

Definition at line 162 of file pch_uart.c.

#define PCH_UART_HAL_PARITY_NONE   (PCH_UART_LCR_NP)

Definition at line 159 of file pch_uart.c.

#define PCH_UART_HAL_PARITY_ODD   (PCH_UART_LCR_OP)

Definition at line 160 of file pch_uart.c.

#define PCH_UART_HAL_RTS   (PCH_UART_MCR_RTS)

Definition at line 203 of file pch_uart.c.

#define PCH_UART_HAL_RX_ERR_INT   (PCH_UART_IER_ELSI)

Definition at line 198 of file pch_uart.c.

#define PCH_UART_HAL_RX_INT   (PCH_UART_IER_ERBFI)

Definition at line 196 of file pch_uart.c.

#define PCH_UART_HAL_STB1   0

Definition at line 168 of file pch_uart.c.

#define PCH_UART_HAL_STB2   (PCH_UART_LCR_STB)

Definition at line 169 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER1   (PCH_UART_FCR_RFTL1)

Definition at line 182 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER128   (PCH_UART_FCR_RFTL128)

Definition at line 184 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER14   (PCH_UART_FCR_RFTL14)

Definition at line 191 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER16   (PCH_UART_FCR_RFTL16)

Definition at line 186 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER224   (PCH_UART_FCR_RFTL224)

Definition at line 185 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER32   (PCH_UART_FCR_RFTL32)

Definition at line 187 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER4   (PCH_UART_FCR_RFTL4)

Definition at line 189 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER56   (PCH_UART_FCR_RFTL56)

Definition at line 188 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER64   (PCH_UART_FCR_RFTL64)

Definition at line 183 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER8   (PCH_UART_FCR_RFTL8)

Definition at line 190 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER_H   (PCH_UART_FCR_RFTL224)

Definition at line 194 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER_L   (PCH_UART_FCR_RFTL64)

Definition at line 192 of file pch_uart.c.

#define PCH_UART_HAL_TRIGGER_M   (PCH_UART_FCR_RFTL128)

Definition at line 193 of file pch_uart.c.

#define PCH_UART_HAL_TX_INT   (PCH_UART_IER_ETBEI)

Definition at line 197 of file pch_uart.c.

#define PCH_UART_HANDLED_LS_INT   (1<<((PCH_UART_HANDLED_LS_INT_SHIFT)<<1))

Definition at line 67 of file pch_uart.c.

#define PCH_UART_HANDLED_MS_INT   (1<<((PCH_UART_HANDLED_MS_INT_SHIFT)<<1))

Definition at line 65 of file pch_uart.c.

#define PCH_UART_HANDLED_RX_ERR_INT
Value:
(1<<((\
PCH_UART_HANDLED_RX_ERR_INT_SHIFT)<<1))

Definition at line 61 of file pch_uart.c.

#define PCH_UART_HANDLED_RX_INT   (1<<((PCH_UART_HANDLED_RX_INT_SHIFT)<<1))

Definition at line 59 of file pch_uart.c.

#define PCH_UART_HANDLED_RX_TRG_INT
Value:
(1<<((\
PCH_UART_HANDLED_RX_TRG_INT_SHIFT)<<1))

Definition at line 63 of file pch_uart.c.

#define PCH_UART_HANDLED_TX_INT   (1<<((PCH_UART_HANDLED_TX_INT_SHIFT)<<1))

Definition at line 60 of file pch_uart.c.

#define PCH_UART_IER_EDSSI   0x00000008

Definition at line 77 of file pch_uart.c.

#define PCH_UART_IER_ELSI   0x00000004

Definition at line 76 of file pch_uart.c.

#define PCH_UART_IER_ERBFI   0x00000001

Definition at line 74 of file pch_uart.c.

#define PCH_UART_IER_ETBEI   0x00000002

Definition at line 75 of file pch_uart.c.

#define PCH_UART_IER_MASK
Value:

Definition at line 72 of file pch_uart.c.

#define PCH_UART_IID_MS   (PCH_UART_IIR_MSI)

Definition at line 157 of file pch_uart.c.

#define PCH_UART_IID_RDR   (PCH_UART_IIR_RRI)

Definition at line 154 of file pch_uart.c.

#define PCH_UART_IID_RDR_TO   (PCH_UART_IIR_RRI | PCH_UART_IIR_TOI)

Definition at line 155 of file pch_uart.c.

#define PCH_UART_IID_RLS   (PCH_UART_IIR_REI)

Definition at line 153 of file pch_uart.c.

#define PCH_UART_IID_THRE   (PCH_UART_IIR_TRI)

Definition at line 156 of file pch_uart.c.

#define PCH_UART_IIR_FE   0x000000C0

Definition at line 88 of file pch_uart.c.

#define PCH_UART_IIR_FIFO256   0x00000020

Definition at line 86 of file pch_uart.c.

#define PCH_UART_IIR_FIFO64   PCH_UART_IIR_FIFO256

Definition at line 87 of file pch_uart.c.

#define PCH_UART_IIR_IID   0x00000006

Definition at line 80 of file pch_uart.c.

#define PCH_UART_IIR_IP   0x00000001

Definition at line 79 of file pch_uart.c.

#define PCH_UART_IIR_MSI   0x00000000

Definition at line 81 of file pch_uart.c.

#define PCH_UART_IIR_REI   0x00000006

Definition at line 84 of file pch_uart.c.

#define PCH_UART_IIR_RRI   0x00000004

Definition at line 83 of file pch_uart.c.

#define PCH_UART_IIR_TOI   0x00000008

Definition at line 85 of file pch_uart.c.

#define PCH_UART_IIR_TRI   0x00000002

Definition at line 82 of file pch_uart.c.

#define PCH_UART_LCR_0P
Value:
PCH_UART_LCR_SP)

Definition at line 120 of file pch_uart.c.

#define PCH_UART_LCR_1P   (PCH_UART_LCR_PEN | PCH_UART_LCR_SP)

Definition at line 119 of file pch_uart.c.

#define PCH_UART_LCR_5BIT   0x00000000

Definition at line 123 of file pch_uart.c.

#define PCH_UART_LCR_6BIT   0x00000001

Definition at line 124 of file pch_uart.c.

#define PCH_UART_LCR_7BIT   0x00000002

Definition at line 125 of file pch_uart.c.

#define PCH_UART_LCR_8BIT   0x00000003

Definition at line 126 of file pch_uart.c.

#define PCH_UART_LCR_DLAB   0x00000080

Definition at line 115 of file pch_uart.c.

#define PCH_UART_LCR_EP   (PCH_UART_LCR_PEN | PCH_UART_LCR_EPS)

Definition at line 118 of file pch_uart.c.

#define PCH_UART_LCR_EPS   0x00000010

Definition at line 112 of file pch_uart.c.

#define PCH_UART_LCR_NP   0x00000000

Definition at line 116 of file pch_uart.c.

#define PCH_UART_LCR_OP   PCH_UART_LCR_PEN

Definition at line 117 of file pch_uart.c.

#define PCH_UART_LCR_PEN   0x00000008

Definition at line 111 of file pch_uart.c.

#define PCH_UART_LCR_SB   0x00000040

Definition at line 114 of file pch_uart.c.

#define PCH_UART_LCR_SP   0x00000020

Definition at line 113 of file pch_uart.c.

#define PCH_UART_LCR_STB   0x00000004

Definition at line 110 of file pch_uart.c.

#define PCH_UART_LCR_WLS   0x00000003

Definition at line 109 of file pch_uart.c.

#define PCH_UART_LSR_DR   0x00000001

Definition at line 134 of file pch_uart.c.

#define PCH_UART_LSR_ERR   (1<<7)

Definition at line 135 of file pch_uart.c.

#define PCH_UART_MCR_AFE   0x00000020

Definition at line 132 of file pch_uart.c.

#define PCH_UART_MCR_DTR   0x00000001

Definition at line 128 of file pch_uart.c.

#define PCH_UART_MCR_LOOP   0x00000010

Definition at line 131 of file pch_uart.c.

#define PCH_UART_MCR_OUT   0x0000000C

Definition at line 130 of file pch_uart.c.

#define PCH_UART_MCR_RTS   0x00000002

Definition at line 129 of file pch_uart.c.

#define PCH_UART_MSR_CTS   0x00000010

Definition at line 141 of file pch_uart.c.

#define PCH_UART_MSR_DCD   0x00000080

Definition at line 144 of file pch_uart.c.

#define PCH_UART_MSR_DCTS   0x00000001

Definition at line 137 of file pch_uart.c.

#define PCH_UART_MSR_DDCD   0x00000008

Definition at line 140 of file pch_uart.c.

#define PCH_UART_MSR_DDSR   0x00000002

Definition at line 138 of file pch_uart.c.

#define PCH_UART_MSR_DELTA
Value:

Definition at line 145 of file pch_uart.c.

#define PCH_UART_MSR_DSR   0x00000020

Definition at line 142 of file pch_uart.c.

#define PCH_UART_MSR_RI   0x00000040

Definition at line 143 of file pch_uart.c.

#define PCH_UART_MSR_TERI   0x00000004

Definition at line 139 of file pch_uart.c.

#define PCH_UART_NR   4

Definition at line 57 of file pch_uart.c.

#define pch_uart_pci_resume   NULL

Definition at line 1813 of file pch_uart.c.

#define pch_uart_pci_suspend   NULL

Definition at line 1812 of file pch_uart.c.

#define PCH_UART_RBR   0x00

Definition at line 69 of file pch_uart.c.

#define PCH_UART_THR   0x00

Definition at line 70 of file pch_uart.c.

#define PCI_VENDOR_ID_ROHM   0x10DB

Definition at line 208 of file pch_uart.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
PCH_UART_HANDLED_RX_INT_SHIFT 
PCH_UART_HANDLED_TX_INT_SHIFT 
PCH_UART_HANDLED_RX_ERR_INT_SHIFT 
PCH_UART_HANDLED_RX_TRG_INT_SHIFT 
PCH_UART_HANDLED_MS_INT_SHIFT 
PCH_UART_HANDLED_LS_INT_SHIFT 

Definition at line 36 of file pch_uart.c.

anonymous enum
Enumerator:
PCH_UART_8LINE 
PCH_UART_2LINE 

Definition at line 45 of file pch_uart.c.

Enumerator:
pch_et20t_uart0 
pch_et20t_uart1 
pch_et20t_uart2 
pch_et20t_uart3 
pch_ml7213_uart0 
pch_ml7213_uart1 
pch_ml7213_uart2 
pch_ml7223_uart0 
pch_ml7223_uart1 
pch_ml7831_uart0 
pch_ml7831_uart1 

Definition at line 271 of file pch_uart.c.

Function Documentation

MODULE_DESCRIPTION ( "Intel EG20T PCH UART PCI Driver"  )
module_exit ( pch_uart_module_exit  )
module_init ( pch_uart_module_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( default_baud  ,
uint  ,
S_IRUGO   
)
module_param ( user_uartclk  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( default_baud  ,
"Default BAUD for initial driver state and console (default 9600)"   
)
MODULE_PARM_DESC ( user_uartclk  ,
"Override UART default or board specific UART clock  
)