Linux Kernel
3.7.1
|
#include <linux/bitops.h>
Go to the source code of this file.
Data Structures | |
struct | sirfsoc_baudrate_to_regv |
struct | sirfsoc_uart_port |
Definition at line 172 of file sirfsoc_uart.h.
Definition at line 173 of file sirfsoc_uart.h.
Definition at line 174 of file sirfsoc_uart.h.
#define SIRF_BAUD_RATE_SUPPORT_NR 18 |
Definition at line 152 of file sirfsoc_uart.h.
#define SIRF_IOCLK_DIV_MASK 0xffff |
Definition at line 150 of file sirfsoc_uart.h.
#define SIRF_IOCLK_DIV_MAX 0xffff |
Definition at line 148 of file sirfsoc_uart.h.
#define SIRF_MAX_SAMPLE_DIV 0x3f |
Definition at line 147 of file sirfsoc_uart.h.
#define SIRF_MIN_SAMPLE_DIV 0xf |
Definition at line 146 of file sirfsoc_uart.h.
#define SIRF_SAMPLE_DIV_MASK 0x3f0000 |
Definition at line 151 of file sirfsoc_uart.h.
#define SIRF_SAMPLE_DIV_SHIFT 16 |
Definition at line 149 of file sirfsoc_uart.h.
#define SIRFSOC_PORT_TYPE 0xa5 |
Definition at line 143 of file sirfsoc_uart.h.
#define SIRFSOC_UART_IO_RX_MAX_CNT 256 |
Definition at line 184 of file sirfsoc_uart.h.
#define SIRFSOC_UART_IO_TX_REASONABLE_CNT 6 |
Definition at line 185 of file sirfsoc_uart.h.
#define SIRFSOC_UART_MAJOR 0 |
Definition at line 138 of file sirfsoc_uart.h.
#define SIRFSOC_UART_MINOR 0 |
Definition at line 139 of file sirfsoc_uart.h.
#define SIRFSOC_UART_NAME "ttySiRF" |
Definition at line 137 of file sirfsoc_uart.h.
#define SIRFSOC_UART_NR 3 |
Definition at line 142 of file sirfsoc_uart.h.
#define SIRFSOC_UART_RX_TIMEOUT | ( | br, | |
to | |||
) | (((br) * (((to) + 999) / 1000)) / 1000) |
Definition at line 54 of file sirfsoc_uart.h.
#define SIRFUART_AFC_CTRL 0x0140 |
Definition at line 30 of file sirfsoc_uart.h.
#define SIRFUART_AFC_CTRL_RX_THD 0x70 |
Definition at line 169 of file sirfsoc_uart.h.
#define SIRFUART_AFC_RX_EN BIT(8) |
Definition at line 60 of file sirfsoc_uart.h.
#define SIRFUART_AFC_RX_THD_MASK 0x000000FF |
Definition at line 59 of file sirfsoc_uart.h.
#define SIRFUART_AFC_TX_EN BIT(9) |
Definition at line 61 of file sirfsoc_uart.h.
#define SIRFUART_CTS_CHANGE BIT(14) |
Definition at line 100 of file sirfsoc_uart.h.
#define SIRFUART_CTS_CTRL BIT(10) |
Definition at line 62 of file sirfsoc_uart.h.
#define SIRFUART_CTS_IN_STATUS BIT(12) |
Definition at line 64 of file sirfsoc_uart.h.
#define SIRFUART_CTS_INT_EN BIT(14) |
Definition at line 82 of file sirfsoc_uart.h.
#define SIRFUART_DATA_BIT_LEN_5 BIT(0) |
Definition at line 35 of file sirfsoc_uart.h.
#define SIRFUART_DATA_BIT_LEN_6 1 |
Definition at line 36 of file sirfsoc_uart.h.
#define SIRFUART_DATA_BIT_LEN_7 2 |
Definition at line 37 of file sirfsoc_uart.h.
#define SIRFUART_DATA_BIT_LEN_8 3 |
Definition at line 38 of file sirfsoc_uart.h.
#define SIRFUART_DATA_BIT_LEN_MASK 0x3 |
Definition at line 34 of file sirfsoc_uart.h.
#define SIRFUART_DIVISOR 0x0050 |
Definition at line 13 of file sirfsoc_uart.h.
#define SIRFUART_DMA_IO_RX_DONE BIT(4) |
Definition at line 90 of file sirfsoc_uart.h.
#define SIRFUART_DMA_IO_TX_DONE BIT(5) |
Definition at line 91 of file sirfsoc_uart.h.
#define SIRFUART_DUMMY_READ BIT(16) |
Definition at line 52 of file sirfsoc_uart.h.
#define SIRFUART_ERR_INT_EN |
Definition at line 109 of file sirfsoc_uart.h.
#define SIRFUART_ERR_INT_STAT |
Definition at line 104 of file sirfsoc_uart.h.
#define SIRFUART_EVEN_BIT BIT(4) |
Definition at line 42 of file sirfsoc_uart.h.
Definition at line 181 of file sirfsoc_uart.h.
Definition at line 180 of file sirfsoc_uart.h.
Definition at line 179 of file sirfsoc_uart.h.
#define SIRFUART_FRM_ERR BIT(10) |
Definition at line 96 of file sirfsoc_uart.h.
#define SIRFUART_FRM_ERR_INT BIT(10) |
Definition at line 78 of file sirfsoc_uart.h.
#define SIRFUART_INT_EN 0x0054 |
Definition at line 14 of file sirfsoc_uart.h.
#define SIRFUART_INT_STATUS 0x0058 |
Definition at line 15 of file sirfsoc_uart.h.
#define SIRFUART_LINE_CTRL 0x0040 |
Definition at line 11 of file sirfsoc_uart.h.
#define SIRFUART_LOOP_BACK BIT(7) |
Definition at line 50 of file sirfsoc_uart.h.
#define SIRFUART_MAP_SIZE 0x200 |
Definition at line 141 of file sirfsoc_uart.h.
#define SIRFUART_PARITY_EN BIT(3) |
Definition at line 41 of file sirfsoc_uart.h.
#define SIRFUART_PARITY_ERR BIT(13) |
Definition at line 99 of file sirfsoc_uart.h.
#define SIRFUART_PARITY_ERR_INT BIT(13) |
Definition at line 81 of file sirfsoc_uart.h.
#define SIRFUART_PARITY_MASK (7 << 3) |
Definition at line 51 of file sirfsoc_uart.h.
#define SIRFUART_PLUG_IN BIT(16) |
Definition at line 102 of file sirfsoc_uart.h.
#define SIRFUART_PORT_NAME "sirfsoc-uart" |
Definition at line 140 of file sirfsoc_uart.h.
Definition at line 56 of file sirfsoc_uart.h.
#define SIRFUART_RECV_TIMEOUT_MASK (0xFFFF << 16) |
Definition at line 55 of file sirfsoc_uart.h.
#define SIRFUART_RTS_CHANGE BIT(15) |
Definition at line 101 of file sirfsoc_uart.h.
#define SIRFUART_RTS_CTRL BIT(11) |
Definition at line 63 of file sirfsoc_uart.h.
#define SIRFUART_RTS_INT_EN BIT(15) |
Definition at line 83 of file sirfsoc_uart.h.
#define SIRFUART_RTS_OUT_STATUS BIT(13) |
Definition at line 65 of file sirfsoc_uart.h.
#define SIRFUART_RX_DMA_IO_CTRL 0x0120 |
Definition at line 23 of file sirfsoc_uart.h.
#define SIRFUART_RX_DMA_IO_LEN 0x0124 |
Definition at line 24 of file sirfsoc_uart.h.
#define SIRFUART_RX_DONE BIT(0) |
Definition at line 86 of file sirfsoc_uart.h.
#define SIRFUART_RX_DONE_INT BIT(0) |
Definition at line 68 of file sirfsoc_uart.h.
#define SIRFUART_RX_EN 0x1 |
Definition at line 133 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_CTRL 0x0128 |
Definition at line 25 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_DATA 0x0138 |
Definition at line 29 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_LEVEL_CHK 0x012C |
Definition at line 26 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_OP 0x0130 |
Definition at line 27 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_RESET 0x1 |
Definition at line 126 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_START 0x2 |
Definition at line 127 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_STATUS 0x0134 |
Definition at line 28 of file sirfsoc_uart.h.
#define SIRFUART_RX_FIFO_STOP 0x0 |
Definition at line 125 of file sirfsoc_uart.h.
#define SIRFUART_RX_IO_DMA_INT BIT(4) |
Definition at line 72 of file sirfsoc_uart.h.
#define SIRFUART_RX_IO_INT_EN |
Definition at line 115 of file sirfsoc_uart.h.
#define SIRFUART_RX_MODE_DMA 0 |
Definition at line 130 of file sirfsoc_uart.h.
#define SIRFUART_RX_MODE_IO 1 |
Definition at line 131 of file sirfsoc_uart.h.
#define SIRFUART_RX_OFLOW BIT(2) |
Definition at line 88 of file sirfsoc_uart.h.
#define SIRFUART_RX_OFLOW_INT BIT(2) |
Definition at line 70 of file sirfsoc_uart.h.
#define SIRFUART_RX_TIMEOUT BIT(12) |
Definition at line 98 of file sirfsoc_uart.h.
#define SIRFUART_RX_TIMEOUT_INT BIT(12) |
Definition at line 80 of file sirfsoc_uart.h.
#define SIRFUART_RXD_BREAK BIT(11) |
Definition at line 97 of file sirfsoc_uart.h.
#define SIRFUART_RXD_BREAK_INT BIT(11) |
Definition at line 79 of file sirfsoc_uart.h.
#define SIRFUART_RXFIFO_FULL BIT(6) |
Definition at line 92 of file sirfsoc_uart.h.
#define SIRFUART_RXFIFO_FULL_INT BIT(6) |
Definition at line 74 of file sirfsoc_uart.h.
#define SIRFUART_RXFIFO_THD_INT BIT(8) |
Definition at line 76 of file sirfsoc_uart.h.
#define SIRFUART_RXFIFO_THD_REACH BIT(8) |
Definition at line 94 of file sirfsoc_uart.h.
#define SIRFUART_SET_BREAK BIT(6) |
Definition at line 49 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_EVEN BIT(3) |
Definition at line 45 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_MARK (5 << 3) |
Definition at line 47 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_MASK (7 << 3) |
Definition at line 43 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_NONE (0 << 3) |
Definition at line 44 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_ODD (3 << 3) |
Definition at line 46 of file sirfsoc_uart.h.
#define SIRFUART_STICK_BIT_SPACE (7 << 3) |
Definition at line 48 of file sirfsoc_uart.h.
#define SIRFUART_STOP_BIT_LEN_1 0 |
Definition at line 39 of file sirfsoc_uart.h.
#define SIRFUART_STOP_BIT_LEN_2 BIT(2) |
Definition at line 40 of file sirfsoc_uart.h.
#define SIRFUART_SWH_DMA_IO 0x0148 |
Definition at line 31 of file sirfsoc_uart.h.
#define SIRFUART_TX_ALL_EMPTY BIT(3) |
Definition at line 89 of file sirfsoc_uart.h.
#define SIRFUART_TX_ALLOUT_INT BIT(3) |
Definition at line 71 of file sirfsoc_uart.h.
#define SIRFUART_TX_DMA_IO_CTRL 0x0100 |
Definition at line 16 of file sirfsoc_uart.h.
#define SIRFUART_TX_DMA_IO_LEN 0x0104 |
Definition at line 17 of file sirfsoc_uart.h.
#define SIRFUART_TX_DONE BIT(1) |
Definition at line 87 of file sirfsoc_uart.h.
#define SIRFUART_TX_DONE_INT BIT(1) |
Definition at line 69 of file sirfsoc_uart.h.
#define SIRFUART_TX_EN 0x2 |
Definition at line 134 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_CTRL 0x0108 |
Definition at line 18 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_DATA 0x0118 |
Definition at line 22 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_LEVEL_CHK 0x010C |
Definition at line 19 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_OP 0x0110 |
Definition at line 20 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_RESET 0x1 |
Definition at line 123 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_START 0x2 |
Definition at line 124 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_STATUS 0x0114 |
Definition at line 21 of file sirfsoc_uart.h.
#define SIRFUART_TX_FIFO_STOP 0x0 |
Definition at line 122 of file sirfsoc_uart.h.
#define SIRFUART_TX_INT_EN SIRFUART_TXFIFO_EMPTY_INT |
Definition at line 114 of file sirfsoc_uart.h.
#define SIRFUART_TX_IO_DMA_INT BIT(5) |
Definition at line 73 of file sirfsoc_uart.h.
#define SIRFUART_TX_MODE_DMA 0 |
Definition at line 128 of file sirfsoc_uart.h.
#define SIRFUART_TX_MODE_IO 1 |
Definition at line 129 of file sirfsoc_uart.h.
#define SIRFUART_TX_RX_EN 0x004c |
Definition at line 12 of file sirfsoc_uart.h.
#define SIRFUART_TXFIFO_EMPTY BIT(7) |
Definition at line 93 of file sirfsoc_uart.h.
#define SIRFUART_TXFIFO_EMPTY_INT BIT(7) |
Definition at line 75 of file sirfsoc_uart.h.
#define SIRFUART_TXFIFO_THD_INT BIT(9) |
Definition at line 77 of file sirfsoc_uart.h.
#define SIRFUART_TXFIFO_THD_REACH BIT(9) |
Definition at line 95 of file sirfsoc_uart.h.
Definition at line 175 of file sirfsoc_uart.h.
Definition at line 176 of file sirfsoc_uart.h.