From b0ffd0835c39ff86c7733f72cbdae0850d737a5e Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 27 Dec 2006 12:00:18 +0000 Subject: Add IFM_ETH_RXPAUSE and IFM_ETH_TXPAUSE. From NetBSD. ok brad@, deraadt@ --- 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 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" }, \ -- cgit v1.2.3