2 * PCI Endpoint ConfigFS header file
4 * Copyright (C) 2017 Texas Instruments
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 of
9 * the License as published by the Free Software Foundation.
12 #ifndef __LINUX_PCI_EP_CFS_H
13 #define __LINUX_PCI_EP_CFS_H
15 #include <linux/configfs.h>
17 #ifdef CONFIG_PCI_ENDPOINT_CONFIGFS
18 struct config_group *pci_ep_cfs_add_epc_group(const char *name);
19 void pci_ep_cfs_remove_epc_group(struct config_group *group);
20 struct config_group *pci_ep_cfs_add_epf_group(const char *name);
21 void pci_ep_cfs_remove_epf_group(struct config_group *group);
23 static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name)
28 static inline void pci_ep_cfs_remove_epc_group(struct config_group *group)
32 static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name)
37 static inline void pci_ep_cfs_remove_epf_group(struct config_group *group)
41 #endif /* __LINUX_PCI_EP_CFS_H */