From 845181f6b63254e0d80895547eaa29592e6a3a7f Mon Sep 17 00:00:00 2001
From: Brad Smith <brad@cvs.openbsd.org>
Date: Wed, 29 Oct 2008 01:55:54 +0000
Subject: - 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@
---
 sys/dev/pci/if_jmevar.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'sys/dev/pci/if_jmevar.h')

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
-- 
cgit v1.2.3