brintos

brintos / linux-shallow public Read only

0
0
Text · 747 B · cacc2f9 Raw
35 lines · c
1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */2/* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */3 4#ifndef _MLXSW_PCI_H5#define _MLXSW_PCI_H6 7#include <linux/pci.h>8 9#define PCI_DEVICE_ID_MELLANOX_SPECTRUM		0xcb8410#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2	0xcf6c11#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3	0xcf7012#define PCI_DEVICE_ID_MELLANOX_SPECTRUM4	0xcf8013 14#if IS_ENABLED(CONFIG_MLXSW_PCI)15 16int mlxsw_pci_driver_register(struct pci_driver *pci_driver);17void mlxsw_pci_driver_unregister(struct pci_driver *pci_driver);18 19#else20 21static inline int22mlxsw_pci_driver_register(struct pci_driver *pci_driver)23{24	return 0;25}26 27static inline void28mlxsw_pci_driver_unregister(struct pci_driver *pci_driver)29{30}31 32#endif33 34#endif35