xref: /linux/drivers/net/ethernet/amazon/ena/ena_pci_id_tbl.h (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
1*2246cbc2SShay Agroskin /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
21738cd3eSNetanel Belgazal /*
3*2246cbc2SShay Agroskin  * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
41738cd3eSNetanel Belgazal  */
51738cd3eSNetanel Belgazal 
61738cd3eSNetanel Belgazal #ifndef ENA_PCI_ID_TBL_H_
71738cd3eSNetanel Belgazal #define ENA_PCI_ID_TBL_H_
81738cd3eSNetanel Belgazal 
91738cd3eSNetanel Belgazal #ifndef PCI_VENDOR_ID_AMAZON
101738cd3eSNetanel Belgazal #define PCI_VENDOR_ID_AMAZON 0x1d0f
111738cd3eSNetanel Belgazal #endif
121738cd3eSNetanel Belgazal 
131738cd3eSNetanel Belgazal #ifndef PCI_DEV_ID_ENA_PF
141738cd3eSNetanel Belgazal #define PCI_DEV_ID_ENA_PF	0x0ec2
151738cd3eSNetanel Belgazal #endif
161738cd3eSNetanel Belgazal 
171738cd3eSNetanel Belgazal #ifndef PCI_DEV_ID_ENA_LLQ_PF
181738cd3eSNetanel Belgazal #define PCI_DEV_ID_ENA_LLQ_PF	0x1ec2
191738cd3eSNetanel Belgazal #endif
201738cd3eSNetanel Belgazal 
211738cd3eSNetanel Belgazal #ifndef PCI_DEV_ID_ENA_VF
221738cd3eSNetanel Belgazal #define PCI_DEV_ID_ENA_VF	0xec20
231738cd3eSNetanel Belgazal #endif
241738cd3eSNetanel Belgazal 
251738cd3eSNetanel Belgazal #ifndef PCI_DEV_ID_ENA_LLQ_VF
261738cd3eSNetanel Belgazal #define PCI_DEV_ID_ENA_LLQ_VF	0xec21
271738cd3eSNetanel Belgazal #endif
281738cd3eSNetanel Belgazal 
29866032abSArthur Kiyanovski #ifndef PCI_DEV_ID_ENA_RESRV0
30866032abSArthur Kiyanovski #define PCI_DEV_ID_ENA_RESRV0	0x0051
31866032abSArthur Kiyanovski #endif
32866032abSArthur Kiyanovski 
331738cd3eSNetanel Belgazal #define ENA_PCI_ID_TABLE_ENTRY(devid) \
341738cd3eSNetanel Belgazal 	{PCI_DEVICE(PCI_VENDOR_ID_AMAZON, devid)},
351738cd3eSNetanel Belgazal 
361738cd3eSNetanel Belgazal static const struct pci_device_id ena_pci_tbl[] = {
37866032abSArthur Kiyanovski 	ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_RESRV0)
381738cd3eSNetanel Belgazal 	ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_PF)
391738cd3eSNetanel Belgazal 	ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_LLQ_PF)
401738cd3eSNetanel Belgazal 	ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_VF)
411738cd3eSNetanel Belgazal 	ENA_PCI_ID_TABLE_ENTRY(PCI_DEV_ID_ENA_LLQ_VF)
421738cd3eSNetanel Belgazal 	{ }
431738cd3eSNetanel Belgazal };
441738cd3eSNetanel Belgazal 
451738cd3eSNetanel Belgazal #endif /* ENA_PCI_ID_TBL_H_ */
46