From 76f6bf362addbda005740e01681d9fea83d7fbf6 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 7 Oct 2004 22:21:21 +0000 Subject: Add an Ethernet option bit for master mode (for 1000baseT, the link master provides the clock -- this is normally the switch, but if you are doing back-to-back NICs, you need to tell one side to be the master). ok mcbride@ --- sys/net/if_media.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/net/if_media.h') diff --git a/sys/net/if_media.h b/sys/net/if_media.h index c56abd96413..7f9df522507 100644 --- a/sys/net/if_media.h +++ b/sys/net/if_media.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_media.h,v 1.14 2004/06/27 03:44:50 millert Exp $ */ +/* $OpenBSD: if_media.h,v 1.15 2004/10/07 22:21:20 brad Exp $ */ /* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */ /*- @@ -182,6 +182,8 @@ int ifmedia_baudrate(int); #define IFM_1000_TX IFM_1000_T /* for backwards compatibility */ #define IFM_HPNA_1 17 /* HomePNA 1.0 (1Mb/s) */ +#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */ + /* * Token ring */ @@ -467,6 +469,8 @@ struct ifmedia_description { { IFM_LOOP, "hw-loopback"}, \ { IFM_LOOP, "loop" }, \ \ + { IFM_ETHER|IFM_ETH_MASTER, "master" }, \ + \ { IFM_TOKEN|IFM_TOK_ETR, "EarlyTokenRelease" }, \ { IFM_TOKEN|IFM_TOK_ETR, "ETR" }, \ { IFM_TOKEN|IFM_TOK_SRCRT, "SourceRouting" }, \ -- cgit v1.2.3