Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
io_16654.h File Reference

Go to the source code of this file.

Macros

#define THR   0
 
#define RDR   0
 
#define IER   1
 
#define FCR   2
 
#define ISR   2
 
#define LCR   3
 
#define MCR   4
 
#define LSR   5
 
#define MSR   6
 
#define SPR   7
 
#define DLL   8
 
#define DLM   9
 
#define EFR   10
 
#define XON1   12
 
#define XON2   13
 
#define XOFF1   14
 
#define XOFF2   15
 
#define NUM_16654_REGS   16
 
#define IS_REG_2ND_BANK(x)   ((x) >= 8)
 
#define IER_RX   0x01
 
#define IER_TX   0x02
 
#define IER_RXS   0x04
 
#define IER_MDM   0x08
 
#define IER_SLEEP   0x10
 
#define IER_XOFF   0x20
 
#define IER_RTS   0x40
 
#define IER_CTS   0x80
 
#define IER_ENABLE_ALL   0xFF
 
#define FCR_FIFO_EN   0x01
 
#define FCR_RXCLR   0x02
 
#define FCR_TXCLR   0x04
 
#define FCR_DMA_BLK   0x08
 
#define FCR_TX_LEVEL_MASK   0x30
 
#define FCR_TX_LEVEL_8   0x00
 
#define FCR_TX_LEVEL_16   0x10
 
#define FCR_TX_LEVEL_32   0x20
 
#define FCR_TX_LEVEL_56   0x30
 
#define FCR_RX_LEVEL_MASK   0xC0
 
#define FCR_RX_LEVEL_8   0x00
 
#define FCR_RX_LEVEL_16   0x40
 
#define FCR_RX_LEVEL_56   0x80
 
#define FCR_RX_LEVEL_60   0xC0
 
#define ISR_INT_MDM_STATUS   0x00
 
#define ISR_INT_NONE   0x01
 
#define ISR_INT_TXRDY   0x02
 
#define ISR_INT_RXRDY   0x04
 
#define ISR_INT_LINE_STATUS   0x06
 
#define ISR_INT_RX_TIMEOUT   0x0C
 
#define ISR_INT_RX_XOFF   0x10
 
#define ISR_INT_RTS_CTS   0x20
 
#define ISR_FIFO_ENABLED   0xC0
 
#define ISR_INT_BITS_MASK   0x3E
 
#define LCR_BITS_5   0x00
 
#define LCR_BITS_6   0x01
 
#define LCR_BITS_7   0x02
 
#define LCR_BITS_8   0x03
 
#define LCR_BITS_MASK   0x03
 
#define LCR_STOP_1   0x00
 
#define LCR_STOP_1_5   0x04
 
#define LCR_STOP_2   0x04
 
#define LCR_STOP_MASK   0x04
 
#define LCR_PAR_NONE   0x00
 
#define LCR_PAR_ODD   0x08
 
#define LCR_PAR_EVEN   0x18
 
#define LCR_PAR_MARK   0x28
 
#define LCR_PAR_SPACE   0x38
 
#define LCR_PAR_MASK   0x38
 
#define LCR_SET_BREAK   0x40
 
#define LCR_DL_ENABLE   0x80
 
#define LCR_ACCESS_EFR   0xBF
 
#define MCR_DTR   0x01
 
#define MCR_RTS   0x02
 
#define MCR_OUT1   0x04
 
#define MCR_MASTER_IE   0x08
 
#define MCR_LOOPBACK   0x10
 
#define MCR_XON_ANY   0x20
 
#define MCR_IR_ENABLE   0x40
 
#define MCR_BRG_DIV_4   0x80
 
#define LSR_RX_AVAIL   0x01
 
#define LSR_OVER_ERR   0x02
 
#define LSR_PAR_ERR   0x04
 
#define LSR_FRM_ERR   0x08
 
#define LSR_BREAK   0x10
 
#define LSR_TX_EMPTY   0x20
 
#define LSR_TX_ALL_EMPTY   0x40
 
#define LSR_FIFO_ERR   0x80
 
#define EDGEPORT_MSR_DELTA_CTS   0x01
 
#define EDGEPORT_MSR_DELTA_DSR   0x02
 
#define EDGEPORT_MSR_DELTA_RI   0x04
 
#define EDGEPORT_MSR_DELTA_CD   0x08
 
#define EDGEPORT_MSR_CTS   0x10
 
#define EDGEPORT_MSR_DSR   0x20
 
#define EDGEPORT_MSR_RI   0x40
 
#define EDGEPORT_MSR_CD   0x80
 
#define EFR_SWFC_NONE   0x00
 
#define EFR_SWFC_RX1   0x02
 
#define EFR_SWFC_RX2   0x01
 
#define EFR_SWFC_RX12   0x03
 
#define EFR_SWFC_TX1   0x08
 
#define EFR_SWFC_TX1_RX1   0x0a
 
#define EFR_SWFC_TX1_RX2   0x09
 
#define EFR_SWFC_TX1_RX12   0x0b
 
#define EFR_SWFC_TX2   0x04
 
#define EFR_SWFC_TX2_RX1   0x06
 
#define EFR_SWFC_TX2_RX2   0x05
 
#define EFR_SWFC_TX2_RX12   0x07
 
#define EFR_SWFC_TX12   0x0c
 
#define EFR_SWFC_TX12_RX1   0x0e
 
#define EFR_SWFC_TX12_RX2   0x0d
 
#define EFR_SWFC_TX12_RX12   0x0f
 
#define EFR_TX_FC_MASK   0x0c
 
#define EFR_TX_FC_NONE   0x00
 
#define EFR_TX_FC_X1   0x08
 
#define EFR_TX_FC_X2   0x04
 
#define EFR_TX_FC_X1_2   0x0c
 
#define EFR_RX_FC_MASK   0x03
 
#define EFR_RX_FC_NONE   0x00
 
#define EFR_RX_FC_X1   0x02
 
#define EFR_RX_FC_X2   0x01
 
#define EFR_RX_FC_X1_2   0x03
 
#define EFR_SWFC_MASK   0x0F
 
#define EFR_ENABLE_16654   0x10
 
#define EFR_SPEC_DETECT   0x20
 
#define EFR_AUTO_RTS   0x40
 
#define EFR_AUTO_CTS   0x80
 

Macro Definition Documentation

#define DLL   8

Definition at line 43 of file io_16654.h.

#define DLM   9

Definition at line 44 of file io_16654.h.

#define EDGEPORT_MSR_CD   0x80

Definition at line 152 of file io_16654.h.

#define EDGEPORT_MSR_CTS   0x10

Definition at line 149 of file io_16654.h.

#define EDGEPORT_MSR_DELTA_CD   0x08

Definition at line 148 of file io_16654.h.

#define EDGEPORT_MSR_DELTA_CTS   0x01

Definition at line 145 of file io_16654.h.

#define EDGEPORT_MSR_DELTA_DSR   0x02

Definition at line 146 of file io_16654.h.

#define EDGEPORT_MSR_DELTA_RI   0x04

Definition at line 147 of file io_16654.h.

#define EDGEPORT_MSR_DSR   0x20

Definition at line 150 of file io_16654.h.

#define EDGEPORT_MSR_RI   0x40

Definition at line 151 of file io_16654.h.

#define EFR   10

Definition at line 45 of file io_16654.h.

#define EFR_AUTO_CTS   0x80

Definition at line 192 of file io_16654.h.

#define EFR_AUTO_RTS   0x40

Definition at line 191 of file io_16654.h.

#define EFR_ENABLE_16654   0x10

Definition at line 189 of file io_16654.h.

#define EFR_RX_FC_MASK   0x03

Definition at line 181 of file io_16654.h.

#define EFR_RX_FC_NONE   0x00

Definition at line 182 of file io_16654.h.

#define EFR_RX_FC_X1   0x02

Definition at line 183 of file io_16654.h.

#define EFR_RX_FC_X1_2   0x03

Definition at line 185 of file io_16654.h.

#define EFR_RX_FC_X2   0x01

Definition at line 184 of file io_16654.h.

#define EFR_SPEC_DETECT   0x20

Definition at line 190 of file io_16654.h.

#define EFR_SWFC_MASK   0x0F

Definition at line 188 of file io_16654.h.

#define EFR_SWFC_NONE   0x00

Definition at line 158 of file io_16654.h.

#define EFR_SWFC_RX1   0x02

Definition at line 159 of file io_16654.h.

#define EFR_SWFC_RX12   0x03

Definition at line 161 of file io_16654.h.

#define EFR_SWFC_RX2   0x01

Definition at line 160 of file io_16654.h.

#define EFR_SWFC_TX1   0x08

Definition at line 162 of file io_16654.h.

#define EFR_SWFC_TX12   0x0c

Definition at line 170 of file io_16654.h.

#define EFR_SWFC_TX12_RX1   0x0e

Definition at line 171 of file io_16654.h.

#define EFR_SWFC_TX12_RX12   0x0f

Definition at line 173 of file io_16654.h.

#define EFR_SWFC_TX12_RX2   0x0d

Definition at line 172 of file io_16654.h.

#define EFR_SWFC_TX1_RX1   0x0a

Definition at line 163 of file io_16654.h.

#define EFR_SWFC_TX1_RX12   0x0b

Definition at line 165 of file io_16654.h.

#define EFR_SWFC_TX1_RX2   0x09

Definition at line 164 of file io_16654.h.

#define EFR_SWFC_TX2   0x04

Definition at line 166 of file io_16654.h.

#define EFR_SWFC_TX2_RX1   0x06

Definition at line 167 of file io_16654.h.

#define EFR_SWFC_TX2_RX12   0x07

Definition at line 169 of file io_16654.h.

#define EFR_SWFC_TX2_RX2   0x05

Definition at line 168 of file io_16654.h.

#define EFR_TX_FC_MASK   0x0c

Definition at line 175 of file io_16654.h.

#define EFR_TX_FC_NONE   0x00

Definition at line 176 of file io_16654.h.

#define EFR_TX_FC_X1   0x08

Definition at line 177 of file io_16654.h.

#define EFR_TX_FC_X1_2   0x0c

Definition at line 179 of file io_16654.h.

#define EFR_TX_FC_X2   0x04

Definition at line 178 of file io_16654.h.

#define FCR   2

Definition at line 36 of file io_16654.h.

#define FCR_DMA_BLK   0x08

Definition at line 74 of file io_16654.h.

#define FCR_FIFO_EN   0x01

Definition at line 71 of file io_16654.h.

#define FCR_RX_LEVEL_16   0x40

Definition at line 82 of file io_16654.h.

#define FCR_RX_LEVEL_56   0x80

Definition at line 83 of file io_16654.h.

#define FCR_RX_LEVEL_60   0xC0

Definition at line 84 of file io_16654.h.

#define FCR_RX_LEVEL_8   0x00

Definition at line 81 of file io_16654.h.

#define FCR_RX_LEVEL_MASK   0xC0

Definition at line 80 of file io_16654.h.

#define FCR_RXCLR   0x02

Definition at line 72 of file io_16654.h.

#define FCR_TX_LEVEL_16   0x10

Definition at line 77 of file io_16654.h.

#define FCR_TX_LEVEL_32   0x20

Definition at line 78 of file io_16654.h.

#define FCR_TX_LEVEL_56   0x30

Definition at line 79 of file io_16654.h.

#define FCR_TX_LEVEL_8   0x00

Definition at line 76 of file io_16654.h.

#define FCR_TX_LEVEL_MASK   0x30

Definition at line 75 of file io_16654.h.

#define FCR_TXCLR   0x04

Definition at line 73 of file io_16654.h.

#define IER   1

Definition at line 35 of file io_16654.h.

#define IER_CTS   0x80

Definition at line 67 of file io_16654.h.

#define IER_ENABLE_ALL   0xFF

Definition at line 68 of file io_16654.h.

#define IER_MDM   0x08

Definition at line 63 of file io_16654.h.

#define IER_RTS   0x40

Definition at line 66 of file io_16654.h.

#define IER_RX   0x01

Definition at line 60 of file io_16654.h.

#define IER_RXS   0x04

Definition at line 62 of file io_16654.h.

#define IER_SLEEP   0x10

Definition at line 64 of file io_16654.h.

#define IER_TX   0x02

Definition at line 61 of file io_16654.h.

#define IER_XOFF   0x20

Definition at line 65 of file io_16654.h.

#define IS_REG_2ND_BANK (   x)    ((x) >= 8)

Definition at line 54 of file io_16654.h.

#define ISR   2

Definition at line 37 of file io_16654.h.

#define ISR_FIFO_ENABLED   0xC0

Definition at line 95 of file io_16654.h.

#define ISR_INT_BITS_MASK   0x3E

Definition at line 96 of file io_16654.h.

#define ISR_INT_LINE_STATUS   0x06

Definition at line 91 of file io_16654.h.

#define ISR_INT_MDM_STATUS   0x00

Definition at line 87 of file io_16654.h.

#define ISR_INT_NONE   0x01

Definition at line 88 of file io_16654.h.

#define ISR_INT_RTS_CTS   0x20

Definition at line 94 of file io_16654.h.

#define ISR_INT_RX_TIMEOUT   0x0C

Definition at line 92 of file io_16654.h.

#define ISR_INT_RX_XOFF   0x10

Definition at line 93 of file io_16654.h.

#define ISR_INT_RXRDY   0x04

Definition at line 90 of file io_16654.h.

#define ISR_INT_TXRDY   0x02

Definition at line 89 of file io_16654.h.

#define LCR   3

Definition at line 38 of file io_16654.h.

#define LCR_ACCESS_EFR   0xBF

Definition at line 120 of file io_16654.h.

#define LCR_BITS_5   0x00

Definition at line 99 of file io_16654.h.

#define LCR_BITS_6   0x01

Definition at line 100 of file io_16654.h.

#define LCR_BITS_7   0x02

Definition at line 101 of file io_16654.h.

#define LCR_BITS_8   0x03

Definition at line 102 of file io_16654.h.

#define LCR_BITS_MASK   0x03

Definition at line 103 of file io_16654.h.

#define LCR_DL_ENABLE   0x80

Definition at line 118 of file io_16654.h.

#define LCR_PAR_EVEN   0x18

Definition at line 112 of file io_16654.h.

#define LCR_PAR_MARK   0x28

Definition at line 113 of file io_16654.h.

#define LCR_PAR_MASK   0x38

Definition at line 115 of file io_16654.h.

#define LCR_PAR_NONE   0x00

Definition at line 110 of file io_16654.h.

#define LCR_PAR_ODD   0x08

Definition at line 111 of file io_16654.h.

#define LCR_PAR_SPACE   0x38

Definition at line 114 of file io_16654.h.

#define LCR_SET_BREAK   0x40

Definition at line 117 of file io_16654.h.

#define LCR_STOP_1   0x00

Definition at line 105 of file io_16654.h.

#define LCR_STOP_1_5   0x04

Definition at line 106 of file io_16654.h.

#define LCR_STOP_2   0x04

Definition at line 107 of file io_16654.h.

#define LCR_STOP_MASK   0x04

Definition at line 108 of file io_16654.h.

#define LSR   5

Definition at line 40 of file io_16654.h.

#define LSR_BREAK   0x10

Definition at line 139 of file io_16654.h.

#define LSR_FIFO_ERR   0x80

Definition at line 142 of file io_16654.h.

#define LSR_FRM_ERR   0x08

Definition at line 138 of file io_16654.h.

#define LSR_OVER_ERR   0x02

Definition at line 136 of file io_16654.h.

#define LSR_PAR_ERR   0x04

Definition at line 137 of file io_16654.h.

#define LSR_RX_AVAIL   0x01

Definition at line 135 of file io_16654.h.

#define LSR_TX_ALL_EMPTY   0x40

Definition at line 141 of file io_16654.h.

#define LSR_TX_EMPTY   0x20

Definition at line 140 of file io_16654.h.

#define MCR   4

Definition at line 39 of file io_16654.h.

#define MCR_BRG_DIV_4   0x80

Definition at line 132 of file io_16654.h.

#define MCR_DTR   0x01

Definition at line 125 of file io_16654.h.

#define MCR_IR_ENABLE   0x40

Definition at line 131 of file io_16654.h.

#define MCR_LOOPBACK   0x10

Definition at line 129 of file io_16654.h.

#define MCR_MASTER_IE   0x08

Definition at line 128 of file io_16654.h.

#define MCR_OUT1   0x04

Definition at line 127 of file io_16654.h.

#define MCR_RTS   0x02

Definition at line 126 of file io_16654.h.

#define MCR_XON_ANY   0x20

Definition at line 130 of file io_16654.h.

#define MSR   6

Definition at line 41 of file io_16654.h.

#define NUM_16654_REGS   16

Definition at line 52 of file io_16654.h.

#define RDR   0

Definition at line 34 of file io_16654.h.

#define SPR   7

Definition at line 42 of file io_16654.h.

#define THR   0

Definition at line 33 of file io_16654.h.

#define XOFF1   14

Definition at line 49 of file io_16654.h.

#define XOFF2   15

Definition at line 50 of file io_16654.h.

#define XON1   12

Definition at line 47 of file io_16654.h.

#define XON2   13

Definition at line 48 of file io_16654.h.