4 extern int probe_jedec(struct flashchip *flash);
5 extern int erase_chip_jedec(struct flashchip *flash);
6 extern int write_jedec(struct flashchip *flash, unsigned char *buf);
7 extern int erase_sector_jedec(volatile char *bios, unsigned int page);
8 extern int write_sector_jedec(volatile char *bios,
10 volatile unsigned char *dst,
11 unsigned int page_size);
13 extern __inline__ void toggle_ready_jedec(volatile char *dst)
20 while (i++ < 0xFFFFFF) {
29 extern __inline__ void data_polling_jedec(volatile char *dst, char data)
36 while (i++ < 0xFFFFFF) {
44 extern __inline__ void unprotect_jedec(volatile char *bios)
46 *(volatile char *) (bios + 0x5555) = 0xAA;
47 *(volatile char *) (bios + 0x2AAA) = 0x55;
48 *(volatile char *) (bios + 0x5555) = 0x80;
49 *(volatile char *) (bios + 0x5555) = 0xAA;
50 *(volatile char *) (bios + 0x2AAA) = 0x55;
51 *(volatile char *) (bios + 0x5555) = 0x20;
56 extern __inline__ void protect_jedec(volatile char *bios)
58 *(volatile char *) (bios + 0x5555) = 0xAA;
59 *(volatile char *) (bios + 0x2AAA) = 0x55;
60 *(volatile char *) (bios + 0x5555) = 0xA0;
65 #endif /* !__JEDEC_H__ */