1e7d48e5fSVladimir Oltean /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 2*3c9cfb52SVladimir Oltean /* Copyright 2021 NXP */ 3e7d48e5fSVladimir Oltean 4e7d48e5fSVladimir Oltean #include <linux/pci.h> 5e7d48e5fSVladimir Oltean #include <linux/platform_device.h> 6e7d48e5fSVladimir Oltean 7e7d48e5fSVladimir Oltean #if IS_ENABLED(CONFIG_FSL_ENETC_IERB) 8e7d48e5fSVladimir Oltean 9e7d48e5fSVladimir Oltean int enetc_ierb_register_pf(struct platform_device *pdev, 10e7d48e5fSVladimir Oltean struct pci_dev *pf_pdev); 11e7d48e5fSVladimir Oltean 12e7d48e5fSVladimir Oltean #else 13e7d48e5fSVladimir Oltean enetc_ierb_register_pf(struct platform_device * pdev,struct pci_dev * pf_pdev)14e7d48e5fSVladimir Olteanstatic inline int enetc_ierb_register_pf(struct platform_device *pdev, 15e7d48e5fSVladimir Oltean struct pci_dev *pf_pdev) 16e7d48e5fSVladimir Oltean { 17e7d48e5fSVladimir Oltean return -EOPNOTSUPP; 18e7d48e5fSVladimir Oltean } 19e7d48e5fSVladimir Oltean 20e7d48e5fSVladimir Oltean #endif 21