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

Go to the source code of this file.

Macros

#define MOXA   0x400
 
#define MOXA_GET_IQUEUE   (MOXA + 1) /* get input buffered count */
 
#define MOXA_GET_OQUEUE   (MOXA + 2) /* get output buffered count */
 
#define MOXA_GETDATACOUNT   (MOXA + 23)
 
#define MOXA_GET_IOQUEUE   (MOXA + 27)
 
#define MOXA_FLUSH_QUEUE   (MOXA + 28)
 
#define MOXA_GETMSTATUS   (MOXA + 65)
 
#define Magic_code   0x404
 
#define C218_ConfBase   0x800
 
#define C218_status   (C218_ConfBase + 0) /* BIOS running status */
 
#define C218_diag   (C218_ConfBase + 2) /* diagnostic status */
 
#define C218_key   (C218_ConfBase + 4) /* WORD (0x218 for C218) */
 
#define C218DLoad_len   (C218_ConfBase + 6) /* WORD */
 
#define C218check_sum   (C218_ConfBase + 8) /* BYTE */
 
#define C218chksum_ok   (C218_ConfBase + 0x0a) /* BYTE (1:ok) */
 
#define C218_TestRx   (C218_ConfBase + 0x10) /* 8 bytes for 8 ports */
 
#define C218_TestTx   (C218_ConfBase + 0x18) /* 8 bytes for 8 ports */
 
#define C218_RXerr   (C218_ConfBase + 0x20) /* 8 bytes for 8 ports */
 
#define C218_ErrFlag   (C218_ConfBase + 0x28) /* 8 bytes for 8 ports */
 
#define C218_LoadBuf   0x0F00
 
#define C218_KeyCode   0x218
 
#define CP204J_KeyCode   0x204
 
#define C320_ConfBase   0x800
 
#define C320_LoadBuf   0x0f00
 
#define STS_init   0x05 /* for C320_status */
 
#define C320_status   C320_ConfBase + 0 /* BIOS running status */
 
#define C320_diag   C320_ConfBase + 2 /* diagnostic status */
 
#define C320_key   C320_ConfBase + 4 /* WORD (0320H for C320) */
 
#define C320DLoad_len   C320_ConfBase + 6 /* WORD */
 
#define C320check_sum   C320_ConfBase + 8 /* WORD */
 
#define C320chksum_ok   C320_ConfBase + 0x0a /* WORD (1:ok) */
 
#define C320bapi_len   C320_ConfBase + 0x0c /* WORD */
 
#define C320UART_no   C320_ConfBase + 0x0e /* WORD */
 
#define C320_KeyCode   0x320
 
#define FixPage_addr   0x0000 /* starting addr of static page */
 
#define DynPage_addr   0x2000 /* starting addr of dynamic page */
 
#define C218_start   0x3000 /* starting addr of C218 BIOS prg */
 
#define Control_reg   0x1ff0 /* select page and reset control */
 
#define HW_reset   0x80
 
#define FC_CardReset   0x80
 
#define FC_ChannelReset   1 /* C320 firmware not supported */
 
#define FC_EnableCH   2
 
#define FC_DisableCH   3
 
#define FC_SetParam   4
 
#define FC_SetMode   5
 
#define FC_SetRate   6
 
#define FC_LineControl   7
 
#define FC_LineStatus   8
 
#define FC_XmitControl   9
 
#define FC_FlushQueue   10
 
#define FC_SendBreak   11
 
#define FC_StopBreak   12
 
#define FC_LoopbackON   13
 
#define FC_LoopbackOFF   14
 
#define FC_ClrIrqTable   15
 
#define FC_SendXon   16
 
#define FC_SetTermIrq   17 /* C320 firmware not supported */
 
#define FC_SetCntIrq   18 /* C320 firmware not supported */
 
#define FC_SetBreakIrq   19
 
#define FC_SetLineIrq   20
 
#define FC_SetFlowCtl   21
 
#define FC_GenIrq   22
 
#define FC_InCD180   23
 
#define FC_OutCD180   24
 
#define FC_InUARTreg   23
 
#define FC_OutUARTreg   24
 
#define FC_SetXonXoff   25
 
#define FC_OutCD180CCR   26
 
#define FC_ExtIQueue   27
 
#define FC_ExtOQueue   28
 
#define FC_ClrLineIrq   29
 
#define FC_HWFlowCtl   30
 
#define FC_GetClockRate   35
 
#define FC_SetBaud   36
 
#define FC_SetDataMode   41
 
#define FC_GetCCSR   43
 
#define FC_GetDataError   45
 
#define FC_RxControl   50
 
#define FC_ImmSend   51
 
#define FC_SetXonState   52
 
#define FC_SetXoffState   53
 
#define FC_SetRxFIFOTrig   54
 
#define FC_SetTxFIFOCnt   55
 
#define FC_UnixRate   56
 
#define FC_UnixResetTimer   57
 
#define RxFIFOTrig1   0
 
#define RxFIFOTrig4   1
 
#define RxFIFOTrig8   2
 
#define RxFIFOTrig14   3
 
#define DRAM_global   0
 
#define INT_data   (DRAM_global + 0)
 
#define Config_base   (DRAM_global + 0x108)
 
#define IRQindex   (INT_data + 0)
 
#define IRQpending   (INT_data + 4)
 
#define IRQtable   (INT_data + 8)
 
#define IntrRx   0x01 /* receiver data O.K. */
 
#define IntrTx   0x02 /* transmit buffer empty */
 
#define IntrFunc   0x04 /* function complete */
 
#define IntrBreak   0x08 /* received break */
 
#define IntrLine
 
#define IntrIntr   0x20 /* received INTR code */
 
#define IntrQuit   0x40 /* received QUIT code */
 
#define IntrEOF   0x80 /* received EOF code */
 
#define IntrRxTrigger   0x100 /* rx data count reach tigger value */
 
#define IntrTxTrigger   0x200 /* tx data count below trigger value */
 
#define Magic_no   (Config_base + 0)
 
#define Card_model_no   (Config_base + 2)
 
#define Total_ports   (Config_base + 4)
 
#define Module_cnt   (Config_base + 8)
 
#define Module_no   (Config_base + 10)
 
#define Timer_10ms   (Config_base + 14)
 
#define Disable_IRQ   (Config_base + 20)
 
#define TMS320_PORT1   (Config_base + 22)
 
#define TMS320_PORT2   (Config_base + 24)
 
#define TMS320_CLOCK   (Config_base + 26)
 
#define Extern_table
 
#define Extern_size   0x60 /* 96 bytes */
 
#define RXrptr   0x00 /* read pointer for RX buffer */
 
#define RXwptr   0x02 /* write pointer for RX buffer */
 
#define TXrptr   0x04 /* read pointer for TX buffer */
 
#define TXwptr   0x06 /* write pointer for TX buffer */
 
#define HostStat   0x08 /* IRQ flag and general flag */
 
#define FlagStat   0x0A
 
#define FlowControl   0x0C /* B7 B6 B5 B4 B3 B2 B1 B0 */
 
#define Break_cnt   0x0E /* received break count */
 
#define CD180TXirq   0x10 /* if non-0: enable TX irq */
 
#define RX_mask   0x12
 
#define TX_mask   0x14
 
#define Ofs_rxb   0x16
 
#define Ofs_txb   0x18
 
#define Page_rxb   0x1A
 
#define Page_txb   0x1C
 
#define EndPage_rxb   0x1E
 
#define EndPage_txb   0x20
 
#define Data_error   0x22
 
#define RxTrigger   0x28
 
#define TxTrigger   0x2a
 
#define rRXwptr   0x34
 
#define Low_water   0x36
 
#define FuncCode   0x40
 
#define FuncArg   0x42
 
#define FuncArg1   0x44
 
#define C218rx_size   0x2000 /* 8K bytes */
 
#define C218tx_size   0x8000 /* 32K bytes */
 
#define C218rx_mask   (C218rx_size - 1)
 
#define C218tx_mask   (C218tx_size - 1)
 
#define C320p8rx_size   0x2000
 
#define C320p8tx_size   0x8000
 
#define C320p8rx_mask   (C320p8rx_size - 1)
 
#define C320p8tx_mask   (C320p8tx_size - 1)
 
#define C320p16rx_size   0x2000
 
#define C320p16tx_size   0x4000
 
#define C320p16rx_mask   (C320p16rx_size - 1)
 
#define C320p16tx_mask   (C320p16tx_size - 1)
 
#define C320p24rx_size   0x2000
 
#define C320p24tx_size   0x2000
 
#define C320p24rx_mask   (C320p24rx_size - 1)
 
#define C320p24tx_mask   (C320p24tx_size - 1)
 
#define C320p32rx_size   0x1000
 
#define C320p32tx_size   0x1000
 
#define C320p32rx_mask   (C320p32rx_size - 1)
 
#define C320p32tx_mask   (C320p32tx_size - 1)
 
#define Page_size   0x2000U
 
#define Page_mask   (Page_size - 1)
 
#define C218rx_spage   3
 
#define C218tx_spage   4
 
#define C218rx_pageno   1
 
#define C218tx_pageno   4
 
#define C218buf_pageno   5
 
#define C320p8rx_spage   3
 
#define C320p8tx_spage   4
 
#define C320p8rx_pgno   1
 
#define C320p8tx_pgno   4
 
#define C320p8buf_pgno   5
 
#define C320p16rx_spage   3
 
#define C320p16tx_spage   4
 
#define C320p16rx_pgno   1
 
#define C320p16tx_pgno   2
 
#define C320p16buf_pgno   3
 
#define C320p24rx_spage   3
 
#define C320p24tx_spage   4
 
#define C320p24rx_pgno   1
 
#define C320p24tx_pgno   1
 
#define C320p24buf_pgno   2
 
#define C320p32rx_spage   3
 
#define C320p32tx_ofs   C320p32rx_size
 
#define C320p32tx_spage   3
 
#define C320p32buf_pgno   1
 
#define WakeupRx   0x01
 
#define WakeupTx   0x02
 
#define WakeupBreak   0x08
 
#define WakeupLine   0x10
 
#define WakeupIntr   0x20
 
#define WakeupQuit   0x40
 
#define WakeupEOF   0x80 /* used in VTIME control */
 
#define WakeupRxTrigger   0x100
 
#define WakeupTxTrigger   0x200
 
#define Rx_over   0x01
 
#define Xoff_state   0x02
 
#define Tx_flowOff   0x04
 
#define Tx_enable   0x08
 
#define CTS_state   0x10
 
#define DSR_state   0x20
 
#define DCD_state   0x80
 
#define CTS_FlowCtl   1
 
#define RTS_FlowCtl   2
 
#define Tx_FlowCtl   4
 
#define Rx_FlowCtl   8
 
#define IXM_IXANY   0x10
 
#define LowWater   128
 
#define DTR_ON   1
 
#define RTS_ON   2
 
#define CTS_ON   1
 
#define DSR_ON   2
 
#define DCD_ON   8
 
#define MX_CS8   0x03
 
#define MX_CS7   0x02
 
#define MX_CS6   0x01
 
#define MX_CS5   0x00
 
#define MX_STOP1   0x00
 
#define MX_STOP15   0x04
 
#define MX_STOP2   0x08
 
#define MX_PARNONE   0x00
 
#define MX_PAREVEN   0x40
 
#define MX_PARODD   0xC0
 

Macro Definition Documentation

#define Break_cnt   0x0E /* received break count */

Definition at line 170 of file moxa.h.

#define C218_ConfBase   0x800

Definition at line 21 of file moxa.h.

#define C218_diag   (C218_ConfBase + 2) /* diagnostic status */

Definition at line 23 of file moxa.h.

#define C218_ErrFlag   (C218_ConfBase + 0x28) /* 8 bytes for 8 ports */

Definition at line 31 of file moxa.h.

#define C218_key   (C218_ConfBase + 4) /* WORD (0x218 for C218) */

Definition at line 24 of file moxa.h.

#define C218_KeyCode   0x218

Definition at line 34 of file moxa.h.

#define C218_LoadBuf   0x0F00

Definition at line 33 of file moxa.h.

#define C218_RXerr   (C218_ConfBase + 0x20) /* 8 bytes for 8 ports */

Definition at line 30 of file moxa.h.

#define C218_start   0x3000 /* starting addr of C218 BIOS prg */

Definition at line 57 of file moxa.h.

#define C218_status   (C218_ConfBase + 0) /* BIOS running status */

Definition at line 22 of file moxa.h.

#define C218_TestRx   (C218_ConfBase + 0x10) /* 8 bytes for 8 ports */

Definition at line 28 of file moxa.h.

#define C218_TestTx   (C218_ConfBase + 0x18) /* 8 bytes for 8 ports */

Definition at line 29 of file moxa.h.

#define C218buf_pageno   5

Definition at line 223 of file moxa.h.

#define C218check_sum   (C218_ConfBase + 8) /* BYTE */

Definition at line 26 of file moxa.h.

#define C218chksum_ok   (C218_ConfBase + 0x0a) /* BYTE (1:ok) */

Definition at line 27 of file moxa.h.

#define C218DLoad_len   (C218_ConfBase + 6) /* WORD */

Definition at line 25 of file moxa.h.

#define C218rx_mask   (C218rx_size - 1)

Definition at line 194 of file moxa.h.

#define C218rx_pageno   1

Definition at line 221 of file moxa.h.

#define C218rx_size   0x2000 /* 8K bytes */

Definition at line 191 of file moxa.h.

#define C218rx_spage   3

Definition at line 219 of file moxa.h.

#define C218tx_mask   (C218tx_size - 1)

Definition at line 195 of file moxa.h.

#define C218tx_pageno   4

Definition at line 222 of file moxa.h.

#define C218tx_size   0x8000 /* 32K bytes */

Definition at line 192 of file moxa.h.

#define C218tx_spage   4

Definition at line 220 of file moxa.h.

#define C320_ConfBase   0x800

Definition at line 40 of file moxa.h.

#define C320_diag   C320_ConfBase + 2 /* diagnostic status */

Definition at line 45 of file moxa.h.

#define C320_key   C320_ConfBase + 4 /* WORD (0320H for C320) */

Definition at line 46 of file moxa.h.

#define C320_KeyCode   0x320

Definition at line 53 of file moxa.h.

#define C320_LoadBuf   0x0f00

Definition at line 41 of file moxa.h.

#define C320_status   C320_ConfBase + 0 /* BIOS running status */

Definition at line 44 of file moxa.h.

#define C320bapi_len   C320_ConfBase + 0x0c /* WORD */

Definition at line 50 of file moxa.h.

#define C320check_sum   C320_ConfBase + 8 /* WORD */

Definition at line 48 of file moxa.h.

#define C320chksum_ok   C320_ConfBase + 0x0a /* WORD (1:ok) */

Definition at line 49 of file moxa.h.

#define C320DLoad_len   C320_ConfBase + 6 /* WORD */

Definition at line 47 of file moxa.h.

#define C320p16buf_pgno   3

Definition at line 235 of file moxa.h.

#define C320p16rx_mask   (C320p16rx_size - 1)

Definition at line 204 of file moxa.h.

#define C320p16rx_pgno   1

Definition at line 233 of file moxa.h.

#define C320p16rx_size   0x2000

Definition at line 202 of file moxa.h.

#define C320p16rx_spage   3

Definition at line 231 of file moxa.h.

#define C320p16tx_mask   (C320p16tx_size - 1)

Definition at line 205 of file moxa.h.

#define C320p16tx_pgno   2

Definition at line 234 of file moxa.h.

#define C320p16tx_size   0x4000

Definition at line 203 of file moxa.h.

#define C320p16tx_spage   4

Definition at line 232 of file moxa.h.

#define C320p24buf_pgno   2

Definition at line 241 of file moxa.h.

#define C320p24rx_mask   (C320p24rx_size - 1)

Definition at line 209 of file moxa.h.

#define C320p24rx_pgno   1

Definition at line 239 of file moxa.h.

#define C320p24rx_size   0x2000

Definition at line 207 of file moxa.h.

#define C320p24rx_spage   3

Definition at line 237 of file moxa.h.

#define C320p24tx_mask   (C320p24tx_size - 1)

Definition at line 210 of file moxa.h.

#define C320p24tx_pgno   1

Definition at line 240 of file moxa.h.

#define C320p24tx_size   0x2000

Definition at line 208 of file moxa.h.

#define C320p24tx_spage   4

Definition at line 238 of file moxa.h.

#define C320p32buf_pgno   1

Definition at line 246 of file moxa.h.

#define C320p32rx_mask   (C320p32rx_size - 1)

Definition at line 214 of file moxa.h.

#define C320p32rx_size   0x1000

Definition at line 212 of file moxa.h.

#define C320p32rx_spage   3

Definition at line 243 of file moxa.h.

#define C320p32tx_mask   (C320p32tx_size - 1)

Definition at line 215 of file moxa.h.

#define C320p32tx_ofs   C320p32rx_size

Definition at line 244 of file moxa.h.

#define C320p32tx_size   0x1000

Definition at line 213 of file moxa.h.

#define C320p32tx_spage   3

Definition at line 245 of file moxa.h.

#define C320p8buf_pgno   5

Definition at line 229 of file moxa.h.

#define C320p8rx_mask   (C320p8rx_size - 1)

Definition at line 199 of file moxa.h.

#define C320p8rx_pgno   1

Definition at line 227 of file moxa.h.

#define C320p8rx_size   0x2000

Definition at line 197 of file moxa.h.

#define C320p8rx_spage   3

Definition at line 225 of file moxa.h.

#define C320p8tx_mask   (C320p8tx_size - 1)

Definition at line 200 of file moxa.h.

#define C320p8tx_pgno   4

Definition at line 228 of file moxa.h.

#define C320p8tx_size   0x8000

Definition at line 198 of file moxa.h.

#define C320p8tx_spage   4

Definition at line 226 of file moxa.h.

#define C320UART_no   C320_ConfBase + 0x0e /* WORD */

Definition at line 51 of file moxa.h.

#define Card_model_no   (Config_base + 2)

Definition at line 143 of file moxa.h.

#define CD180TXirq   0x10 /* if non-0: enable TX irq */

Definition at line 171 of file moxa.h.

#define Config_base   (DRAM_global + 0x108)

Definition at line 121 of file moxa.h.

#define Control_reg   0x1ff0 /* select page and reset control */

Definition at line 58 of file moxa.h.

#define CP204J_KeyCode   0x204

Definition at line 35 of file moxa.h.

#define CTS_FlowCtl   1

Definition at line 273 of file moxa.h.

#define CTS_ON   1

Definition at line 283 of file moxa.h.

#define CTS_state   0x10

Definition at line 267 of file moxa.h.

#define Data_error   0x22

Definition at line 180 of file moxa.h.

#define DCD_ON   8

Definition at line 285 of file moxa.h.

#define DCD_state   0x80

Definition at line 269 of file moxa.h.

#define Disable_IRQ   (Config_base + 20)

Definition at line 148 of file moxa.h.

#define DRAM_global   0

Definition at line 119 of file moxa.h.

#define DSR_ON   2

Definition at line 284 of file moxa.h.

#define DSR_state   0x20

Definition at line 268 of file moxa.h.

#define DTR_ON   1

Definition at line 281 of file moxa.h.

#define DynPage_addr   0x2000 /* starting addr of dynamic page */

Definition at line 56 of file moxa.h.

#define EndPage_rxb   0x1E

Definition at line 178 of file moxa.h.

#define EndPage_txb   0x20

Definition at line 179 of file moxa.h.

#define Extern_size   0x60 /* 96 bytes */

Definition at line 157 of file moxa.h.

#define Extern_table
Value:
0x400 /* Base address of the external table
(24 words * 64) total 3K bytes
(24 words * 128) total 6K bytes */

Definition at line 156 of file moxa.h.

#define FC_CardReset   0x80

Definition at line 64 of file moxa.h.

#define FC_ChannelReset   1 /* C320 firmware not supported */

Definition at line 65 of file moxa.h.

#define FC_ClrIrqTable   15

Definition at line 79 of file moxa.h.

#define FC_ClrLineIrq   29

Definition at line 95 of file moxa.h.

#define FC_DisableCH   3

Definition at line 67 of file moxa.h.

#define FC_EnableCH   2

Definition at line 66 of file moxa.h.

#define FC_ExtIQueue   27

Definition at line 93 of file moxa.h.

#define FC_ExtOQueue   28

Definition at line 94 of file moxa.h.

#define FC_FlushQueue   10

Definition at line 74 of file moxa.h.

#define FC_GenIrq   22

Definition at line 86 of file moxa.h.

#define FC_GetCCSR   43

Definition at line 100 of file moxa.h.

#define FC_GetClockRate   35

Definition at line 97 of file moxa.h.

#define FC_GetDataError   45

Definition at line 101 of file moxa.h.

#define FC_HWFlowCtl   30

Definition at line 96 of file moxa.h.

#define FC_ImmSend   51

Definition at line 103 of file moxa.h.

#define FC_InCD180   23

Definition at line 87 of file moxa.h.

#define FC_InUARTreg   23

Definition at line 89 of file moxa.h.

#define FC_LineControl   7

Definition at line 71 of file moxa.h.

#define FC_LineStatus   8

Definition at line 72 of file moxa.h.

#define FC_LoopbackOFF   14

Definition at line 78 of file moxa.h.

#define FC_LoopbackON   13

Definition at line 77 of file moxa.h.

#define FC_OutCD180   24

Definition at line 88 of file moxa.h.

#define FC_OutCD180CCR   26

Definition at line 92 of file moxa.h.

#define FC_OutUARTreg   24

Definition at line 90 of file moxa.h.

#define FC_RxControl   50

Definition at line 102 of file moxa.h.

#define FC_SendBreak   11

Definition at line 75 of file moxa.h.

#define FC_SendXon   16

Definition at line 80 of file moxa.h.

#define FC_SetBaud   36

Definition at line 98 of file moxa.h.

#define FC_SetBreakIrq   19

Definition at line 83 of file moxa.h.

#define FC_SetCntIrq   18 /* C320 firmware not supported */

Definition at line 82 of file moxa.h.

#define FC_SetDataMode   41

Definition at line 99 of file moxa.h.

#define FC_SetFlowCtl   21

Definition at line 85 of file moxa.h.

#define FC_SetLineIrq   20

Definition at line 84 of file moxa.h.

#define FC_SetMode   5

Definition at line 69 of file moxa.h.

#define FC_SetParam   4

Definition at line 68 of file moxa.h.

#define FC_SetRate   6

Definition at line 70 of file moxa.h.

#define FC_SetRxFIFOTrig   54

Definition at line 106 of file moxa.h.

#define FC_SetTermIrq   17 /* C320 firmware not supported */

Definition at line 81 of file moxa.h.

#define FC_SetTxFIFOCnt   55

Definition at line 107 of file moxa.h.

#define FC_SetXoffState   53

Definition at line 105 of file moxa.h.

#define FC_SetXonState   52

Definition at line 104 of file moxa.h.

#define FC_SetXonXoff   25

Definition at line 91 of file moxa.h.

#define FC_StopBreak   12

Definition at line 76 of file moxa.h.

#define FC_UnixRate   56

Definition at line 108 of file moxa.h.

#define FC_UnixResetTimer   57

Definition at line 109 of file moxa.h.

#define FC_XmitControl   9

Definition at line 73 of file moxa.h.

#define FixPage_addr   0x0000 /* starting addr of static page */

Definition at line 55 of file moxa.h.

#define FlagStat   0x0A

Definition at line 163 of file moxa.h.

#define FlowControl   0x0C /* B7 B6 B5 B4 B3 B2 B1 B0 */

Definition at line 164 of file moxa.h.

#define FuncArg   0x42

Definition at line 188 of file moxa.h.

#define FuncArg1   0x44

Definition at line 189 of file moxa.h.

#define FuncCode   0x40

Definition at line 187 of file moxa.h.

#define HostStat   0x08 /* IRQ flag and general flag */

Definition at line 162 of file moxa.h.

#define HW_reset   0x80

Definition at line 59 of file moxa.h.

#define INT_data   (DRAM_global + 0)

Definition at line 120 of file moxa.h.

#define IntrBreak   0x08 /* received break */

Definition at line 133 of file moxa.h.

#define IntrEOF   0x80 /* received EOF code */

Definition at line 137 of file moxa.h.

#define IntrFunc   0x04 /* function complete */

Definition at line 132 of file moxa.h.

#define IntrIntr   0x20 /* received INTR code */

Definition at line 135 of file moxa.h.

#define IntrLine
Value:
0x10 /* line status change
for transmitter */

Definition at line 134 of file moxa.h.

#define IntrQuit   0x40 /* received QUIT code */

Definition at line 136 of file moxa.h.

#define IntrRx   0x01 /* receiver data O.K. */

Definition at line 130 of file moxa.h.

#define IntrRxTrigger   0x100 /* rx data count reach tigger value */

Definition at line 139 of file moxa.h.

#define IntrTx   0x02 /* transmit buffer empty */

Definition at line 131 of file moxa.h.

#define IntrTxTrigger   0x200 /* tx data count below trigger value */

Definition at line 140 of file moxa.h.

#define IRQindex   (INT_data + 0)

Definition at line 123 of file moxa.h.

#define IRQpending   (INT_data + 4)

Definition at line 124 of file moxa.h.

#define IRQtable   (INT_data + 8)

Definition at line 125 of file moxa.h.

#define IXM_IXANY   0x10

Definition at line 277 of file moxa.h.

#define Low_water   0x36

Definition at line 185 of file moxa.h.

#define LowWater   128

Definition at line 279 of file moxa.h.

#define Magic_code   0x404

Definition at line 16 of file moxa.h.

#define Magic_no   (Config_base + 0)

Definition at line 142 of file moxa.h.

#define Module_cnt   (Config_base + 8)

Definition at line 145 of file moxa.h.

#define Module_no   (Config_base + 10)

Definition at line 146 of file moxa.h.

#define MOXA   0x400

Definition at line 4 of file moxa.h.

#define MOXA_FLUSH_QUEUE   (MOXA + 28)

Definition at line 9 of file moxa.h.

#define MOXA_GET_IOQUEUE   (MOXA + 27)

Definition at line 8 of file moxa.h.

#define MOXA_GET_IQUEUE   (MOXA + 1) /* get input buffered count */

Definition at line 5 of file moxa.h.

#define MOXA_GET_OQUEUE   (MOXA + 2) /* get output buffered count */

Definition at line 6 of file moxa.h.

#define MOXA_GETDATACOUNT   (MOXA + 23)

Definition at line 7 of file moxa.h.

#define MOXA_GETMSTATUS   (MOXA + 65)

Definition at line 10 of file moxa.h.

#define MX_CS5   0x00

Definition at line 291 of file moxa.h.

#define MX_CS6   0x01

Definition at line 290 of file moxa.h.

#define MX_CS7   0x02

Definition at line 289 of file moxa.h.

#define MX_CS8   0x03

Definition at line 288 of file moxa.h.

#define MX_PAREVEN   0x40

Definition at line 298 of file moxa.h.

#define MX_PARNONE   0x00

Definition at line 297 of file moxa.h.

#define MX_PARODD   0xC0

Definition at line 299 of file moxa.h.

#define MX_STOP1   0x00

Definition at line 293 of file moxa.h.

#define MX_STOP15   0x04

Definition at line 294 of file moxa.h.

#define MX_STOP2   0x08

Definition at line 295 of file moxa.h.

#define Ofs_rxb   0x16

Definition at line 174 of file moxa.h.

#define Ofs_txb   0x18

Definition at line 175 of file moxa.h.

#define Page_mask   (Page_size - 1)

Definition at line 218 of file moxa.h.

#define Page_rxb   0x1A

Definition at line 176 of file moxa.h.

#define Page_size   0x2000U

Definition at line 217 of file moxa.h.

#define Page_txb   0x1C

Definition at line 177 of file moxa.h.

#define rRXwptr   0x34

Definition at line 184 of file moxa.h.

#define RTS_FlowCtl   2

Definition at line 274 of file moxa.h.

#define RTS_ON   2

Definition at line 282 of file moxa.h.

#define Rx_FlowCtl   8

Definition at line 276 of file moxa.h.

#define RX_mask   0x12

Definition at line 172 of file moxa.h.

#define Rx_over   0x01

Definition at line 263 of file moxa.h.

#define RxFIFOTrig1   0

Definition at line 111 of file moxa.h.

#define RxFIFOTrig14   3

Definition at line 114 of file moxa.h.

#define RxFIFOTrig4   1

Definition at line 112 of file moxa.h.

#define RxFIFOTrig8   2

Definition at line 113 of file moxa.h.

#define RXrptr   0x00 /* read pointer for RX buffer */

Definition at line 158 of file moxa.h.

#define RxTrigger   0x28

Definition at line 181 of file moxa.h.

#define RXwptr   0x02 /* write pointer for RX buffer */

Definition at line 159 of file moxa.h.

#define STS_init   0x05 /* for C320_status */

Definition at line 42 of file moxa.h.

#define Timer_10ms   (Config_base + 14)

Definition at line 147 of file moxa.h.

#define TMS320_CLOCK   (Config_base + 26)

Definition at line 151 of file moxa.h.

#define TMS320_PORT1   (Config_base + 22)

Definition at line 149 of file moxa.h.

#define TMS320_PORT2   (Config_base + 24)

Definition at line 150 of file moxa.h.

#define Total_ports   (Config_base + 4)

Definition at line 144 of file moxa.h.

#define Tx_enable   0x08

Definition at line 266 of file moxa.h.

#define Tx_FlowCtl   4

Definition at line 275 of file moxa.h.

#define Tx_flowOff   0x04

Definition at line 265 of file moxa.h.

#define TX_mask   0x14

Definition at line 173 of file moxa.h.

#define TXrptr   0x04 /* read pointer for TX buffer */

Definition at line 160 of file moxa.h.

#define TxTrigger   0x2a

Definition at line 182 of file moxa.h.

#define TXwptr   0x06 /* write pointer for TX buffer */

Definition at line 161 of file moxa.h.

#define WakeupBreak   0x08

Definition at line 253 of file moxa.h.

#define WakeupEOF   0x80 /* used in VTIME control */

Definition at line 257 of file moxa.h.

#define WakeupIntr   0x20

Definition at line 255 of file moxa.h.

#define WakeupLine   0x10

Definition at line 254 of file moxa.h.

#define WakeupQuit   0x40

Definition at line 256 of file moxa.h.

#define WakeupRx   0x01

Definition at line 251 of file moxa.h.

#define WakeupRxTrigger   0x100

Definition at line 258 of file moxa.h.

#define WakeupTx   0x02

Definition at line 252 of file moxa.h.

#define WakeupTxTrigger   0x200

Definition at line 259 of file moxa.h.

#define Xoff_state   0x02

Definition at line 264 of file moxa.h.