blob: 38051ebc27c917345c2e4e6c25c3f653c1761b21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* --------------------------------------------------------------------------
*
* Filename: flash.h
*
* Description:
*
* Version: 0.01
* Created: 2013年07月02日 14时17分16秒
*
* Author: smmei (),
* Company:
* --------------------------------------------------------------------------
*/
#ifndef __FLASH_H__
#define __FLASH_H__
struct flash_dev {
char name[20];
int (*init)(void);
int (*set_mode)(int mode);
void (*exit)(void);
};
extern struct flash_dev flash_dev_gpio;
extern struct flash_dev flash_dev_eup2471;
extern struct flash_dev flash_dev_eup3618;
extern struct flash_dev flash_dev_ktd231;
extern struct flash_dev flash_dev_sgm3780;
extern struct flash_dev *flash_instantiation(void);
extern int flash_set_mode(struct flash_dev *fl, int mode);
extern void flash_destroy(struct flash_dev *fl);
#endif /* #ifndef __FLASH_H__ */
|