Add EFA PCI device IDs. Signed-off-by: Gal Pressman <galpress@xxxxxxxxxx> --- drivers/infiniband/hw/efa/efa_pci_id_tbl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 drivers/infiniband/hw/efa/efa_pci_id_tbl.h diff --git a/drivers/infiniband/hw/efa/efa_pci_id_tbl.h b/drivers/infiniband/hw/efa/efa_pci_id_tbl.h new file mode 100644 index 000000000000..3bb21a95fe54 --- /dev/null +++ b/drivers/infiniband/hw/efa/efa_pci_id_tbl.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ +/* + * Copyright 2018 Amazon.com, Inc. or its affiliates. + */ + +#ifndef _EFA_PCI_ID_TBL_H_ +#define _EFA_PCI_ID_TBL_H_ + +#ifndef PCI_VENDOR_ID_AMAZON +#define PCI_VENDOR_ID_AMAZON 0x1d0f +#endif + +#ifndef PCI_DEV_ID_EFA_VF +#define PCI_DEV_ID_EFA_VF 0xefa0 +#endif + +#define EFA_PCI_DEVICE_ID(devid) \ + { PCI_VDEVICE(AMAZON, devid) } + +static const struct pci_device_id efa_pci_tbl[] = { + EFA_PCI_DEVICE_ID(PCI_DEV_ID_EFA_VF), + { } +}; + +#endif /* _EFA_PCI_ID_TBL_H_ */ -- 2.7.4