0001
0002
0003
0004
0005
0006
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