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