]> bbs.cooldavid.org Git - jme.git/blobdiff - jme.h
jme: Extract main and sub chip revision
[jme.git] / jme.h
diff --git a/jme.h b/jme.h
index 531a1f12aab8c8a67e07a0937e4b5772aa48d588..9300dcae32bb4bddca0a35356a6756cf4dd183ba 100644 (file)
--- a/jme.h
+++ b/jme.h
@@ -532,8 +532,10 @@ struct jme_adapter {
        u32                     rx_ring_mask;
        u8                      mrrs;
        unsigned int            fpgaver;
-       unsigned int            chiprev;
-       u8                      rev;
+       u8                      chiprev;
+       u8                      chip_main_rev;
+       u8                      chip_sub_rev;
+       u8                      pcirev;
        u32                     msg_enable;
        struct ethtool_cmd      old_ecmd;
        unsigned int            old_mtu;
@@ -1324,7 +1326,7 @@ enum jme_phy_reg17_vals {
 /*
  * Workaround
  */
-static inline int is_buggy250(unsigned short device, unsigned int chiprev)
+static inline int is_buggy250(unsigned short device, u8 chiprev)
 {
        return device == PCI_DEVICE_ID_JMICRON_JMC250 && chiprev == 0x11;
 }