diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-08-10 08:45:12 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-08-10 08:45:12 +0000 |
commit | cd7baf31174fc53d131c10ba5dc805cb65f46363 (patch) | |
tree | d6634beca3b2705c4c56c36a7d77b435642f2f93 /sys | |
parent | 5880db9fd4879245236af7d488336e9e2313b4fa (diff) |
Add an additional media subtype IFM_TDM_E1_G704_CRC4 for TDM interfaces.
This makes it possible to distinguish between E1 G.704 mode with and without
CRC4 checksum. Also add an operating mode IFM_TDM_MASTER to specify that
the card has to provide the clock source for the line.
OK deraadt@ canacar@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_media.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h index 780f25cff34..94c39502655 100644 --- a/sys/net/if_media.h +++ b/sys/net/if_media.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_media.h,v 1.18 2005/07/05 01:48:50 brad Exp $ */ +/* $OpenBSD: if_media.h,v 1.19 2005/08/10 08:45:11 claudio Exp $ */ /* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */ /*- @@ -253,9 +253,11 @@ int ifmedia_baudrate(int); #define IFM_TDM_E3 11 /* E3 HDB3+G.751 512? ts */ #define IFM_TDM_E3_G751 12 /* E3 G.751 512 ts */ #define IFM_TDM_E3_G832 13 /* E3 G.832 512 ts */ +#define IFM_TDM_E1_G704_CRC4 14 /* E1 HDB3+G.703+G.704 31 ts + CRC4 */ /* * 6 major ways that networks talk: Drivers enforce independent selection, * meaning, a driver will ensure that only one of these is set at a time. + * Default is cisco hdlc mode with 32 bit CRC. */ #define IFM_TDM_HDLC_CRC16 0x0100 /* Use 16-bit CRC for HDLC instead */ #define IFM_TDM_PPP 0x0200 /* SPPP (dumb) */ @@ -263,6 +265,9 @@ int ifmedia_baudrate(int); #define IFM_TDM_FR_CISCO 0x0800 /* Frame Relay + LMI Cisco */ #define IFM_TDM_FR_ITU 0x1000 /* Frame Relay + LMI ITU "Q933A" */ +/* operating mode */ +#define IFM_TDM_MASTER 0x00010000 /* aka clock source internal */ + /* * Common Access Redundancy Protocol */ @@ -459,6 +464,7 @@ struct ifmedia_description { { IFM_TDM|IFM_TDM_E3, "e3" }, \ { IFM_TDM|IFM_TDM_E3_G751, "e3-g.751" }, \ { IFM_TDM|IFM_TDM_E3_G832, "e3-g.832" }, \ + { IFM_TDM|IFM_TDM_E1_G704_CRC4, "e1-g.704-crc4" }, \ \ { 0, NULL }, \ } @@ -470,6 +476,7 @@ struct ifmedia_description { { IFM_IEEE80211|IFM_IEEE80211_11B, "11b" }, \ { IFM_IEEE80211|IFM_IEEE80211_11G, "11g" }, \ { IFM_IEEE80211|IFM_IEEE80211_FH, "fh" }, \ + { IFM_TDM|IFM_TDM_MASTER, "master" }, \ { 0, NULL }, \ } @@ -575,6 +582,7 @@ struct ifmedia_baudrate { { IFM_TDM|IFM_TDM_E3, IF_Kbps(34368) }, \ { IFM_TDM|IFM_TDM_E3_G751, IF_Kbps(34368) }, \ { IFM_TDM|IFM_TDM_E3_G832, IF_Kbps(34368) }, \ + { IFM_TDM|IFM_TDM_E1_G704_CRC4, IF_Kbps(2048) }, \ \ { 0, 0 }, \ } |