summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-05-19 17:22:13 +0200
committerMichael Brown2008-05-19 17:22:13 +0200
commit78281b09e61080c5183db2d1ecfdf977e94fc88b (patch)
tree298ce87cb641696f7eccf86aba739adb9a2bb5a3
parent[IPv4] Fix multicast address checking (diff)
downloadipxe-78281b09e61080c5183db2d1ecfdf977e94fc88b.tar.gz
ipxe-78281b09e61080c5183db2d1ecfdf977e94fc88b.tar.xz
ipxe-78281b09e61080c5183db2d1ecfdf977e94fc88b.zip
[tg3] Add support for tg3-5721
From: Daniel Mealha Cabrita <dancab@utfpr.edu.br> I've added tg3-5721 support for gPXE, the patch (against gpxe-0.9.3) is attached to this message. This chipset is present in HP ML150 G2 servers (possibly other HP machines as well).
-rw-r--r--src/drivers/net/tg3.c4
-rw-r--r--src/drivers/net/tg3.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/net/tg3.c b/src/drivers/net/tg3.c
index 2aa072b68..ba228d72b 100644
--- a/src/drivers/net/tg3.c
+++ b/src/drivers/net/tg3.c
@@ -1879,7 +1879,8 @@ static int tg3_setup_hw(struct tg3 *tp)
(65 << GRC_MISC_CFG_PRESCALAR_SHIFT));
/* Initialize MBUF/DESC pool. */
- if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) {
+ if ((GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) &&
+ (tp->pci_chip_rev_id != CHIPREV_ID_5721)) {
tw32(BUFMGR_MB_POOL_ADDR, NIC_SRAM_MBUF_POOL_BASE);
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704)
tw32(BUFMGR_MB_POOL_SIZE, NIC_SRAM_MBUF_POOL_SIZE64);
@@ -3365,6 +3366,7 @@ PCI_ROM(0x14e4, 0x1648, "tg3-5704", "Broadcom Tigon 3 5704"),
PCI_ROM(0x14e4, 0x164d, "tg3-5702FE", "Broadcom Tigon 3 5702FE"),
PCI_ROM(0x14e4, 0x1653, "tg3-5705", "Broadcom Tigon 3 5705"),
PCI_ROM(0x14e4, 0x1654, "tg3-5705_2", "Broadcom Tigon 3 5705_2"),
+PCI_ROM(0x14e4, 0x1659, "tg3-5721", "Broadcom Tigon 3 5721"),
PCI_ROM(0x14e4, 0x165d, "tg3-5705M", "Broadcom Tigon 3 5705M"),
PCI_ROM(0x14e4, 0x165e, "tg3-5705M_2", "Broadcom Tigon 3 5705M_2"),
PCI_ROM(0x14e4, 0x1677, "tg3-5751", "Broadcom Tigon 3 5751"),
diff --git a/src/drivers/net/tg3.h b/src/drivers/net/tg3.h
index fd038f587..9077f80a2 100644
--- a/src/drivers/net/tg3.h
+++ b/src/drivers/net/tg3.h
@@ -283,6 +283,7 @@ typedef unsigned long dma_addr_t;
#define CHIPREV_ID_5705_A1 0x3001
#define CHIPREV_ID_5705_A2 0x3002
#define CHIPREV_ID_5705_A3 0x3003
+#define CHIPREV_ID_5721 0x4101
#define CHIPREV_ID_5750_A0 0x4000
#define CHIPREV_ID_5750_A1 0x4001
#define CHIPREV_ID_5750_A3 0x4003