diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-10-07 22:21:21 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-10-07 22:21:21 +0000 |
commit | 76f6bf362addbda005740e01681d9fea83d7fbf6 (patch) | |
tree | c7c43bc803caf79b3b4568b0a2c5b07f1f5b6139 /sys/net/if_media.h | |
parent | 1a75f4ea75bdcf462019b48029536e377102faa9 (diff) |
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@
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r-- | sys/net/if_media.h | 6 |
1 files changed, 5 insertions, 1 deletions
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" }, \ |