DPDK  1.8.0
Macros
rte_pci_dev_ids.h File Reference

Macros

#define PCI_VENDOR_ID_INTEL   0x8086
#define PCI_VENDOR_ID_QUMRANET   0x1AF4
#define PCI_VENDOR_ID_VMWARE   0x15AD

Detailed Description

This file contains a list of the PCI device IDs recognised by DPDK, which can be used to fill out an array of structures describing the devices.

Currently four families of devices are recognised: those supported by the IGB driver, by EM driver, those supported by the IXGBE driver, and by virtio driver which is a para virtualization driver running in guest virtual machine. The inclusion of these in an array built using this file depends on the definition of RTE_PCI_DEV_ID_DECL_EM RTE_PCI_DEV_ID_DECL_IGB RTE_PCI_DEV_ID_DECL_IGBVF RTE_PCI_DEV_ID_DECL_IXGBE RTE_PCI_DEV_ID_DECL_IXGBEVF RTE_PCI_DEV_ID_DECL_I40E RTE_PCI_DEV_ID_DECL_I40EVF RTE_PCI_DEV_ID_DECL_VIRTIO at the time when this file is included.

In order to populate an array, the user of this file must define this macro: RTE_PCI_DEV_ID_DECL_IXGBE(vendorID, deviceID). For example:

struct device {
int vend;
int dev;
};
struct device devices[] = {
#define RTE_PCI_DEV_ID_DECL_IXGBE(vendorID, deviceID) {vend, dev},
};

Note that this file can be included multiple times within the same file.

Macro Definition Documentation

#define PCI_VENDOR_ID_INTEL   0x8086

Vendor ID used by Intel devices

#define PCI_VENDOR_ID_QUMRANET   0x1AF4

Vendor ID used by virtio devices

#define PCI_VENDOR_ID_VMWARE   0x15AD

Vendor ID used by VMware devices