source: svn/trunk/newcon3bcm2_21bu/toolchain/mipsel-linux-uclibc/include/linux/hdlc.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1/*
2 * Generic HDLC support routines for Linux
3 *
4 * Copyright (C) 1999-2003 Krzysztof Halasa <khc@pm.waw.pl>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of version 2 of the GNU General Public License
8 * as published by the Free Software Foundation.
9 */
10
11#ifndef __HDLC_H
12#define __HDLC_H
13
14#define GENERIC_HDLC_VERSION 4  /* For synchronization with sethdlc utility */
15
16#define CLOCK_DEFAULT   0       /* Default setting */
17#define CLOCK_EXT       1       /* External TX and RX clock - DTE */
18#define CLOCK_INT       2       /* Internal TX and RX clock - DCE */
19#define CLOCK_TXINT     3       /* Internal TX and external RX clock */
20#define CLOCK_TXFROMRX  4       /* TX clock derived from external RX clock */
21
22
23#define ENCODING_DEFAULT        0 /* Default setting */
24#define ENCODING_NRZ            1
25#define ENCODING_NRZI           2
26#define ENCODING_FM_MARK        3
27#define ENCODING_FM_SPACE       4
28#define ENCODING_MANCHESTER     5
29
30
31#define PARITY_DEFAULT          0 /* Default setting */
32#define PARITY_NONE             1 /* No parity */
33#define PARITY_CRC16_PR0        2 /* CRC16, initial value 0x0000 */
34#define PARITY_CRC16_PR1        3 /* CRC16, initial value 0xFFFF */
35#define PARITY_CRC16_PR0_CCITT  4 /* CRC16, initial 0x0000, ITU-T version */
36#define PARITY_CRC16_PR1_CCITT  5 /* CRC16, initial 0xFFFF, ITU-T version */
37#define PARITY_CRC32_PR0_CCITT  6 /* CRC32, initial value 0x00000000 */
38#define PARITY_CRC32_PR1_CCITT  7 /* CRC32, initial value 0xFFFFFFFF */
39
40#define LMI_DEFAULT             0 /* Default setting */
41#define LMI_NONE                1 /* No LMI, all PVCs are static */
42#define LMI_ANSI                2 /* ANSI Annex D */
43#define LMI_CCITT               3 /* ITU-T Annex A */
44
45#define HDLC_MAX_MTU 1500       /* Ethernet 1500 bytes */
46#define HDLC_MAX_MRU (HDLC_MAX_MTU + 10 + 14 + 4) /* for ETH+VLAN over FR */
47
48#endif /* __HDLC_H */
Note: See TracBrowser for help on using the repository browser.