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

Go to the source code of this file.

Data Structures

struct  mcs_cb
 

Macros

#define MCS_MODE_SIR   0
 
#define MCS_MODE_MIR   1
 
#define MCS_MODE_FIR   2
 
#define MCS_CTRL_TIMEOUT   500
 
#define MCS_XMIT_TIMEOUT   500
 
#define MCS_TSC_VISHAY   0 /* Vishay TFD, default choice */
 
#define MCS_TSC_AGILENT   1 /* Agilent 3602/3600 */
 
#define MCS_TSC_SHARP   2 /* Sharp GP2W1000YP */
 
#define MCS_RD_RTYPE   0xC0
 
#define MCS_WR_RTYPE   0x40
 
#define MCS_RDREQ   0x0F
 
#define MCS_WRREQ   0x0E
 
#define MCS_MODE_REG   0
 
#define MCS_FIR   ((__u16)0x0001)
 
#define MCS_SIR16US   ((__u16)0x0002)
 
#define MCS_BBTG   ((__u16)0x0004)
 
#define MCS_ASK   ((__u16)0x0008)
 
#define MCS_PARITY   ((__u16)0x0010)
 
#define MCS_SPEED_SHIFT   5
 
#define MCS_SPEED_MASK   ((__u16)0x00E0)
 
#define MCS_SPEED(x)   ((x & MCS_SPEED_MASK) >> MCS_SPEED_SHIFT)
 
#define MCS_SPEED_2400   ((0 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_9600   ((1 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_19200   ((2 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_38400   ((3 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_57600   ((4 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_115200   ((5 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_576000   ((6 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_SPEED_1152000   ((7 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)
 
#define MCS_PLLPWDN   ((__u16)0x0100)
 
#define MCS_DRIVER   ((__u16)0x0200)
 
#define MCS_DTD   ((__u16)0x0400)
 
#define MCS_DIR   ((__u16)0x0800)
 
#define MCS_SIPEN   ((__u16)0x1000)
 
#define MCS_SENDSIP   ((__u16)0x2000)
 
#define MCS_CHGDIR   ((__u16)0x4000)
 
#define MCS_RESET   ((__u16)0x8000)
 
#define MCS_XCVR_REG   2
 
#define MCS_MODE0   ((__u16)0x0001)
 
#define MCS_STFIR   ((__u16)0x0002)
 
#define MCS_XCVR_CONF   ((__u16)0x0004)
 
#define MCS_RXFAST   ((__u16)0x0008)
 
#define MCS_TXCUR_SHIFT   4
 
#define MCS_TXCUR_MASK   ((__u16)0x0070)
 
#define MCS_TXCUR(x)   ((x & MCS_TXCUR_MASK) >> MCS_TXCUR_SHIFT)
 
#define MCS_SETTXCUR(x, y)   ((x & ~MCS_TXCUR_MASK) | (y << MCS_TXCUR_SHIFT) & MCS_TXCUR_MASK)
 
#define MCS_MODE1   ((__u16)0x0080)
 
#define MCS_SMODE0   ((__u16)0x0100)
 
#define MCS_SMODE1   ((__u16)0x0200)
 
#define MCS_INVTX   ((__u16)0x0400)
 
#define MCS_INVRX   ((__u16)0x0800)
 
#define MCS_MINRXPW_REG   4
 
#define MCS_RESV_REG   7
 
#define MCS_IRINTX   ((__u16)0x0001)
 
#define MCS_IRINRX   ((__u16)0x0002)
 

Macro Definition Documentation

#define MCS_ASK   ((__u16)0x0008)

Definition at line 53 of file mcs7780.h.

#define MCS_BBTG   ((__u16)0x0004)

Definition at line 52 of file mcs7780.h.

#define MCS_CHGDIR   ((__u16)0x4000)

Definition at line 75 of file mcs7780.h.

#define MCS_CTRL_TIMEOUT   500

Definition at line 35 of file mcs7780.h.

#define MCS_DIR   ((__u16)0x0800)

Definition at line 72 of file mcs7780.h.

#define MCS_DRIVER   ((__u16)0x0200)

Definition at line 70 of file mcs7780.h.

#define MCS_DTD   ((__u16)0x0400)

Definition at line 71 of file mcs7780.h.

#define MCS_FIR   ((__u16)0x0001)

Definition at line 50 of file mcs7780.h.

#define MCS_INVRX   ((__u16)0x0800)

Definition at line 95 of file mcs7780.h.

#define MCS_INVTX   ((__u16)0x0400)

Definition at line 94 of file mcs7780.h.

#define MCS_IRINRX   ((__u16)0x0002)

Definition at line 101 of file mcs7780.h.

#define MCS_IRINTX   ((__u16)0x0001)

Definition at line 100 of file mcs7780.h.

#define MCS_MINRXPW_REG   4

Definition at line 97 of file mcs7780.h.

#define MCS_MODE0   ((__u16)0x0001)

Definition at line 80 of file mcs7780.h.

#define MCS_MODE1   ((__u16)0x0080)

Definition at line 91 of file mcs7780.h.

#define MCS_MODE_FIR   2

Definition at line 33 of file mcs7780.h.

#define MCS_MODE_MIR   1

Definition at line 32 of file mcs7780.h.

#define MCS_MODE_REG   0

Definition at line 49 of file mcs7780.h.

#define MCS_MODE_SIR   0

Definition at line 31 of file mcs7780.h.

#define MCS_PARITY   ((__u16)0x0010)

Definition at line 54 of file mcs7780.h.

#define MCS_PLLPWDN   ((__u16)0x0100)

Definition at line 69 of file mcs7780.h.

#define MCS_RD_RTYPE   0xC0

Definition at line 43 of file mcs7780.h.

#define MCS_RDREQ   0x0F

Definition at line 45 of file mcs7780.h.

#define MCS_RESET   ((__u16)0x8000)

Definition at line 76 of file mcs7780.h.

#define MCS_RESV_REG   7

Definition at line 99 of file mcs7780.h.

#define MCS_RXFAST   ((__u16)0x0008)

Definition at line 83 of file mcs7780.h.

#define MCS_SENDSIP   ((__u16)0x2000)

Definition at line 74 of file mcs7780.h.

#define MCS_SETTXCUR (   x,
  y 
)    ((x & ~MCS_TXCUR_MASK) | (y << MCS_TXCUR_SHIFT) & MCS_TXCUR_MASK)

Definition at line 88 of file mcs7780.h.

#define MCS_SIPEN   ((__u16)0x1000)

Definition at line 73 of file mcs7780.h.

#define MCS_SIR16US   ((__u16)0x0002)

Definition at line 51 of file mcs7780.h.

#define MCS_SMODE0   ((__u16)0x0100)

Definition at line 92 of file mcs7780.h.

#define MCS_SMODE1   ((__u16)0x0200)

Definition at line 93 of file mcs7780.h.

#define MCS_SPEED (   x)    ((x & MCS_SPEED_MASK) >> MCS_SPEED_SHIFT)

Definition at line 59 of file mcs7780.h.

#define MCS_SPEED_115200   ((5 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 65 of file mcs7780.h.

#define MCS_SPEED_1152000   ((7 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 67 of file mcs7780.h.

#define MCS_SPEED_19200   ((2 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 62 of file mcs7780.h.

#define MCS_SPEED_2400   ((0 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 60 of file mcs7780.h.

#define MCS_SPEED_38400   ((3 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 63 of file mcs7780.h.

#define MCS_SPEED_57600   ((4 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 64 of file mcs7780.h.

#define MCS_SPEED_576000   ((6 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 66 of file mcs7780.h.

#define MCS_SPEED_9600   ((1 << MCS_SPEED_SHIFT) & MCS_SPEED_MASK)

Definition at line 61 of file mcs7780.h.

#define MCS_SPEED_MASK   ((__u16)0x00E0)

Definition at line 58 of file mcs7780.h.

#define MCS_SPEED_SHIFT   5

Definition at line 57 of file mcs7780.h.

#define MCS_STFIR   ((__u16)0x0002)

Definition at line 81 of file mcs7780.h.

#define MCS_TSC_AGILENT   1 /* Agilent 3602/3600 */

Definition at line 39 of file mcs7780.h.

#define MCS_TSC_SHARP   2 /* Sharp GP2W1000YP */

Definition at line 40 of file mcs7780.h.

#define MCS_TSC_VISHAY   0 /* Vishay TFD, default choice */

Definition at line 38 of file mcs7780.h.

#define MCS_TXCUR (   x)    ((x & MCS_TXCUR_MASK) >> MCS_TXCUR_SHIFT)

Definition at line 87 of file mcs7780.h.

#define MCS_TXCUR_MASK   ((__u16)0x0070)

Definition at line 86 of file mcs7780.h.

#define MCS_TXCUR_SHIFT   4

Definition at line 85 of file mcs7780.h.

#define MCS_WR_RTYPE   0x40

Definition at line 44 of file mcs7780.h.

#define MCS_WRREQ   0x0E

Definition at line 46 of file mcs7780.h.

#define MCS_XCVR_CONF   ((__u16)0x0004)

Definition at line 82 of file mcs7780.h.

#define MCS_XCVR_REG   2

Definition at line 79 of file mcs7780.h.

#define MCS_XMIT_TIMEOUT   500

Definition at line 36 of file mcs7780.h.