diff options
author | Roman Kurakin <rik@FreeBSD.org> | 2004-02-23 20:19:00 +0000 |
---|---|---|
committer | Roman Kurakin <rik@FreeBSD.org> | 2004-02-23 20:19:00 +0000 |
commit | cee1270c1af563b8877f3ee833694ca693505177 (patch) | |
tree | 437ea38b10203cbe918b27dad6973dcd481e3664 /sys/dev/ctau/lxt318.h | |
parent | b51049906c1fee1e4630b83c64be043f8973d9e5 (diff) | |
download | src-cee1270c1af563b8877f3ee833694ca693505177.tar.gz src-cee1270c1af563b8877f3ee833694ca693505177.zip |
Add support for Cronyx-Tau. For now I added only Tau-ISA files, system files
would be changed in next patches, after extra verifications.
Approved by: imp (mentor)
Notes
Notes:
svn path=/head/; revision=126177
Diffstat (limited to 'sys/dev/ctau/lxt318.h')
-rw-r--r-- | sys/dev/ctau/lxt318.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/dev/ctau/lxt318.h b/sys/dev/ctau/lxt318.h new file mode 100644 index 000000000000..f194b7bda03b --- /dev/null +++ b/sys/dev/ctau/lxt318.h @@ -0,0 +1,44 @@ +/* + * Level One LXT318 E1 transceiver registers. + * Crystal CS61318 E1 Line Interface Unit registers. + * Crystal CS61581 T1/E1 Line Interface Unit registers. + * + * Copyright (C) 1996 Cronyx Engineering. + * Author: Serge Vakulenko, <vak@cronyx.ru> + * + * Copyright (C) 2003 Cronyx Engineering. + * Author: Roman Kurakin, <rik@cronyx.ru> + * + * This software is distributed with NO WARRANTIES, not even the implied + * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * Authors grant any other persons or organisations permission to use + * or modify this software as long as this message is kept with the software, + * all derivative works or modified versions. + * + * Cronyx Id: lxt318.h,v 1.2.4.4 2003/11/14 19:08:45 rik Exp $ + * $FreeBSD$ + */ + +#define LX_WRITE 0x00 +#define LX_READ 0x01 + +#define LX_CCR1 0x10 +#define LX_CCR2 0x11 /* CS61318 */ +#define LX_EQGAIN 0x12 /* CS61318 */ +#define LX_RAM 0x13 /* CS61318 */ +#define LX_CCR3 0x14 /* CS61581 */ +#define LX_DPEC 0x15 /* CS61581 */ + +#define LX_LOS 0x01 /* loss of signal condition */ +#define LX_HDB3 0x04 /* HDB3 encoding enable */ +#define LX_RLOOP 0x20 /* remote loopback */ +#define LX_LLOOP 0x40 /* local loopback */ +#define LX_TAOS 0x80 /* transmit all ones */ + +#define LX_RESET (LX_RLOOP | LX_LLOOP) /* reset the chip */ + +#define LX_CCR2_LH 0x00 /* Long Haul mode */ +#define LX_CCR2_SH 0x01 /* Long Haul mode */ + +#define LX_CCR3_E1_LH 0x60 /* Long Haul mode */ |