/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/sysfs.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-02-13 02:07:11 UTC
  • Revision ID: csa@dside.dyndns.org-20110213020711-y9bjh3n4ke6p4t4n
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCIDRIVER_SYSFS_H
 
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