18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _MLXSW_PCI_H
58c2ecf20Sopenharmony_ci#define _MLXSW_PCI_H
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/pci.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SWITCHX2		0xc738
108c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM		0xcb84
118c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2	0xcf6c
128c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3	0xcf70
138c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SWITCHIB		0xcb20
148c2ecf20Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SWITCHIB2	0xcf08
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_MLXSW_PCI)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint mlxsw_pci_driver_register(struct pci_driver *pci_driver);
198c2ecf20Sopenharmony_civoid mlxsw_pci_driver_unregister(struct pci_driver *pci_driver);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#else
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistatic inline int
248c2ecf20Sopenharmony_cimlxsw_pci_driver_register(struct pci_driver *pci_driver)
258c2ecf20Sopenharmony_ci{
268c2ecf20Sopenharmony_ci	return 0;
278c2ecf20Sopenharmony_ci}
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_cistatic inline void
308c2ecf20Sopenharmony_cimlxsw_pci_driver_unregister(struct pci_driver *pci_driver)
318c2ecf20Sopenharmony_ci{
328c2ecf20Sopenharmony_ci}
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#endif
37