-
Notifications
You must be signed in to change notification settings - Fork 0
/
chips.h
58 lines (41 loc) · 1.82 KB
/
chips.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef __CHIPS_H__
#define __CHIPS_H__ 1
unsigned int id1,id2;
int generic_read (unsigned int , unsigned short int );
int generic_blank_check (unsigned int , unsigned short int );
int generic_verify (unsigned int , unsigned short int );
void generic_probe (void);
int generic_erase (unsigned int , unsigned short int );
void DQ6_toggle (unsigned long );
void check_dq6 (unsigned long );
void check_dq7 (unsigned long , unsigned char);
int jedec_page_write (unsigned int , unsigned short int );
int jedec_byte_write (unsigned int , unsigned short int );
int intel28f_write (unsigned int , unsigned short int );
int intel28f_erase (unsigned int , unsigned short int );
int mx28f_erase (unsigned int , unsigned short int );
int mx28f_write (unsigned int , unsigned short int );
int at49f_erase (unsigned int , unsigned short int );
int at49f_write (unsigned int , unsigned short int );
int am29f_erase (unsigned int , unsigned short int );
int am29f_write (unsigned int , unsigned short int );
void w29_probe(void);
void mx28f1000_probe(void);
void i28f001bxt_probe(void);
void dummy_probe(void);
int dummy_read(unsigned int , unsigned short int );
int dummy_write(unsigned int , unsigned short int );
int dummy_erase(unsigned int , unsigned short int );
struct chiptable {
const char *name;
unsigned int id1;
unsigned int id2;
unsigned int size;
unsigned short int pagesize;
const char *adapter;
void (*probe_func)();
int (*read_func) (unsigned int , unsigned short int );
int (*burn_func) (unsigned int, unsigned short int );
int (*erase_func) (unsigned int ,unsigned short int );
};
#endif /* __CHIPS_H__ */