Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | uart_cpm_port |
Macros | |
#define | SERIAL_CPM_MAJOR 204 |
#define | SERIAL_CPM_MINOR 46 |
#define | IS_SMC(pinfo) (pinfo->flags & FLAG_SMC) |
#define | IS_DISCARDING(pinfo) (pinfo->flags & FLAG_DISCARDING) |
#define | FLAG_DISCARDING 0x00000004 /* when set, don't discard */ |
#define | FLAG_SMC 0x00000002 |
#define | FLAG_CONSOLE 0x00000001 |
#define | UART_SMC1 fsid_smc1_uart |
#define | UART_SMC2 fsid_smc2_uart |
#define | UART_SCC1 fsid_scc1_uart |
#define | UART_SCC2 fsid_scc2_uart |
#define | UART_SCC3 fsid_scc3_uart |
#define | UART_SCC4 fsid_scc4_uart |
#define | UART_NR fs_uart_nr |
#define | RX_NUM_FIFO 4 |
#define | RX_BUF_SIZE 32 |
#define | TX_NUM_FIFO 4 |
#define | TX_BUF_SIZE 32 |
#define | SCC_WAIT_CLOSING 100 |
#define | GPIO_CTS 0 |
#define | GPIO_RTS 1 |
#define | GPIO_DCD 2 |
#define | GPIO_DSR 3 |
#define | GPIO_DTR 4 |
#define | GPIO_RI 5 |
#define | NUM_GPIOS (GPIO_RI+1) |
Functions | |
void | cpm_line_cr_cmd (struct uart_cpm_port *port, int cmd) |
void __iomem * | cpm_uart_map_pram (struct uart_cpm_port *port, struct device_node *np) |
void | cpm_uart_unmap_pram (struct uart_cpm_port *port, void __iomem *pram) |
int | cpm_uart_init_portdesc (void) |
int | cpm_uart_allocbuf (struct uart_cpm_port *pinfo, unsigned int is_con) |
void | cpm_uart_freebuf (struct uart_cpm_port *pinfo) |
void | smc1_lineif (struct uart_cpm_port *pinfo) |
void | smc2_lineif (struct uart_cpm_port *pinfo) |
void | scc1_lineif (struct uart_cpm_port *pinfo) |
void | scc2_lineif (struct uart_cpm_port *pinfo) |
void | scc3_lineif (struct uart_cpm_port *pinfo) |
void | scc4_lineif (struct uart_cpm_port *pinfo) |
Variables | |
int | cpm_uart_nr |
struct uart_cpm_port | cpm_uart_ports [UART_NR] |
#define FLAG_CONSOLE 0x00000001 |
Definition at line 33 of file cpm_uart.h.
#define FLAG_DISCARDING 0x00000004 /* when set, don't discard */ |
Definition at line 31 of file cpm_uart.h.
#define FLAG_SMC 0x00000002 |
Definition at line 32 of file cpm_uart.h.
#define GPIO_CTS 0 |
Definition at line 51 of file cpm_uart.h.
#define GPIO_DCD 2 |
Definition at line 53 of file cpm_uart.h.
#define GPIO_DSR 3 |
Definition at line 54 of file cpm_uart.h.
#define GPIO_DTR 4 |
Definition at line 55 of file cpm_uart.h.
#define GPIO_RI 5 |
Definition at line 56 of file cpm_uart.h.
#define GPIO_RTS 1 |
Definition at line 52 of file cpm_uart.h.
#define IS_DISCARDING | ( | pinfo | ) | (pinfo->flags & FLAG_DISCARDING) |
Definition at line 30 of file cpm_uart.h.
#define NUM_GPIOS (GPIO_RI+1) |
Definition at line 58 of file cpm_uart.h.
#define RX_BUF_SIZE 32 |
Definition at line 45 of file cpm_uart.h.
#define RX_NUM_FIFO 4 |
Definition at line 44 of file cpm_uart.h.
#define SCC_WAIT_CLOSING 100 |
Definition at line 49 of file cpm_uart.h.
#define SERIAL_CPM_MAJOR 204 |
Definition at line 26 of file cpm_uart.h.
#define SERIAL_CPM_MINOR 46 |
Definition at line 27 of file cpm_uart.h.
#define TX_BUF_SIZE 32 |
Definition at line 47 of file cpm_uart.h.
#define TX_NUM_FIFO 4 |
Definition at line 46 of file cpm_uart.h.
#define UART_NR fs_uart_nr |
Definition at line 42 of file cpm_uart.h.
#define UART_SCC1 fsid_scc1_uart |
Definition at line 37 of file cpm_uart.h.
#define UART_SCC2 fsid_scc2_uart |
Definition at line 38 of file cpm_uart.h.
#define UART_SCC3 fsid_scc3_uart |
Definition at line 39 of file cpm_uart.h.
#define UART_SCC4 fsid_scc4_uart |
Definition at line 40 of file cpm_uart.h.
#define UART_SMC1 fsid_smc1_uart |
Definition at line 35 of file cpm_uart.h.
#define UART_SMC2 fsid_smc2_uart |
Definition at line 36 of file cpm_uart.h.
void cpm_line_cr_cmd | ( | struct uart_cpm_port * | port, |
int | cmd | ||
) |
Definition at line 53 of file cpm_uart_cpm1.c.
int cpm_uart_allocbuf | ( | struct uart_cpm_port * | pinfo, |
unsigned int | is_con | ||
) |
Definition at line 75 of file cpm_uart_cpm1.c.
void cpm_uart_freebuf | ( | struct uart_cpm_port * | pinfo | ) |
Definition at line 127 of file cpm_uart_cpm1.c.
void __iomem* cpm_uart_map_pram | ( | struct uart_cpm_port * | port, |
struct device_node * | np | ||
) |
Definition at line 58 of file cpm_uart_cpm1.c.
void cpm_uart_unmap_pram | ( | struct uart_cpm_port * | port, |
void __iomem * | pram | ||
) |
Definition at line 64 of file cpm_uart_cpm1.c.
void scc1_lineif | ( | struct uart_cpm_port * | pinfo | ) |
void scc2_lineif | ( | struct uart_cpm_port * | pinfo | ) |
void scc3_lineif | ( | struct uart_cpm_port * | pinfo | ) |
void scc4_lineif | ( | struct uart_cpm_port * | pinfo | ) |
void smc1_lineif | ( | struct uart_cpm_port * | pinfo | ) |
void smc2_lineif | ( | struct uart_cpm_port * | pinfo | ) |
int cpm_uart_nr |
struct uart_cpm_port cpm_uart_ports[UART_NR] |
Definition at line 1139 of file cpm_uart_core.c.