From f15444982b58e14a04aa745a1a93121c7c6eedf4 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Thu, 13 Sep 2007 21:29:02 +0000 Subject: [PATCH] Add support for a new device id (9). Mxge NICs with the new device id support MSI-X. Approved by: re (bmah) --- sys/dev/mxge/if_mxge.c | 3 ++- sys/dev/mxge/if_mxge_var.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index dff1422fbfb0..b3fc7e0cede4 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -136,7 +136,8 @@ static int mxge_probe(device_t dev) { if ((pci_get_vendor(dev) == MXGE_PCI_VENDOR_MYRICOM) && - (pci_get_device(dev) == MXGE_PCI_DEVICE_Z8E)) { + ((pci_get_device(dev) == MXGE_PCI_DEVICE_Z8E) || + (pci_get_device(dev) == MXGE_PCI_DEVICE_Z8E_9))) { device_set_desc(dev, "Myri10G-PCIE-8A"); return 0; } diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h index 7a66ae2cf398..2163f605505b 100644 --- a/sys/dev/mxge/if_mxge_var.h +++ b/sys/dev/mxge/if_mxge_var.h @@ -207,6 +207,7 @@ typedef struct { #define MXGE_PCI_VENDOR_MYRICOM 0x14c1 #define MXGE_PCI_DEVICE_Z8E 0x0008 +#define MXGE_PCI_DEVICE_Z8E_9 0x0009 #define MXGE_XFP_COMPLIANCE_BYTE 131 #define MXGE_HIGHPART_TO_U32(X) \