Go to the documentation of this file.
51 #define M_REG(reg, chan) (reg + 0x80*chan)
52 #define DRX_REG(reg, chan) (reg + 0x40*chan)
53 #define DTX_REG(reg, chan) (reg + 0x20*(2*chan + 1))
54 #define TRX_REG(reg, chan) (reg + 0x20*chan)
55 #define TTX_REG(reg, chan) (reg + 0x10*(2*chan + 1))
56 #define ST_REG(reg, chan) (reg + 0x80*chan)
57 #define IR0_DRX(val, chan) ((val)<<(8*(chan)))
58 #define IR0_DTX(val, chan) ((val)<<(4*(2*chan + 1)))
59 #define IR0_M(val, chan) ((val)<<(8*(chan)))
62 #define MSCI0_OFFSET 0x00
63 #define MSCI1_OFFSET 0x80
113 #define TIMER0RX_OFFSET 0x00
114 #define TIMER0TX_OFFSET 0x10
115 #define TIMER1RX_OFFSET 0x20
116 #define TIMER1TX_OFFSET 0x30
131 #define DSR_RX(chan) (0x48 + 2*chan)
132 #define DSR_TX(chan) (0x49 + 2*chan)
133 #define DIR_RX(chan) (0x4c + 2*chan)
134 #define DIR_TX(chan) (0x4d + 2*chan)
135 #define FCT_RX(chan) (0x50 + 2*chan)
136 #define FCT_TX(chan) (0x51 + 2*chan)
137 #define DMR_RX(chan) (0x54 + 2*chan)
138 #define DMR_TX(chan) (0x55 + 2*chan)
139 #define DCR_RX(chan) (0x58 + 2*chan)
140 #define DCR_TX(chan) (0x59 + 2*chan)
143 #define DMAC0RX_OFFSET 0x00
144 #define DMAC0TX_OFFSET 0x20
145 #define DMAC1RX_OFFSET 0x40
146 #define DMAC1TX_OFFSET 0x60
211 #define DST_RBIT 0x10
213 #define DST_SHRT 0x40
218 #define ST_TX_EOM 0x80
219 #define ST_TX_UNDRRUN 0x08
220 #define ST_TX_OWNRSHP 0x02
221 #define ST_TX_EOT 0x01
223 #define ST_RX_EOM 0x80
224 #define ST_RX_SHORT 0x40
225 #define ST_RX_ABORT 0x20
226 #define ST_RX_RESBIT 0x10
227 #define ST_RX_OVERRUN 0x08
228 #define ST_RX_CRC 0x04
229 #define ST_RX_OWNRSHP 0x02
231 #define ST_ERROR_MASK 0x7C
264 #define IR0_DMIC 0x00000001
265 #define IR0_DMIB 0x00000002
266 #define IR0_DMIA 0x00000004
267 #define IR0_EFT 0x00000008
268 #define IR0_DMAREQ 0x00010000
269 #define IR0_TXINT 0x00020000
270 #define IR0_RXINTB 0x00040000
271 #define IR0_RXINTA 0x00080000
272 #define IR0_TXRDY 0x00100000
273 #define IR0_RXRDY 0x00200000
275 #define MD0_CRC16_0 0x00
276 #define MD0_CRC16_1 0x01
277 #define MD0_CRC32 0x02
278 #define MD0_CRC_CCITT 0x03
279 #define MD0_CRCC0 0x04
280 #define MD0_CRCC1 0x08
281 #define MD0_AUTO_ENA 0x10
282 #define MD0_ASYNC 0x00
283 #define MD0_BY_MSYNC 0x20
284 #define MD0_BY_BISYNC 0x40
285 #define MD0_BY_EXT 0x60
286 #define MD0_BIT_SYNC 0x80
287 #define MD0_TRANSP 0xc0
289 #define MD0_HDLC 0x80
291 #define MD0_CRC_NONE 0x00
292 #define MD0_CRC_16_0 0x04
293 #define MD0_CRC_16 0x05
294 #define MD0_CRC_ITU32 0x06
295 #define MD0_CRC_ITU 0x07
297 #define MD1_NOADDR 0x00
298 #define MD1_SADDR1 0x40
299 #define MD1_SADDR2 0x80
300 #define MD1_DADDR 0xc0
302 #define MD2_NRZI_IEEE 0x40
303 #define MD2_MANCHESTER 0x80
304 #define MD2_FM_MARK 0xA0
305 #define MD2_FM_SPACE 0xC0
306 #define MD2_LOOPBACK 0x03
308 #define MD2_F_DUPLEX 0x00
309 #define MD2_AUTO_ECHO 0x01
310 #define MD2_LOOP_HI_Z 0x02
311 #define MD2_LOOP_MIR 0x03
312 #define MD2_ADPLL_X8 0x00
313 #define MD2_ADPLL_X16 0x08
314 #define MD2_ADPLL_X32 0x10
316 #define MD2_NRZI 0x20
317 #define MD2_NRZ_IEEE 0x40
318 #define MD2_MANCH 0x00
326 #define CTL_IDLC 0x10
327 #define CTL_UDRNC 0x20
328 #define CTL_URSKP 0x40
329 #define CTL_URCT 0x80
331 #define CTL_NORTS 0x01
332 #define CTL_NODTR 0x02
333 #define CTL_IDLE 0x10
339 #define RXS_ECLK 0x00
340 #define RXS_ECLK_NS 0x20
341 #define RXS_IBRG 0x40
342 #define RXS_PLL1 0x50
343 #define RXS_PLL2 0x60
344 #define RXS_PLL3 0x70
345 #define RXS_DRTXC 0x80
351 #define TXS_ECLK 0x00
352 #define TXS_IBRG 0x40
353 #define TXS_RCLK 0x60
354 #define TXS_DTRXC 0x80
356 #define EXS_RES0 0x01
357 #define EXS_RES1 0x02
358 #define EXS_RES2 0x04
359 #define EXS_TES0 0x10
360 #define EXS_TES1 0x20
361 #define EXS_TES2 0x40
363 #define CLK_BRG_MASK 0x0F
364 #define CLK_PIN_OUT 0x80
365 #define CLK_LINE 0x00
367 #define CLK_TX_RXCLK 0x60
369 #define CMD_RX_RST 0x11
370 #define CMD_RX_ENA 0x12
371 #define CMD_RX_DIS 0x13
372 #define CMD_RX_CRC_INIT 0x14
373 #define CMD_RX_MSG_REJ 0x15
374 #define CMD_RX_MP_SRCH 0x16
375 #define CMD_RX_CRC_EXC 0x17
376 #define CMD_RX_CRC_FRC 0x18
377 #define CMD_TX_RST 0x01
378 #define CMD_TX_ENA 0x02
379 #define CMD_TX_DISA 0x03
380 #define CMD_TX_CRC_INIT 0x04
381 #define CMD_TX_CRC_EXC 0x05
382 #define CMD_TX_EOM 0x06
383 #define CMD_TX_ABORT 0x07
384 #define CMD_TX_MP_ON 0x08
385 #define CMD_TX_BUF_CLR 0x09
386 #define CMD_TX_DISB 0x0b
387 #define CMD_CH_RST 0x21
388 #define CMD_SRCH_MODE 0x31
391 #define CMD_RESET 0x21
392 #define CMD_TX_ENABLE 0x02
393 #define CMD_RX_ENABLE 0x12
395 #define ST0_RXRDY 0x01
396 #define ST0_TXRDY 0x02
397 #define ST0_RXINTB 0x20
398 #define ST0_RXINTA 0x40
399 #define ST0_TXINT 0x80
401 #define ST1_IDLE 0x01
402 #define ST1_ABORT 0x02
403 #define ST1_CDCD 0x04
404 #define ST1_CCTS 0x08
405 #define ST1_SYN_FLAG 0x10
406 #define ST1_CLMD 0x20
407 #define ST1_TXIDLE 0x40
408 #define ST1_UDRN 0x80
410 #define ST2_CRCE 0x04
411 #define ST2_ONRN 0x08
412 #define ST2_RBIT 0x10
413 #define ST2_ABORT 0x20
414 #define ST2_SHORT 0x40
417 #define ST3_RX_ENA 0x01
418 #define ST3_TX_ENA 0x02
421 #define ST3_SRCH_MODE 0x10
422 #define ST3_SLOOP 0x20
425 #define ST4_RDNR 0x01
426 #define ST4_RDCR 0x02
427 #define ST4_TDNR 0x04
428 #define ST4_TDCR 0x08
429 #define ST4_OCLM 0x20
431 #define ST4_CGPI 0x80
433 #define FST_CRCEF 0x04
434 #define FST_OVRNF 0x08
435 #define FST_RBIF 0x10
436 #define FST_ABTF 0x20
437 #define FST_SHRTF 0x40
438 #define FST_EOMF 0x80
440 #define IE0_RXRDY 0x01
441 #define IE0_TXRDY 0x02
442 #define IE0_RXINTB 0x20
443 #define IE0_RXINTA 0x40
444 #define IE0_TXINT 0x80
445 #define IE0_UDRN 0x00008000
446 #define IE0_CDCD 0x00000400
448 #define IE1_IDLD 0x01
449 #define IE1_ABTD 0x02
450 #define IE1_CDCD 0x04
451 #define IE1_CCTS 0x08
452 #define IE1_SYNCD 0x10
453 #define IE1_CLMD 0x20
455 #define IE1_UDRN 0x80
457 #define IE2_CRCE 0x04
458 #define IE2_OVRN 0x08
459 #define IE2_RBIT 0x10
461 #define IE2_SHRT 0x40
464 #define IE4_RDNR 0x01
465 #define IE4_RDCR 0x02
466 #define IE4_TDNR 0x04
467 #define IE4_TDCR 0x08
468 #define IE4_OCLM 0x20
470 #define IE4_CGPI 0x80
472 #define FIE_CRCEF 0x04
473 #define FIE_OVRNF 0x08
474 #define FIE_RBIF 0x10
475 #define FIE_ABTF 0x20
476 #define FIE_SHRTF 0x40
477 #define FIE_EOMF 0x80
482 #define DSR_UDRF 0x04
490 #define DIR_UDRF 0x04
497 #define DIR_REFE 0x04
498 #define DIR_UDRFE 0x04
499 #define DIR_COAE 0x08
500 #define DIR_COFE 0x10
501 #define DIR_BOFE 0x20
502 #define DIR_EOME 0x40
503 #define DIR_EOTE 0x80
505 #define DMR_CNTE 0x02
507 #define DMR_SEOME 0x08
508 #define DMR_TMOD 0x10
510 #define DMER_DME 0x80
512 #define DCR_SW_ABT 0x01
513 #define DCR_FCT_CLR 0x02
515 #define DCR_ABORT 0x01
516 #define DCR_CLEAR_EOF 0x02
518 #define PCR_COTE 0x80
525 #define PCR_BURST 0x80