2018-01-27 02:50:27 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2021-07-03 23:13:02 +08:00
|
|
|
/*
|
2017-03-27 17:44:59 +08:00
|
|
|
* PCI Endpoint ConfigFS header file
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Texas Instruments
|
|
|
|
* Author: Kishon Vijay Abraham I <kishon@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_PCI_EP_CFS_H
|
|
|
|
#define __LINUX_PCI_EP_CFS_H
|
|
|
|
|
|
|
|
#include <linux/configfs.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_PCI_ENDPOINT_CONFIGFS
|
|
|
|
struct config_group *pci_ep_cfs_add_epc_group(const char *name);
|
|
|
|
void pci_ep_cfs_remove_epc_group(struct config_group *group);
|
|
|
|
struct config_group *pci_ep_cfs_add_epf_group(const char *name);
|
|
|
|
void pci_ep_cfs_remove_epf_group(struct config_group *group);
|
|
|
|
#else
|
|
|
|
static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name)
|
|
|
|
{
|
2020-09-18 05:30:27 +08:00
|
|
|
return NULL;
|
2017-03-27 17:44:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void pci_ep_cfs_remove_epc_group(struct config_group *group)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name)
|
|
|
|
{
|
2020-09-18 05:30:27 +08:00
|
|
|
return NULL;
|
2017-03-27 17:44:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void pci_ep_cfs_remove_epf_group(struct config_group *group)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __LINUX_PCI_EP_CFS_H */
|