162306a36Sopenharmony_ci/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef _MLXSW_PCI_H 562306a36Sopenharmony_ci#define _MLXSW_PCI_H 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include <linux/pci.h> 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM 0xcb84 1062306a36Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2 0xcf6c 1162306a36Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3 0xcf70 1262306a36Sopenharmony_ci#define PCI_DEVICE_ID_MELLANOX_SPECTRUM4 0xcf80 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_MLXSW_PCI) 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ciint mlxsw_pci_driver_register(struct pci_driver *pci_driver); 1762306a36Sopenharmony_civoid mlxsw_pci_driver_unregister(struct pci_driver *pci_driver); 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#else 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_cistatic inline int 2262306a36Sopenharmony_cimlxsw_pci_driver_register(struct pci_driver *pci_driver) 2362306a36Sopenharmony_ci{ 2462306a36Sopenharmony_ci return 0; 2562306a36Sopenharmony_ci} 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_cistatic inline void 2862306a36Sopenharmony_cimlxsw_pci_driver_unregister(struct pci_driver *pci_driver) 2962306a36Sopenharmony_ci{ 3062306a36Sopenharmony_ci} 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#endif 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#endif 35