summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_jmevar.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-29 01:55:54 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-29 01:55:54 +0000
commit845181f6b63254e0d80895547eaa29592e6a3a7f (patch)
treeda02141d32162882e8d92e99df6520652fc13867 /sys/dev/pci/if_jmevar.h
parent4d6c82286aaa3a5ff77535a51637f36a6692ae36 (diff)
- Add a workaround field to the softc struct.
- Move the extended FIFO workaround from the capabilities field to the workaround field. - Add General purpose register 1 defines for the workarounds. - Enable a workaround for CRC errors that can be experienced with A2 revision adapters. - Add a workaround for packet loss that can be experienced with A2 revision adapters when in 10/100 mode with half duplex. From DraonFly - Rename the workaround flags so they describe what is being worked around. ok jsg@
Diffstat (limited to 'sys/dev/pci/if_jmevar.h')
-rw-r--r--sys/dev/pci/if_jmevar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/if_jmevar.h b/sys/dev/pci/if_jmevar.h
index c8024a624a2..19a70545aa3 100644
--- a/sys/dev/pci/if_jmevar.h
+++ b/sys/dev/pci/if_jmevar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_jmevar.h,v 1.2 2008/10/20 19:36:54 brad Exp $ */
+/* $OpenBSD: if_jmevar.h,v 1.3 2008/10/29 01:55:53 brad Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -192,7 +192,10 @@ struct jme_softc {
#define JME_CAP_PMCAP 0x0004
#define JME_CAP_FASTETH 0x0008
#define JME_CAP_JUMBO 0x0010
-#define JME_CAP_EXTFIFO 0x0020
+
+ uint32_t jme_workaround;
+#define JME_WA_CRCERRORS 0x0001
+#define JME_WA_PACKETLOSS 0x0002
uint32_t jme_flags;
#define JME_FLAG_MSI 0x0001