#ifndef _AA_FIFO_DRIVER_H_ #define _AA_FIFO_DRIVER_H_ #if 0 #define DRIVER_VERSION 0x00010000 //0001.0000 #define BOARD_VERSION 0x00010000 //0001.0000 #define DEVICE_NAME "aa_fifo" #define DEVICE_COUNT 3 #define DEFAULT_MAJOR_NUM 0 #define DEFAULT_MINOR_NUM 0 typedef struct __AA_FIFO_CDEV { AA_FIFO_INFO aa_fifo_info; struct cdev aa_fifo_cdev; } _AA_FIFO_CDEV, *_pAA_FIFO_CDEV; /******************************************************************************* FUNCTIONS *******************************************************************************/ static int aa_fifo_init(void); static void aa_fifo_exit(void); static int aa_fifo_mmap(struct file *, struct vm_area_struct *); static int aa_fifo_open(struct inode *, struct file *); static int aa_fifo_release(struct inode *, struct file *); static int aa_fifo_ioctl(struct file *, unsigned int, unsigned long); static ssize_t aa_fifo_read(struct file *filp, char __user *buff, size_t count, loff_t *offp); static ssize_t aa_fifo_write(struct file *filp, const char __user *buff, size_t count, loff_t *offp); /******************************************************************************* STRUCT FILE OPERATIONS *******************************************************************************/ struct file_operations aa_fifo_fops = { .owner = THIS_MODULE, .open = aa_fifo_open, .release = aa_fifo_release, .unlocked_ioctl = aa_fifo_ioctl, .read = aa_fifo_read, .write = aa_fifo_write, .mmap = aa_fifo_mmap, }; #endif #endif