Blame view

include/linux/pci-ep-cfs.h 957 Bytes
8cfab3cf6   Bjorn Helgaas   PCI: Add SPDX GPL...
1
  /* SPDX-License-Identifier: GPL-2.0+ */
d74679911   Kishon Vijay Abraham I   PCI: endpoint: In...
2
3
4
5
6
  /**
   * PCI Endpoint ConfigFS header file
   *
   * Copyright (C) 2017 Texas Instruments
   * Author: Kishon Vijay Abraham I <kishon@ti.com>
d74679911   Kishon Vijay Abraham I   PCI: endpoint: In...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
   */
  
  #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)
  {
32b313ce9   Gustavo Pimentel   PCI: endpoint: Us...
22
  	return NULL;
d74679911   Kishon Vijay Abraham I   PCI: endpoint: In...
23
24
25
26
27
28
29
30
  }
  
  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)
  {
32b313ce9   Gustavo Pimentel   PCI: endpoint: Us...
31
  	return NULL;
d74679911   Kishon Vijay Abraham I   PCI: endpoint: In...
32
33
34
35
36
37
38
  }
  
  static inline void pci_ep_cfs_remove_epf_group(struct config_group *group)
  {
  }
  #endif
  #endif /* __LINUX_PCI_EP_CFS_H */