00001
00002 #ifndef _FPGA_IO_H
00003 #define _FPGA_IO_H
00004
00005 int fpga_io_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);
00006
00007 int fpga_io_open(void);
00008 int fpga_io_close (void);
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00029 ssize_t fpga_io_write (struct file * file, const char * buf, size_t count, loff_t *off);
00030 loff_t fpga_io_lseek (struct file * file, loff_t offset, int orig);
00031 ssize_t fpga_io_read (struct file * file, char * buf, size_t count, loff_t *off);
00032
00033 ssize_t fpga_io_table_write (struct file * file, const char * buf, size_t count, loff_t *off);
00034 loff_t fpga_io_table_lseek (struct file * file, loff_t offset, int orig);
00035
00036
00039
00040
00041 void fpga_table_write_nice (int addr, int len, unsigned long * data);
00042 void fpga_hist_read_nice (int addr, int len, unsigned long * data);
00043 #endif