1/*-
2 * Level One LXT318 E1 transceiver registers.
3 * Crystal CS61318 E1 Line Interface Unit registers.
4 * Crystal CS61581 T1/E1 Line Interface Unit registers.
5 *
6 * Copyright (C) 1996 Cronyx Engineering.
7 * Author: Serge Vakulenko, <vak@cronyx.ru>
8 *
9 * Copyright (C) 2003 Cronyx Engineering.
10 * Author: Roman Kurakin, <rik@cronyx.ru>
11 *
12 * This software is distributed with NO WARRANTIES, not even the implied
13 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 *
15 * Authors grant any other persons or organisations permission to use
16 * or modify this software as long as this message is kept with the software,
17 * all derivative works or modified versions.
18 *
19 * Cronyx Id: lxt318.h,v 1.2.4.4 2003/11/14 19:08:45 rik Exp $
20 * $FreeBSD$
21 */
22
23#define LX_WRITE	0x00
24#define LX_READ		0x01
25
26#define LX_CCR1		0x10
27#define LX_CCR2		0x11		/* CS61318 */
28#define LX_EQGAIN	0x12		/* CS61318 */
29#define LX_RAM		0x13		/* CS61318 */
30#define LX_CCR3		0x14		/* CS61581 */
31#define LX_DPEC		0x15		/* CS61581 */
32
33#define LX_LOS		0x01		/* loss of signal condition */
34#define LX_HDB3		0x04		/* HDB3 encoding enable */
35#define LX_RLOOP	0x20		/* remote loopback */
36#define LX_LLOOP	0x40		/* local loopback */
37#define LX_TAOS		0x80		/* transmit all ones */
38
39#define LX_RESET	(LX_RLOOP | LX_LLOOP)	/* reset the chip */
40
41#define LX_CCR2_LH	0x00		/* Long Haul mode */
42#define LX_CCR2_SH	0x01		/* Long Haul mode */
43
44#define LX_CCR3_E1_LH	0x60		/* Long Haul mode */
45