fpgafs/fpgafs.h
ben 9e05e670b4 initial commit of the fpgafs
git-svn-id: svn+ssh://en.codiert.org/home/staff/ben/dev/misc.svn/projects/fpgafs@338 766a2236-cff9-0310-b0c0-a81a5f92509a
2007-06-28 16:20:34 +00:00

30 lines
500 B
C

#ifndef FPGAFS_H
#define FPGAFS_H
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/fs.h>
/* magic number the file system */
enum {
FPGAFS_MAGIC = 0x4255AA42,
};
struct fpga_context {
int bla1;
int bla2;
};
struct fpgafs_inode_info {
struct fpga_context *i_ctx;
struct inode vfs_inode;
};
extern struct tree_descr fpgafs_dir_contents[];
#define FPGAFS_I(inode) \
container_of(inode, struct fpgafs_inode_info, vfs_inode)
#endif /* FPGAFS_H */