summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_vrreg.h
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2002-08-15 04:04:53 +0000
committersilby <silby@FreeBSD.org>2002-08-15 04:04:53 +0000
commite4af9029cce2e19945be82d95c075561d2e80ae9 (patch)
treed6f049cd22ccbbf3bfe7dbad3878defeefef92d5 /sys/pci/if_vrreg.h
parent849f861756ce407ff63685e6bee7aa674929e2fb (diff)
downloadFreeBSD-src-e4af9029cce2e19945be82d95c075561d2e80ae9.zip
FreeBSD-src-e4af9029cce2e19945be82d95c075561d2e80ae9.tar.gz
Improve handling of TX errors. Early reports indicate that this
elimiates the driver lockup problem reported by many. Concepts used were taken from Via's if_fet driver. Verification and implementation were done by Thomas Nystrom. Submitted by: Thomas Nystrom <thn@saeab.se> MFC after: 3 days
Diffstat (limited to 'sys/pci/if_vrreg.h')
-rw-r--r--sys/pci/if_vrreg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h
index 73b074e..47718bb 100644
--- a/sys/pci/if_vrreg.h
+++ b/sys/pci/if_vrreg.h
@@ -149,6 +149,8 @@
#define VR_ISR_STATSOFLOW 0x0080 /* stats counter oflow */
#define VR_ISR_RX_EARLY 0x0100 /* rx early */
#define VR_ISR_LINKSTAT 0x0200 /* MII status change */
+#define VR_ISR_ETI 0x0200 /* Tx early (3043/3071) */
+#define VR_ISR_UDFI 0x0200 /* Tx FIFO underflow (3065) */
#define VR_ISR_RX_OFLOW 0x0400 /* rx FIFO overflow */
#define VR_ISR_RX_DROPPED 0x0800
#define VR_ISR_RX_NOBUF2 0x1000
@@ -368,6 +370,7 @@ struct vr_desc {
#define VR_TXSTAT_ABRT 0x00000100
#define VR_TXSTAT_LATECOLL 0x00000200
#define VR_TXSTAT_CARRLOST 0x00000400
+#define VR_TXSTAT_UDF 0x00000800
#define VR_TXSTAT_BUSERR 0x00002000
#define VR_TXSTAT_JABTIMEO 0x00004000
#define VR_TXSTAT_ERRSUM 0x00008000
OpenPOWER on IntegriCloud