WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / ethernet / mellanox / mlxsw / pci.h
blob5b1323645a5dfe3138c31cfd510f3e0cdf7cecdc
1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */
4 #ifndef _MLXSW_PCI_H
5 #define _MLXSW_PCI_H
7 #include <linux/pci.h>
9 #define PCI_DEVICE_ID_MELLANOX_SWITCHX2 0xc738
10 #define PCI_DEVICE_ID_MELLANOX_SPECTRUM 0xcb84
11 #define PCI_DEVICE_ID_MELLANOX_SPECTRUM2 0xcf6c
12 #define PCI_DEVICE_ID_MELLANOX_SPECTRUM3 0xcf70
13 #define PCI_DEVICE_ID_MELLANOX_SWITCHIB 0xcb20
14 #define PCI_DEVICE_ID_MELLANOX_SWITCHIB2 0xcf08
16 #if IS_ENABLED(CONFIG_MLXSW_PCI)
18 int mlxsw_pci_driver_register(struct pci_driver *pci_driver);
19 void mlxsw_pci_driver_unregister(struct pci_driver *pci_driver);
21 #else
23 static inline int
24 mlxsw_pci_driver_register(struct pci_driver *pci_driver)
26 return 0;
29 static inline void
30 mlxsw_pci_driver_unregister(struct pci_driver *pci_driver)
34 #endif
36 #endif