Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
synclink.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  _MGSL_PARAMS
 
struct  mgsl_icount
 
struct  gpio_desc
 

Macros

#define SYNCLINK_H_VERSION   3.6
 
#define BIT0   0x0001
 
#define BIT1   0x0002
 
#define BIT2   0x0004
 
#define BIT3   0x0008
 
#define BIT4   0x0010
 
#define BIT5   0x0020
 
#define BIT6   0x0040
 
#define BIT7   0x0080
 
#define BIT8   0x0100
 
#define BIT9   0x0200
 
#define BIT10   0x0400
 
#define BIT11   0x0800
 
#define BIT12   0x1000
 
#define BIT13   0x2000
 
#define BIT14   0x4000
 
#define BIT15   0x8000
 
#define BIT16   0x00010000
 
#define BIT17   0x00020000
 
#define BIT18   0x00040000
 
#define BIT19   0x00080000
 
#define BIT20   0x00100000
 
#define BIT21   0x00200000
 
#define BIT22   0x00400000
 
#define BIT23   0x00800000
 
#define BIT24   0x01000000
 
#define BIT25   0x02000000
 
#define BIT26   0x04000000
 
#define BIT27   0x08000000
 
#define BIT28   0x10000000
 
#define BIT29   0x20000000
 
#define BIT30   0x40000000
 
#define BIT31   0x80000000
 
#define HDLC_MAX_FRAME_SIZE   65535
 
#define MAX_ASYNC_TRANSMIT   4096
 
#define MAX_ASYNC_BUFFER_SIZE   4096
 
#define ASYNC_PARITY_NONE   0
 
#define ASYNC_PARITY_EVEN   1
 
#define ASYNC_PARITY_ODD   2
 
#define ASYNC_PARITY_SPACE   3
 
#define HDLC_FLAG_UNDERRUN_ABORT7   0x0000
 
#define HDLC_FLAG_UNDERRUN_ABORT15   0x0001
 
#define HDLC_FLAG_UNDERRUN_FLAG   0x0002
 
#define HDLC_FLAG_UNDERRUN_CRC   0x0004
 
#define HDLC_FLAG_SHARE_ZERO   0x0010
 
#define HDLC_FLAG_AUTO_CTS   0x0020
 
#define HDLC_FLAG_AUTO_DCD   0x0040
 
#define HDLC_FLAG_AUTO_RTS   0x0080
 
#define HDLC_FLAG_RXC_DPLL   0x0100
 
#define HDLC_FLAG_RXC_BRG   0x0200
 
#define HDLC_FLAG_RXC_TXCPIN   0x8000
 
#define HDLC_FLAG_RXC_RXCPIN   0x0000
 
#define HDLC_FLAG_TXC_DPLL   0x0400
 
#define HDLC_FLAG_TXC_BRG   0x0800
 
#define HDLC_FLAG_TXC_TXCPIN   0x0000
 
#define HDLC_FLAG_TXC_RXCPIN   0x0008
 
#define HDLC_FLAG_DPLL_DIV8   0x1000
 
#define HDLC_FLAG_DPLL_DIV16   0x2000
 
#define HDLC_FLAG_DPLL_DIV32   0x0000
 
#define HDLC_FLAG_HDLC_LOOPMODE   0x4000
 
#define HDLC_CRC_NONE   0
 
#define HDLC_CRC_16_CCITT   1
 
#define HDLC_CRC_32_CCITT   2
 
#define HDLC_CRC_MASK   0x00ff
 
#define HDLC_CRC_RETURN_EX   0x8000
 
#define RX_OK   0
 
#define RX_CRC_ERROR   1
 
#define HDLC_TXIDLE_FLAGS   0
 
#define HDLC_TXIDLE_ALT_ZEROS_ONES   1
 
#define HDLC_TXIDLE_ZEROS   2
 
#define HDLC_TXIDLE_ONES   3
 
#define HDLC_TXIDLE_ALT_MARK_SPACE   4
 
#define HDLC_TXIDLE_SPACE   5
 
#define HDLC_TXIDLE_MARK   6
 
#define HDLC_TXIDLE_CUSTOM_8   0x10000000
 
#define HDLC_TXIDLE_CUSTOM_16   0x20000000
 
#define HDLC_ENCODING_NRZ   0
 
#define HDLC_ENCODING_NRZB   1
 
#define HDLC_ENCODING_NRZI_MARK   2
 
#define HDLC_ENCODING_NRZI_SPACE   3
 
#define HDLC_ENCODING_NRZI   HDLC_ENCODING_NRZI_SPACE
 
#define HDLC_ENCODING_BIPHASE_MARK   4
 
#define HDLC_ENCODING_BIPHASE_SPACE   5
 
#define HDLC_ENCODING_BIPHASE_LEVEL   6
 
#define HDLC_ENCODING_DIFF_BIPHASE_LEVEL   7
 
#define HDLC_PREAMBLE_LENGTH_8BITS   0
 
#define HDLC_PREAMBLE_LENGTH_16BITS   1
 
#define HDLC_PREAMBLE_LENGTH_32BITS   2
 
#define HDLC_PREAMBLE_LENGTH_64BITS   3
 
#define HDLC_PREAMBLE_PATTERN_NONE   0
 
#define HDLC_PREAMBLE_PATTERN_ZEROS   1
 
#define HDLC_PREAMBLE_PATTERN_FLAGS   2
 
#define HDLC_PREAMBLE_PATTERN_10   3
 
#define HDLC_PREAMBLE_PATTERN_01   4
 
#define HDLC_PREAMBLE_PATTERN_ONES   5
 
#define MGSL_MODE_ASYNC   1
 
#define MGSL_MODE_HDLC   2
 
#define MGSL_MODE_MONOSYNC   3
 
#define MGSL_MODE_BISYNC   4
 
#define MGSL_MODE_RAW   6
 
#define MGSL_MODE_BASE_CLOCK   7
 
#define MGSL_MODE_XSYNC   8
 
#define MGSL_BUS_TYPE_ISA   1
 
#define MGSL_BUS_TYPE_EISA   2
 
#define MGSL_BUS_TYPE_PCI   5
 
#define MGSL_INTERFACE_MASK   0xf
 
#define MGSL_INTERFACE_DISABLE   0
 
#define MGSL_INTERFACE_RS232   1
 
#define MGSL_INTERFACE_V35   2
 
#define MGSL_INTERFACE_RS422   3
 
#define MGSL_INTERFACE_RTS_EN   0x10
 
#define MGSL_INTERFACE_LL   0x20
 
#define MGSL_INTERFACE_RL   0x40
 
#define MGSL_INTERFACE_MSB_FIRST   0x80
 
#define MICROGATE_VENDOR_ID   0x13c0
 
#define SYNCLINK_DEVICE_ID   0x0010
 
#define MGSCC_DEVICE_ID   0x0020
 
#define SYNCLINK_SCA_DEVICE_ID   0x0030
 
#define SYNCLINK_GT_DEVICE_ID   0x0070
 
#define SYNCLINK_GT4_DEVICE_ID   0x0080
 
#define SYNCLINK_AC_DEVICE_ID   0x0090
 
#define SYNCLINK_GT2_DEVICE_ID   0x00A0
 
#define MGSL_MAX_SERIAL_NUMBER   30
 
#define DiagStatus_OK   0
 
#define DiagStatus_AddressFailure   1
 
#define DiagStatus_AddressConflict   2
 
#define DiagStatus_IrqFailure   3
 
#define DiagStatus_IrqConflict   4
 
#define DiagStatus_DmaFailure   5
 
#define DiagStatus_DmaConflict   6
 
#define DiagStatus_PciAdapterNotFound   7
 
#define DiagStatus_CantAssignPciResources   8
 
#define DiagStatus_CantAssignPciMemAddr   9
 
#define DiagStatus_CantAssignPciIoAddr   10
 
#define DiagStatus_CantAssignPciIrq   11
 
#define DiagStatus_MemoryError   12
 
#define SerialSignal_DCD   0x01 /* Data Carrier Detect */
 
#define SerialSignal_TXD   0x02 /* Transmit Data */
 
#define SerialSignal_RI   0x04 /* Ring Indicator */
 
#define SerialSignal_RXD   0x08 /* Receive Data */
 
#define SerialSignal_CTS   0x10 /* Clear to Send */
 
#define SerialSignal_RTS   0x20 /* Request to Send */
 
#define SerialSignal_DSR   0x40 /* Data Set Ready */
 
#define SerialSignal_DTR   0x80 /* Data Terminal Ready */
 
#define DEBUG_LEVEL_DATA   1
 
#define DEBUG_LEVEL_ERROR   2
 
#define DEBUG_LEVEL_INFO   3
 
#define DEBUG_LEVEL_BH   4
 
#define DEBUG_LEVEL_ISR   5
 
#define MgslEvent_DsrActive   0x0001
 
#define MgslEvent_DsrInactive   0x0002
 
#define MgslEvent_Dsr   0x0003
 
#define MgslEvent_CtsActive   0x0004
 
#define MgslEvent_CtsInactive   0x0008
 
#define MgslEvent_Cts   0x000c
 
#define MgslEvent_DcdActive   0x0010
 
#define MgslEvent_DcdInactive   0x0020
 
#define MgslEvent_Dcd   0x0030
 
#define MgslEvent_RiActive   0x0040
 
#define MgslEvent_RiInactive   0x0080
 
#define MgslEvent_Ri   0x00c0
 
#define MgslEvent_ExitHuntMode   0x0100
 
#define MgslEvent_IdleReceived   0x0200
 
#define MGSL_MAGIC_IOC   'm'
 
#define MGSL_IOCSPARAMS   _IOW(MGSL_MAGIC_IOC,0,struct _MGSL_PARAMS)
 
#define MGSL_IOCGPARAMS   _IOR(MGSL_MAGIC_IOC,1,struct _MGSL_PARAMS)
 
#define MGSL_IOCSTXIDLE   _IO(MGSL_MAGIC_IOC,2)
 
#define MGSL_IOCGTXIDLE   _IO(MGSL_MAGIC_IOC,3)
 
#define MGSL_IOCTXENABLE   _IO(MGSL_MAGIC_IOC,4)
 
#define MGSL_IOCRXENABLE   _IO(MGSL_MAGIC_IOC,5)
 
#define MGSL_IOCTXABORT   _IO(MGSL_MAGIC_IOC,6)
 
#define MGSL_IOCGSTATS   _IO(MGSL_MAGIC_IOC,7)
 
#define MGSL_IOCWAITEVENT   _IOWR(MGSL_MAGIC_IOC,8,int)
 
#define MGSL_IOCCLRMODCOUNT   _IO(MGSL_MAGIC_IOC,15)
 
#define MGSL_IOCLOOPTXDONE   _IO(MGSL_MAGIC_IOC,9)
 
#define MGSL_IOCSIF   _IO(MGSL_MAGIC_IOC,10)
 
#define MGSL_IOCGIF   _IO(MGSL_MAGIC_IOC,11)
 
#define MGSL_IOCSGPIO   _IOW(MGSL_MAGIC_IOC,16,struct gpio_desc)
 
#define MGSL_IOCGGPIO   _IOR(MGSL_MAGIC_IOC,17,struct gpio_desc)
 
#define MGSL_IOCWAITGPIO   _IOWR(MGSL_MAGIC_IOC,18,struct gpio_desc)
 
#define MGSL_IOCSXSYNC   _IO(MGSL_MAGIC_IOC, 19)
 
#define MGSL_IOCGXSYNC   _IO(MGSL_MAGIC_IOC, 20)
 
#define MGSL_IOCSXCTRL   _IO(MGSL_MAGIC_IOC, 21)
 
#define MGSL_IOCGXCTRL   _IO(MGSL_MAGIC_IOC, 22)
 

Typedefs

typedef struct _MGSL_PARAMS MGSL_PARAMS
 
typedef struct _MGSL_PARAMSPMGSL_PARAMS
 

Macro Definition Documentation

#define ASYNC_PARITY_EVEN   1

Definition at line 57 of file synclink.h.

#define ASYNC_PARITY_NONE   0

Definition at line 56 of file synclink.h.

#define ASYNC_PARITY_ODD   2

Definition at line 58 of file synclink.h.

#define ASYNC_PARITY_SPACE   3

Definition at line 59 of file synclink.h.

#define BIT0   0x0001

Definition at line 18 of file synclink.h.

#define BIT1   0x0002

Definition at line 19 of file synclink.h.

#define BIT10   0x0400

Definition at line 28 of file synclink.h.

#define BIT11   0x0800

Definition at line 29 of file synclink.h.

#define BIT12   0x1000

Definition at line 30 of file synclink.h.

#define BIT13   0x2000

Definition at line 31 of file synclink.h.

#define BIT14   0x4000

Definition at line 32 of file synclink.h.

#define BIT15   0x8000

Definition at line 33 of file synclink.h.

#define BIT16   0x00010000

Definition at line 34 of file synclink.h.

#define BIT17   0x00020000

Definition at line 35 of file synclink.h.

#define BIT18   0x00040000

Definition at line 36 of file synclink.h.

#define BIT19   0x00080000

Definition at line 37 of file synclink.h.

#define BIT2   0x0004

Definition at line 20 of file synclink.h.

#define BIT20   0x00100000

Definition at line 38 of file synclink.h.

#define BIT21   0x00200000

Definition at line 39 of file synclink.h.

#define BIT22   0x00400000

Definition at line 40 of file synclink.h.

#define BIT23   0x00800000

Definition at line 41 of file synclink.h.

#define BIT24   0x01000000

Definition at line 42 of file synclink.h.

#define BIT25   0x02000000

Definition at line 43 of file synclink.h.

#define BIT26   0x04000000

Definition at line 44 of file synclink.h.

#define BIT27   0x08000000

Definition at line 45 of file synclink.h.

#define BIT28   0x10000000

Definition at line 46 of file synclink.h.

#define BIT29   0x20000000

Definition at line 47 of file synclink.h.

#define BIT3   0x0008

Definition at line 21 of file synclink.h.

#define BIT30   0x40000000

Definition at line 48 of file synclink.h.

#define BIT31   0x80000000

Definition at line 49 of file synclink.h.

#define BIT4   0x0010

Definition at line 22 of file synclink.h.

#define BIT5   0x0020

Definition at line 23 of file synclink.h.

#define BIT6   0x0040

Definition at line 24 of file synclink.h.

#define BIT7   0x0080

Definition at line 25 of file synclink.h.

#define BIT8   0x0100

Definition at line 26 of file synclink.h.

#define BIT9   0x0200

Definition at line 27 of file synclink.h.

#define DEBUG_LEVEL_BH   4

Definition at line 240 of file synclink.h.

#define DEBUG_LEVEL_DATA   1

Definition at line 237 of file synclink.h.

#define DEBUG_LEVEL_ERROR   2

Definition at line 238 of file synclink.h.

#define DEBUG_LEVEL_INFO   3

Definition at line 239 of file synclink.h.

#define DEBUG_LEVEL_ISR   5

Definition at line 241 of file synclink.h.

#define DiagStatus_AddressConflict   2

Definition at line 187 of file synclink.h.

#define DiagStatus_AddressFailure   1

Definition at line 186 of file synclink.h.

#define DiagStatus_CantAssignPciIoAddr   10

Definition at line 195 of file synclink.h.

#define DiagStatus_CantAssignPciIrq   11

Definition at line 196 of file synclink.h.

#define DiagStatus_CantAssignPciMemAddr   9

Definition at line 194 of file synclink.h.

#define DiagStatus_CantAssignPciResources   8

Definition at line 193 of file synclink.h.

#define DiagStatus_DmaConflict   6

Definition at line 191 of file synclink.h.

#define DiagStatus_DmaFailure   5

Definition at line 190 of file synclink.h.

#define DiagStatus_IrqConflict   4

Definition at line 189 of file synclink.h.

#define DiagStatus_IrqFailure   3

Definition at line 188 of file synclink.h.

#define DiagStatus_MemoryError   12

Definition at line 197 of file synclink.h.

#define DiagStatus_OK   0

Definition at line 185 of file synclink.h.

#define DiagStatus_PciAdapterNotFound   7

Definition at line 192 of file synclink.h.

#define HDLC_CRC_16_CCITT   1

Definition at line 83 of file synclink.h.

#define HDLC_CRC_32_CCITT   2

Definition at line 84 of file synclink.h.

#define HDLC_CRC_MASK   0x00ff

Definition at line 85 of file synclink.h.

#define HDLC_CRC_NONE   0

Definition at line 82 of file synclink.h.

#define HDLC_CRC_RETURN_EX   0x8000

Definition at line 86 of file synclink.h.

#define HDLC_ENCODING_BIPHASE_LEVEL   6

Definition at line 108 of file synclink.h.

#define HDLC_ENCODING_BIPHASE_MARK   4

Definition at line 106 of file synclink.h.

#define HDLC_ENCODING_BIPHASE_SPACE   5

Definition at line 107 of file synclink.h.

#define HDLC_ENCODING_DIFF_BIPHASE_LEVEL   7

Definition at line 109 of file synclink.h.

#define HDLC_ENCODING_NRZ   0

Definition at line 101 of file synclink.h.

#define HDLC_ENCODING_NRZB   1

Definition at line 102 of file synclink.h.

#define HDLC_ENCODING_NRZI   HDLC_ENCODING_NRZI_SPACE

Definition at line 105 of file synclink.h.

#define HDLC_ENCODING_NRZI_MARK   2

Definition at line 103 of file synclink.h.

#define HDLC_ENCODING_NRZI_SPACE   3

Definition at line 104 of file synclink.h.

#define HDLC_FLAG_AUTO_CTS   0x0020

Definition at line 66 of file synclink.h.

#define HDLC_FLAG_AUTO_DCD   0x0040

Definition at line 67 of file synclink.h.

#define HDLC_FLAG_AUTO_RTS   0x0080

Definition at line 68 of file synclink.h.

#define HDLC_FLAG_DPLL_DIV16   0x2000

Definition at line 78 of file synclink.h.

#define HDLC_FLAG_DPLL_DIV32   0x0000

Definition at line 79 of file synclink.h.

#define HDLC_FLAG_DPLL_DIV8   0x1000

Definition at line 77 of file synclink.h.

#define HDLC_FLAG_HDLC_LOOPMODE   0x4000

Definition at line 80 of file synclink.h.

#define HDLC_FLAG_RXC_BRG   0x0200

Definition at line 70 of file synclink.h.

#define HDLC_FLAG_RXC_DPLL   0x0100

Definition at line 69 of file synclink.h.

#define HDLC_FLAG_RXC_RXCPIN   0x0000

Definition at line 72 of file synclink.h.

#define HDLC_FLAG_RXC_TXCPIN   0x8000

Definition at line 71 of file synclink.h.

#define HDLC_FLAG_SHARE_ZERO   0x0010

Definition at line 65 of file synclink.h.

#define HDLC_FLAG_TXC_BRG   0x0800

Definition at line 74 of file synclink.h.

#define HDLC_FLAG_TXC_DPLL   0x0400

Definition at line 73 of file synclink.h.

#define HDLC_FLAG_TXC_RXCPIN   0x0008

Definition at line 76 of file synclink.h.

#define HDLC_FLAG_TXC_TXCPIN   0x0000

Definition at line 75 of file synclink.h.

#define HDLC_FLAG_UNDERRUN_ABORT15   0x0001

Definition at line 62 of file synclink.h.

#define HDLC_FLAG_UNDERRUN_ABORT7   0x0000

Definition at line 61 of file synclink.h.

#define HDLC_FLAG_UNDERRUN_CRC   0x0004

Definition at line 64 of file synclink.h.

#define HDLC_FLAG_UNDERRUN_FLAG   0x0002

Definition at line 63 of file synclink.h.

#define HDLC_MAX_FRAME_SIZE   65535

Definition at line 52 of file synclink.h.

#define HDLC_PREAMBLE_LENGTH_16BITS   1

Definition at line 112 of file synclink.h.

#define HDLC_PREAMBLE_LENGTH_32BITS   2

Definition at line 113 of file synclink.h.

#define HDLC_PREAMBLE_LENGTH_64BITS   3

Definition at line 114 of file synclink.h.

#define HDLC_PREAMBLE_LENGTH_8BITS   0

Definition at line 111 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_01   4

Definition at line 120 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_10   3

Definition at line 119 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_FLAGS   2

Definition at line 118 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_NONE   0

Definition at line 116 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_ONES   5

Definition at line 121 of file synclink.h.

#define HDLC_PREAMBLE_PATTERN_ZEROS   1

Definition at line 117 of file synclink.h.

#define HDLC_TXIDLE_ALT_MARK_SPACE   4

Definition at line 95 of file synclink.h.

#define HDLC_TXIDLE_ALT_ZEROS_ONES   1

Definition at line 92 of file synclink.h.

#define HDLC_TXIDLE_CUSTOM_16   0x20000000

Definition at line 99 of file synclink.h.

#define HDLC_TXIDLE_CUSTOM_8   0x10000000

Definition at line 98 of file synclink.h.

#define HDLC_TXIDLE_FLAGS   0

Definition at line 91 of file synclink.h.

#define HDLC_TXIDLE_MARK   6

Definition at line 97 of file synclink.h.

#define HDLC_TXIDLE_ONES   3

Definition at line 94 of file synclink.h.

#define HDLC_TXIDLE_SPACE   5

Definition at line 96 of file synclink.h.

#define HDLC_TXIDLE_ZEROS   2

Definition at line 93 of file synclink.h.

#define MAX_ASYNC_BUFFER_SIZE   4096

Definition at line 54 of file synclink.h.

#define MAX_ASYNC_TRANSMIT   4096

Definition at line 53 of file synclink.h.

#define MGSCC_DEVICE_ID   0x0020

Definition at line 173 of file synclink.h.

#define MGSL_BUS_TYPE_EISA   2

Definition at line 132 of file synclink.h.

#define MGSL_BUS_TYPE_ISA   1

Definition at line 131 of file synclink.h.

#define MGSL_BUS_TYPE_PCI   5

Definition at line 133 of file synclink.h.

#define MGSL_INTERFACE_DISABLE   0

Definition at line 136 of file synclink.h.

#define MGSL_INTERFACE_LL   0x20

Definition at line 141 of file synclink.h.

#define MGSL_INTERFACE_MASK   0xf

Definition at line 135 of file synclink.h.

#define MGSL_INTERFACE_MSB_FIRST   0x80

Definition at line 143 of file synclink.h.

#define MGSL_INTERFACE_RL   0x40

Definition at line 142 of file synclink.h.

#define MGSL_INTERFACE_RS232   1

Definition at line 137 of file synclink.h.

#define MGSL_INTERFACE_RS422   3

Definition at line 139 of file synclink.h.

#define MGSL_INTERFACE_RTS_EN   0x10

Definition at line 140 of file synclink.h.

#define MGSL_INTERFACE_V35   2

Definition at line 138 of file synclink.h.

#define MGSL_IOCCLRMODCOUNT   _IO(MGSL_MAGIC_IOC,15)

Definition at line 287 of file synclink.h.

#define MGSL_IOCGGPIO   _IOR(MGSL_MAGIC_IOC,17,struct gpio_desc)

Definition at line 292 of file synclink.h.

#define MGSL_IOCGIF   _IO(MGSL_MAGIC_IOC,11)

Definition at line 290 of file synclink.h.

#define MGSL_IOCGPARAMS   _IOR(MGSL_MAGIC_IOC,1,struct _MGSL_PARAMS)

Definition at line 279 of file synclink.h.

#define MGSL_IOCGSTATS   _IO(MGSL_MAGIC_IOC,7)

Definition at line 285 of file synclink.h.

#define MGSL_IOCGTXIDLE   _IO(MGSL_MAGIC_IOC,3)

Definition at line 281 of file synclink.h.

#define MGSL_IOCGXCTRL   _IO(MGSL_MAGIC_IOC, 22)

Definition at line 297 of file synclink.h.

#define MGSL_IOCGXSYNC   _IO(MGSL_MAGIC_IOC, 20)

Definition at line 295 of file synclink.h.

#define MGSL_IOCLOOPTXDONE   _IO(MGSL_MAGIC_IOC,9)

Definition at line 288 of file synclink.h.

#define MGSL_IOCRXENABLE   _IO(MGSL_MAGIC_IOC,5)

Definition at line 283 of file synclink.h.

#define MGSL_IOCSGPIO   _IOW(MGSL_MAGIC_IOC,16,struct gpio_desc)

Definition at line 291 of file synclink.h.

#define MGSL_IOCSIF   _IO(MGSL_MAGIC_IOC,10)

Definition at line 289 of file synclink.h.

#define MGSL_IOCSPARAMS   _IOW(MGSL_MAGIC_IOC,0,struct _MGSL_PARAMS)

Definition at line 278 of file synclink.h.

#define MGSL_IOCSTXIDLE   _IO(MGSL_MAGIC_IOC,2)

Definition at line 280 of file synclink.h.

#define MGSL_IOCSXCTRL   _IO(MGSL_MAGIC_IOC, 21)

Definition at line 296 of file synclink.h.

#define MGSL_IOCSXSYNC   _IO(MGSL_MAGIC_IOC, 19)

Definition at line 294 of file synclink.h.

#define MGSL_IOCTXABORT   _IO(MGSL_MAGIC_IOC,6)

Definition at line 284 of file synclink.h.

#define MGSL_IOCTXENABLE   _IO(MGSL_MAGIC_IOC,4)

Definition at line 282 of file synclink.h.

#define MGSL_IOCWAITEVENT   _IOWR(MGSL_MAGIC_IOC,8,int)

Definition at line 286 of file synclink.h.

#define MGSL_IOCWAITGPIO   _IOWR(MGSL_MAGIC_IOC,18,struct gpio_desc)

Definition at line 293 of file synclink.h.

#define MGSL_MAGIC_IOC   'm'

Definition at line 277 of file synclink.h.

#define MGSL_MAX_SERIAL_NUMBER   30

Definition at line 179 of file synclink.h.

#define MGSL_MODE_ASYNC   1

Definition at line 123 of file synclink.h.

#define MGSL_MODE_BASE_CLOCK   7

Definition at line 128 of file synclink.h.

#define MGSL_MODE_BISYNC   4

Definition at line 126 of file synclink.h.

#define MGSL_MODE_HDLC   2

Definition at line 124 of file synclink.h.

#define MGSL_MODE_MONOSYNC   3

Definition at line 125 of file synclink.h.

#define MGSL_MODE_RAW   6

Definition at line 127 of file synclink.h.

#define MGSL_MODE_XSYNC   8

Definition at line 129 of file synclink.h.

#define MgslEvent_Cts   0x000c

Definition at line 252 of file synclink.h.

#define MgslEvent_CtsActive   0x0004

Definition at line 250 of file synclink.h.

#define MgslEvent_CtsInactive   0x0008

Definition at line 251 of file synclink.h.

#define MgslEvent_Dcd   0x0030

Definition at line 255 of file synclink.h.

#define MgslEvent_DcdActive   0x0010

Definition at line 253 of file synclink.h.

#define MgslEvent_DcdInactive   0x0020

Definition at line 254 of file synclink.h.

#define MgslEvent_Dsr   0x0003

Definition at line 249 of file synclink.h.

#define MgslEvent_DsrActive   0x0001

Definition at line 247 of file synclink.h.

#define MgslEvent_DsrInactive   0x0002

Definition at line 248 of file synclink.h.

#define MgslEvent_ExitHuntMode   0x0100

Definition at line 259 of file synclink.h.

#define MgslEvent_IdleReceived   0x0200

Definition at line 260 of file synclink.h.

#define MgslEvent_Ri   0x00c0

Definition at line 258 of file synclink.h.

#define MgslEvent_RiActive   0x0040

Definition at line 256 of file synclink.h.

#define MgslEvent_RiInactive   0x0080

Definition at line 257 of file synclink.h.

#define MICROGATE_VENDOR_ID   0x13c0

Definition at line 171 of file synclink.h.

#define RX_CRC_ERROR   1

Definition at line 89 of file synclink.h.

#define RX_OK   0

Definition at line 88 of file synclink.h.

#define SerialSignal_CTS   0x10 /* Clear to Send */

Definition at line 203 of file synclink.h.

#define SerialSignal_DCD   0x01 /* Data Carrier Detect */

Definition at line 199 of file synclink.h.

#define SerialSignal_DSR   0x40 /* Data Set Ready */

Definition at line 205 of file synclink.h.

#define SerialSignal_DTR   0x80 /* Data Terminal Ready */

Definition at line 206 of file synclink.h.

#define SerialSignal_RI   0x04 /* Ring Indicator */

Definition at line 201 of file synclink.h.

#define SerialSignal_RTS   0x20 /* Request to Send */

Definition at line 204 of file synclink.h.

#define SerialSignal_RXD   0x08 /* Receive Data */

Definition at line 202 of file synclink.h.

#define SerialSignal_TXD   0x02 /* Transmit Data */

Definition at line 200 of file synclink.h.

#define SYNCLINK_AC_DEVICE_ID   0x0090

Definition at line 177 of file synclink.h.

#define SYNCLINK_DEVICE_ID   0x0010

Definition at line 172 of file synclink.h.

#define SYNCLINK_GT2_DEVICE_ID   0x00A0

Definition at line 178 of file synclink.h.

#define SYNCLINK_GT4_DEVICE_ID   0x0080

Definition at line 176 of file synclink.h.

#define SYNCLINK_GT_DEVICE_ID   0x0070

Definition at line 175 of file synclink.h.

#define SYNCLINK_H_VERSION   3.6

Definition at line 14 of file synclink.h.

#define SYNCLINK_SCA_DEVICE_ID   0x0030

Definition at line 174 of file synclink.h.

Typedef Documentation