aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/net/vxge/vxge.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@gmail.com>2010-03-04 08:05:01 +0000
committerMarty Connor <mdc@etherboot.org>2010-03-12 06:39:06 -0500
commit6877c844e533fe9dc6c7914e9c11bb147f628804 (patch)
treec2de3406895012e97159b4fdd203922d95dfc3cd /src/drivers/net/vxge/vxge.c
parent6a6f26f74da733862832d5ea79e2776d84d0a78d (diff)
downloadipxe-6877c844e533fe9dc6c7914e9c11bb147f628804.tar.gz
[vxge] Add stub vxge.c file so bin/vxge.usb can be built
The vxge driver code is split over several files, including vxge_main.c. This causes the build system and ROM-o-matic to see the driver as "vxge_main". This patch adds a stub vxge.c which takes up no space but gives the driver its proper name, "vxge". Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/drivers/net/vxge/vxge.c')
-rw-r--r--src/drivers/net/vxge/vxge.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drivers/net/vxge/vxge.c b/src/drivers/net/vxge/vxge.c
new file mode 100644
index 000000000..a24932eb5
--- /dev/null
+++ b/src/drivers/net/vxge/vxge.c
@@ -0,0 +1,18 @@
+/** @file Stub file for vxge driver
+ *
+ * This file drags in the rest of the driver for Neterion Inc's X3100 Series
+ * 10GbE PCIe I/O Virtualized Server Adapter, allowing the driver to be built
+ * as "vxge" even though the code is in vxge_* named files.
+ */
+
+FILE_LICENCE(GPL2_OR_LATER);
+
+#include <gpxe/pci.h>
+
+REQUIRE_OBJECT(vxge_main);
+
+/** vxge PCI IDs for util/parserom.pl which are put into bin/NIC */
+static struct pci_device_id vxge_nics[] __unused = {
+ /* If you change this, also adjust vxge_main_nics[] in vxge_main.c */
+ PCI_ROM(0x17d5, 0x5833, "vxge-x3100", "Neterion X3100 Series", 0),
+};