Go to the documentation of this file.
83 #define STAT_LEC_STUFF 0x01
84 #define STAT_LEC_FORM 0x02
85 #define STAT_LEC_ACK 0x03
86 #define STAT_LEC_BIT1 0x04
87 #define STAT_LEC_BIT0 0x05
88 #define STAT_LEC_CRC 0x06
89 #define STAT_LEC_MASK 0x07
90 #define STAT_TXOK 0x08
91 #define STAT_RXOK 0x10
92 #define STAT_WAKE 0x20
93 #define STAT_WARN 0x40
94 #define STAT_BOFF 0x80
105 #define INTPND_RES 0x01
106 #define INTPND_SET 0x02
107 #define INTPND_UNC 0x03
108 #define RXIE_RES 0x04
109 #define RXIE_SET 0x08
110 #define RXIE_UNC 0x0c
111 #define TXIE_RES 0x10
112 #define TXIE_SET 0x20
113 #define TXIE_UNC 0x30
114 #define MSGVAL_RES 0x40
115 #define MSGVAL_SET 0x80
116 #define MSGVAL_UNC 0xc0
119 #define NEWDAT_RES 0x01
120 #define NEWDAT_SET 0x02
121 #define NEWDAT_UNC 0x03
122 #define MSGLST_RES 0x04
123 #define MSGLST_SET 0x08
124 #define MSGLST_UNC 0x0c
125 #define CPUUPD_RES 0x04
126 #define CPUUPD_SET 0x08
127 #define CPUUPD_UNC 0x0c
128 #define TXRQST_RES 0x10
129 #define TXRQST_SET 0x20
130 #define TXRQST_UNC 0x30
131 #define RMTPND_RES 0x40
132 #define RMTPND_SET 0x80
133 #define RMTPND_UNC 0xc0
136 #define MSGCFG_XTD 0x04
137 #define MSGCFG_DIR 0x08
139 #define MSGOBJ_FIRST 1
140 #define MSGOBJ_LAST 15
142 #define CC770_IO_SIZE 0x100
143 #define CC770_MAX_IRQ 20
144 #define CC770_MAX_MSG 4
146 #define CC770_ECHO_SKB_MAX 1
148 #define cc770_read_reg(priv, member) \
149 priv->read_reg(priv, offsetof(struct cc770_regs, member))
151 #define cc770_write_reg(priv, member, value) \
152 priv->write_reg(priv, offsetof(struct cc770_regs, member), value)
157 #define CC770_OBJ_FLAG_RX 0x01
158 #define CC770_OBJ_FLAG_RTR 0x02
159 #define CC770_OBJ_FLAG_EFF 0x04
170 #define obj2msgobj(o) (MSGOBJ_LAST - (o))