Merge tag 'net-6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux-block.git] / drivers / net / ethernet / mellanox / mlxsw / pci.h
CommitLineData
9948a064
JP
1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2/* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */
1d20d23c
JP
3
4#ifndef _MLXSW_PCI_H
5#define _MLXSW_PCI_H
6
7#include <linux/pci.h>
8
1d20d23c 9#define PCI_DEVICE_ID_MELLANOX_SPECTRUM 0xcb84
c3ab4354 10#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2 0xcf6c
da382875 11#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3 0xcf70
47354021 12#define PCI_DEVICE_ID_MELLANOX_SPECTRUM4 0xcf80
1d20d23c
JP
13
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#else
20
21static inline int
22mlxsw_pci_driver_register(struct pci_driver *pci_driver)
23{
24 return 0;
25}
26
27static inline void
28mlxsw_pci_driver_unregister(struct pci_driver *pci_driver)
29{
30}
31
32#endif
33
34#endif