BEST PCIe driver
 All Data Structures Files Functions Variables Macros Pages
BEST_flash.h
Go to the documentation of this file.
1 
9 #ifndef BEST_FLASH_H_
10 #define BEST_FLASH_H_
11 
12 #include <linux/mtd/map.h>
13 
15  char name[16];
16 
18  void* virt_addr;
19 
20  void* virt_erase_addr;
21 
22  //void* phy_addr;
23 
25  dev_t cdevno;
26 
28  struct cdev cdev;
29 
31  loff_t offset;
32 
34  int access_lvl;
35 };
36 
42 int flash_dev_create(struct flash_dev_struct* dev, struct class* best_class);
43 
48 void flash_dev_remove(struct flash_dev_struct* dev, struct class* best_class);
49 
50 #endif /* BEST_FLASH_H_ */
void * virt_addr
virual address of mSGDMA descriptor mem
Definition: BEST_flash.h:18
dev_t cdevno
character device number
Definition: BEST_flash.h:25
struct cdev cdev
character device
Definition: BEST_flash.h:28
int flash_dev_create(struct flash_dev_struct *dev, struct class *best_class)
Creates new Flash char device.
Definition: BEST_flash.c:210
Definition: BEST_flash.h:14
void flash_dev_remove(struct flash_dev_struct *dev, struct class *best_class)
Removes Flash char device.
Definition: BEST_flash.c:275