summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-27 12:00:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-27 12:00:18 +0000
commitb0ffd0835c39ff86c7733f72cbdae0850d737a5e (patch)
tree6851a96c4edd4007fa0e837cedb8f8f8eb8e30e7 /sys
parent4f11120ae35cf2512b32e07aa8fa2c8f405498cc (diff)
Add IFM_ETH_RXPAUSE and IFM_ETH_TXPAUSE. From NetBSD.
ok brad@, deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_media.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index fd6c672a4ff..a271b06bdf3 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.21 2006/06/21 07:08:41 brad Exp $ */
+/* $OpenBSD: if_media.h,v 1.22 2006/12/27 12:00:17 kettenis Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
@@ -185,6 +185,8 @@ int ifmedia_baudrate(int);
#define IFM_10G_CX4 20 /* 10GBase-CX4 - copper */
#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */
+#define IFM_ETH_RXPAUSE 0x00000200 /* receive PAUSE frames */
+#define IFM_ETH_TXPAUSE 0x00000400 /* transmit PAUSE frames */
/*
* Token ring
@@ -505,6 +507,8 @@ struct ifmedia_description {
{ IFM_LOOP, "loop" }, \
\
{ IFM_ETHER|IFM_ETH_MASTER, "master" }, \
+ { IFM_ETHER|IFM_ETH_RXPAUSE, "rxpause" }, \
+ { IFM_ETHER|IFM_ETH_TXPAUSE, "txpause" }, \
\
{ IFM_TOKEN|IFM_TOK_ETR, "EarlyTokenRelease" }, \
{ IFM_TOKEN|IFM_TOK_ETR, "ETR" }, \