46 lines · c
1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */2/*3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.4 */5 6#ifndef ENA_PCI_ID_TBL_H_7#define ENA_PCI_ID_TBL_H_8 9#ifndef PCI_VENDOR_ID_AMAZON10#define PCI_VENDOR_ID_AMAZON 0x1d0f11#endif12 13#ifndef PCI_DEV_ID_ENA_PF14#define PCI_DEV_ID_ENA_PF 0x0ec215#endif16 17#ifndef PCI_DEV_ID_ENA_LLQ_PF18#define PCI_DEV_ID_ENA_LLQ_PF 0x1ec219#endif20 21#ifndef PCI_DEV_ID_ENA_VF22#define PCI_DEV_ID_ENA_VF 0xec2023#endif24 25#ifndef PCI_DEV_ID_ENA_LLQ_VF26#define PCI_DEV_ID_ENA_LLQ_VF 0xec2127#endif28 29#ifndef PCI_DEV_ID_ENA_RESRV030#define PCI_DEV_ID_ENA_RESRV0 0x005131#endif32 33#define ENA_PCI_ID_TABLE_ENTRY(devid) \34 {PCI_DEVICE(PCI_VENDOR_ID_AMAZON, devid)},35 36static const struct pci_device_id ena_pci_tbl[] = {37 ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_RESRV0)38 ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_PF)39 ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_LLQ_PF)40 ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_VF)41 ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_LLQ_VF)42 { }43};44 45#endif /* ENA_PCI_ID_TBL_H_ */46