summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr/if_vrreg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-11-28 19:03:59 +0000
committeryongari <yongari@FreeBSD.org>2011-11-28 19:03:59 +0000
commit11947ff83fc62f3653b46ecb8619c9539a687176 (patch)
treed54f12193342cbd1fd09b38398d4fcc765c1e278 /sys/dev/vr/if_vrreg.h
parent95671c0c24ee792c781b2b8adb0df9c2b561f1f4 (diff)
downloadFreeBSD-src-11947ff83fc62f3653b46ecb8619c9539a687176.zip
FreeBSD-src-11947ff83fc62f3653b46ecb8619c9539a687176.tar.gz
Announce flow control capability to PHY drivers and enable flow
control for all vr(4) controllers that support it. It's known that old vr(4) controllers(Rhine II) does not support TX pause but Rhine III supports both TX and RX pause. Make TX pause really work on Rhine III by letting controller know available RX buffers. While here, adjust XON/XOFF parameters to get better performance with flow control.
Diffstat (limited to 'sys/dev/vr/if_vrreg.h')
-rw-r--r--sys/dev/vr/if_vrreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vr/if_vrreg.h b/sys/dev/vr/if_vrreg.h
index 5ba09d9..2445bab 100644
--- a/sys/dev/vr/if_vrreg.h
+++ b/sys/dev/vr/if_vrreg.h
@@ -722,6 +722,7 @@ struct vr_softc {
uint8_t vr_revid; /* Rhine chip revision */
int vr_flags; /* See VR_F_* below */
#define VR_F_RESTART 0x0001 /* Restart unit on next tick */
+#define VR_F_TXPAUSE 0x0010
#define VR_F_SUSPENDED 0x2000
#define VR_F_DETACHED 0x4000
#define VR_F_LINK 0x8000
OpenPOWER on IntegriCloud