Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.15-rc5 41 lines 1.1 kB view raw
1/** 2 * PCI Endpoint ConfigFS header file 3 * 4 * Copyright (C) 2017 Texas Instruments 5 * Author: Kishon Vijay Abraham I <kishon@ti.com> 6 * 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. 10 */ 11 12#ifndef __LINUX_PCI_EP_CFS_H 13#define __LINUX_PCI_EP_CFS_H 14 15#include <linux/configfs.h> 16 17#ifdef CONFIG_PCI_ENDPOINT_CONFIGFS 18struct config_group *pci_ep_cfs_add_epc_group(const char *name); 19void pci_ep_cfs_remove_epc_group(struct config_group *group); 20struct config_group *pci_ep_cfs_add_epf_group(const char *name); 21void pci_ep_cfs_remove_epf_group(struct config_group *group); 22#else 23static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name) 24{ 25 return 0; 26} 27 28static inline void pci_ep_cfs_remove_epc_group(struct config_group *group) 29{ 30} 31 32static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name) 33{ 34 return 0; 35} 36 37static inline void pci_ep_cfs_remove_epf_group(struct config_group *group) 38{ 39} 40#endif 41#endif /* __LINUX_PCI_EP_CFS_H */