bnx: Add support for BCM57766 chips
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 24 Jul 2012 08:57:41 +0000 (16:57 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 26 Jul 2012 09:21:20 +0000 (17:21 +0800)
According-to: tg3

sys/dev/netif/bge/if_bgereg.h
sys/dev/netif/bnx/if_bnx.c

index abf3bea..f8ce12b 100644 (file)
 #define BGE_ASICREV_BCM5784            0x5784
 #define BGE_ASICREV_BCM5785            0x5785
 #define BGE_ASICREV_BCM57765           0x57785
+#define BGE_ASICREV_BCM57766           0x57766
 #define BGE_ASICREV_BCM57780           0x57780
 
 /* chip revisions */
index e679dae..3a2221b 100644 (file)
@@ -93,14 +93,22 @@ static const struct bnx_type {
 
        { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57761,
                "Broadcom BCM57761 Gigabit Ethernet" },
-       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57781,
-               "Broadcom BCM57781 Gigabit Ethernet" },
-       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57791,
-               "Broadcom BCM57791 Fast Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57762,
+               "Broadcom BCM57762 Gigabit Ethernet" },
        { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57765,
                "Broadcom BCM57765 Gigabit Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57766,
+               "Broadcom BCM57766 Gigabit Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57781,
+               "Broadcom BCM57781 Gigabit Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57782,
+               "Broadcom BCM57782 Gigabit Ethernet" },
        { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57785,
                "Broadcom BCM57785 Gigabit Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57786,
+               "Broadcom BCM57786 Gigabit Ethernet" },
+       { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57791,
+               "Broadcom BCM57791 Fast Ethernet" },
        { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_BCM57795,
                "Broadcom BCM57795 Fast Ethernet" },
 
@@ -1800,9 +1808,13 @@ bnx_attach(device_t dev)
                        break;
 
                case PCI_PRODUCT_BROADCOM_BCM57761:
+               case PCI_PRODUCT_BROADCOM_BCM57762:
                case PCI_PRODUCT_BROADCOM_BCM57765:
+               case PCI_PRODUCT_BROADCOM_BCM57766:
                case PCI_PRODUCT_BROADCOM_BCM57781:
+               case PCI_PRODUCT_BROADCOM_BCM57782:
                case PCI_PRODUCT_BROADCOM_BCM57785:
+               case PCI_PRODUCT_BROADCOM_BCM57786:
                case PCI_PRODUCT_BROADCOM_BCM57791:
                case PCI_PRODUCT_BROADCOM_BCM57795:
                        sc->bnx_chipid = pci_read_config(dev,
@@ -1826,6 +1838,7 @@ bnx_attach(device_t dev)
                break;
 
        case BGE_ASICREV_BCM57765:
+       case BGE_ASICREV_BCM57766:
                sc->bnx_flags |= BNX_FLAG_57765_FAMILY | BNX_FLAG_57765_PLUS;
                break;
        }