/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/sysfs.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 18:37:30 UTC
  • Revision ID: csa@suren.me-20160302183730-nlrgi7h3yuizcizc
Restructure driver headers

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _PCIDRIVER_SYSFS_H
2
2
#define _PCIDRIVER_SYSFS_H
3
 
int pcidriver_sysfs_initialize_kmem(pcidriver_privdata_t *privdata, int id, struct class_device_attribute *sysfs_attr);
4
 
int pcidriver_sysfs_initialize_umem(pcidriver_privdata_t *privdata, int id, struct class_device_attribute *sysfs_attr);
5
 
void pcidriver_sysfs_remove(pcidriver_privdata_t *privdata, struct class_device_attribute *sysfs_attr);
6
 
 
7
 
#ifdef ENABLE_IRQ
8
 
SYSFS_GET_FUNCTION(pcidriver_show_irq_count);
9
 
SYSFS_GET_FUNCTION(pcidriver_show_irq_queues);
10
 
#endif
11
 
 
12
 
/* prototypes for sysfs operations */
13
 
SYSFS_GET_FUNCTION(pcidriver_show_mmap_mode);
14
 
SYSFS_SET_FUNCTION(pcidriver_store_mmap_mode);
15
 
SYSFS_GET_FUNCTION(pcidriver_show_mmap_area);
16
 
SYSFS_SET_FUNCTION(pcidriver_store_mmap_area);
17
 
SYSFS_GET_FUNCTION(pcidriver_show_kmem_count);
18
 
SYSFS_GET_FUNCTION(pcidriver_show_kbuffers);
19
 
SYSFS_SET_FUNCTION(pcidriver_store_kmem_alloc);
20
 
SYSFS_SET_FUNCTION(pcidriver_store_kmem_free);
21
 
SYSFS_GET_FUNCTION(pcidriver_show_umappings);
22
 
SYSFS_SET_FUNCTION(pcidriver_store_umem_unmap);
23
 
#endif
 
3
 
 
4
#include <linux/sysfs.h>
 
5
 
 
6
#include "dev.h"
 
7
 
 
8
int pcidriver_create_sysfs_attributes(pcidriver_privdata_t *privdata);
 
9
void pcidriver_remove_sysfs_attributes(pcidriver_privdata_t *privdata);
 
10
 
 
11
int pcidriver_sysfs_initialize_kmem(pcidriver_privdata_t *privdata, int id, struct device_attribute *sysfs_attr);
 
12
int pcidriver_sysfs_initialize_umem(pcidriver_privdata_t *privdata, int id, struct device_attribute *sysfs_attr);
 
13
void pcidriver_sysfs_remove(pcidriver_privdata_t *privdata, struct device_attribute *sysfs_attr);
 
14
 
 
15
#endif /* _PCIDRIVER_SYSFS_H */