Kishon Vijay Abraham I | d746799 | 2017-03-27 15:14:59 +0530 | [diff] [blame] | 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 |
| 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); |
| 22 | #else |
| 23 | static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | static inline void pci_ep_cfs_remove_epc_group(struct config_group *group) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name) |
| 33 | { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | static inline void pci_ep_cfs_remove_epf_group(struct config_group *group) |
| 38 | { |
| 39 | } |
| 40 | #endif |
| 41 | #endif /* __LINUX_PCI_EP_CFS_H */ |