summaryrefslogtreecommitdiffstats
path: root/sys/dev/jme/if_jmevar.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2008-12-04 01:58:40 +0000
committeryongari <yongari@FreeBSD.org>2008-12-04 01:58:40 +0000
commit20e7552f469bcf3d64dae25b11f9c4a9ff38f69e (patch)
tree2b0e372fc6988f8ed1e2c5f150a610c208a816f2 /sys/dev/jme/if_jmevar.h
parent97597606a6bffc7738c740cf9651ca5540888eab (diff)
downloadFreeBSD-src-20e7552f469bcf3d64dae25b11f9c4a9ff38f69e.zip
FreeBSD-src-20e7552f469bcf3d64dae25b11f9c4a9ff38f69e.tar.gz
Add support for newer JMC250/JMC260 revisions.
o Chip full mask revision 2 or later controllers have to set correct Tx MAC and Tx offload clock depending on negotiated link speed. o JMC260 chip full mask revision 2 has a silicon bug that can't handle 64bit DMA addressing. Add workaround to the bug by limiting DMA address space to be within 32bit. o Valid FIFO space of receive control and status register was changed on chip full mask revision 2 or later controllers. For these controllers, use default 16QW as it's supposed to be the safest value for maximum PCIe compatibility. JMicron confirmed performance will not be reduced even if the FIFO space is set to 16QW. o When interface is put into suspend/shutdown state, remove Tx MAC and Tx offload clock to save more power. We don't need Tx clock at all in this state. o Added new register definition for chip full mask revision 2 or later controllers. Thanks to JMicron for their continuous support of FreeBSD.
Diffstat (limited to 'sys/dev/jme/if_jmevar.h')
-rw-r--r--sys/dev/jme/if_jmevar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/jme/if_jmevar.h b/sys/dev/jme/if_jmevar.h
index a47db9f..3575dc1 100644
--- a/sys/dev/jme/if_jmevar.h
+++ b/sys/dev/jme/if_jmevar.h
@@ -181,6 +181,8 @@ struct jme_softc {
#define JME_FLAG_PMCAP 0x0020
#define JME_FLAG_FASTETH 0x0040
#define JME_FLAG_NOJUMBO 0x0080
+#define JME_FLAG_TXCLK 0x0100
+#define JME_FLAG_DMA32BIT 0x0200
#define JME_FLAG_DETACH 0x4000
#define JME_FLAG_LINK 0x8000
OpenPOWER on IntegriCloud