summaryrefslogtreecommitdiffstats
path: root/driver/sysfs.h
blob: 8de518bbd48f7f07628f029391a75399a1521450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _PCIDRIVER_SYSFS_H
#define _PCIDRIVER_SYSFS_H

#include <linux/sysfs.h>

#include "dev.h"

int pcidriver_create_sysfs_attributes(pcidriver_privdata_t *privdata);
void pcidriver_remove_sysfs_attributes(pcidriver_privdata_t *privdata);

int pcidriver_sysfs_initialize_kmem(pcidriver_privdata_t *privdata, int id, struct device_attribute *sysfs_attr);
int pcidriver_sysfs_initialize_umem(pcidriver_privdata_t *privdata, int id, struct device_attribute *sysfs_attr);
void pcidriver_sysfs_remove(pcidriver_privdata_t *privdata, struct device_attribute *sysfs_attr);

#endif /* _PCIDRIVER_SYSFS_H */