Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * PCI Endpoint ConfigFS header file
0004  *
0005  * Copyright (C) 2017 Texas Instruments
0006  * Author: Kishon Vijay Abraham I <kishon@ti.com>
0007  */
0008 
0009 #ifndef __LINUX_PCI_EP_CFS_H
0010 #define __LINUX_PCI_EP_CFS_H
0011 
0012 #include <linux/configfs.h>
0013 
0014 #ifdef CONFIG_PCI_ENDPOINT_CONFIGFS
0015 struct config_group *pci_ep_cfs_add_epc_group(const char *name);
0016 void pci_ep_cfs_remove_epc_group(struct config_group *group);
0017 struct config_group *pci_ep_cfs_add_epf_group(const char *name);
0018 void pci_ep_cfs_remove_epf_group(struct config_group *group);
0019 #else
0020 static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name)
0021 {
0022     return NULL;
0023 }
0024 
0025 static inline void pci_ep_cfs_remove_epc_group(struct config_group *group)
0026 {
0027 }
0028 
0029 static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name)
0030 {
0031     return NULL;
0032 }
0033 
0034 static inline void pci_ep_cfs_remove_epf_group(struct config_group *group)
0035 {
0036 }
0037 #endif
0038 #endif /* __LINUX_PCI_EP_CFS_H */