xref: /linux/drivers/net/ethernet/amazon/ena/ena_pci_id_tbl.h (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
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_AMAZON
10 #define PCI_VENDOR_ID_AMAZON 0x1d0f
11 #endif
12 
13 #ifndef PCI_DEV_ID_ENA_PF
14 #define PCI_DEV_ID_ENA_PF	0x0ec2
15 #endif
16 
17 #ifndef PCI_DEV_ID_ENA_LLQ_PF
18 #define PCI_DEV_ID_ENA_LLQ_PF	0x1ec2
19 #endif
20 
21 #ifndef PCI_DEV_ID_ENA_VF
22 #define PCI_DEV_ID_ENA_VF	0xec20
23 #endif
24 
25 #ifndef PCI_DEV_ID_ENA_LLQ_VF
26 #define PCI_DEV_ID_ENA_LLQ_VF	0xec21
27 #endif
28 
29 #ifndef PCI_DEV_ID_ENA_RESRV0
30 #define PCI_DEV_ID_ENA_RESRV0	0x0051
31 #endif
32 
33 #define ENA_PCI_ID_TABLE_ENTRY(devid) \
34 	{PCI_DEVICE(PCI_VENDOR_ID_AMAZON, devid)},
35 
36 static 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