summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-02-20 11:18:00 +0000
committerjulian <julian@FreeBSD.org>1999-02-20 11:18:00 +0000
commit16c8d9e8d0ca48475483b6c811b4af317c734ab0 (patch)
treee3e5ce3fffddfb7abb04759c7f4a6af8d76a18c1 /sys/net/if_media.h
parent0fd1dd9aabd45a0d145034aef2766eb2a88c1185 (diff)
downloadFreeBSD-src-16c8d9e8d0ca48475483b6c811b4af317c734ab0.zip
FreeBSD-src-16c8d9e8d0ca48475483b6c811b4af317c734ab0.tar.gz
World, I'd like you to meet the first FreeBSD token Ring driver.
This is for various Olicom cards. An IBM driver is following. This patch also adds support to tcpdump to decode packets on tokenring. Congratulations to the proud father.. (below) Submitted by: Larry Lile <lile@stdio.com>
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r--sys/net/if_media.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index b79194f..23b2b0a 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,5 +1,5 @@
/* $NetBSD: if_media.h,v 1.3 1997/03/26 01:19:27 thorpej Exp $ */
-/* $Id$ */
+/* $Id: if_media.h,v 1.2 1997/05/03 20:58:10 peter Exp $ */
/*
* Copyright (c) 1997
@@ -137,9 +137,14 @@ int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
#define IFM_TOK_STP16 4 /* Shielded twisted pair 16m - DB9 */
#define IFM_TOK_UTP4 5 /* Unshielded twisted pair 4m - RJ45 */
#define IFM_TOK_UTP16 6 /* Unshielded twisted pair 16m - RJ45 */
+#define IFM_TOK_STP100 7 /* Shielded twisted pair 100m - DB9 */
+#define IFM_TOK_UTP100 8 /* Unshielded twisted pair 100m - RJ45 */
#define IFM_TOK_ETR 0x00000200 /* Early token release */
#define IFM_TOK_SRCRT 0x00000400 /* Enable source routing features */
#define IFM_TOK_ALLR 0x00000800 /* All routes / Single route bcast */
+#define IFM_TOK_DTR 0x00002000 /* Dedicated token ring */
+#define IFM_TOK_CLASSIC 0x00004000 /* Classic token ring */
+#define IFM_TOK_AUTO 0x00008000 /* Automatic Dedicate/Classic token ring */
/*
* FDDI
@@ -186,9 +191,10 @@ int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
/*
* Macros to extract various bits of information from the media word.
*/
-#define IFM_TYPE(x) ((x) & IFM_NMASK)
-#define IFM_SUBTYPE(x) ((x) & IFM_TMASK)
-#define IFM_INST(x) (((x) & IFM_IMASK) >> IFM_ISHIFT)
+#define IFM_TYPE(x) ((x) & IFM_NMASK)
+#define IFM_SUBTYPE(x) ((x) & IFM_TMASK)
+#define IFM_TYPE_OPTIONS(x) ((x) & IFM_OMASK)
+#define IFM_INST(x) (((x) & IFM_IMASK) >> IFM_ISHIFT)
/*
* NetBSD extension not defined in the BSDI API. This is used in various
@@ -245,6 +251,8 @@ struct ifmedia_description {
{ IFM_TOK_STP16, "DB9/16Mbit" }, \
{ IFM_TOK_UTP4, "UTP/4Mbit" }, \
{ IFM_TOK_UTP16, "UTP/16Mbit" }, \
+ { IFM_TOK_STP100, "STP/100Mbit" }, \
+ { IFM_TOK_UTP100, "UTP/100Mbit" }, \
{ 0, NULL }, \
}
@@ -253,6 +261,8 @@ struct ifmedia_description {
{ IFM_TOK_STP16, "16STP" }, \
{ IFM_TOK_UTP4, "4UTP" }, \
{ IFM_TOK_UTP16, "16UTP" }, \
+ { IFM_TOK_STP100, "100STP" }, \
+ { IFM_TOK_UTP100, "100UTP" }, \
{ 0, NULL }, \
}
@@ -260,6 +270,9 @@ struct ifmedia_description {
{ IFM_TOK_ETR, "EarlyTokenRelease" }, \
{ IFM_TOK_SRCRT, "SourceRouting" }, \
{ IFM_TOK_ALLR, "AllRoutes" }, \
+ { IFM_TOK_DTR, "Dedicated" }, \
+ { IFM_TOK_CLASSIC,"Classic" }, \
+ { IFM_TOK_AUTO, " " }, \
{ 0, NULL }, \
}
OpenPOWER on IntegriCloud