]>
Commit | Line | Data |
---|---|---|
1 | #ifndef __FLASH_H__ | |
2 | #define __FLASH_H__ | |
3 | ||
4 | #include <stdint.h> | |
5 | ||
6 | struct partition { | |
7 | int start; | |
8 | int end; | |
9 | int precious; | |
10 | const char *name; | |
11 | }; | |
12 | ||
13 | void FlushPrevious(int translate); | |
14 | void GotByte(uint32_t where, uint8_t which, int start_addr, int end_addr, int translate); | |
15 | unsigned int EnterFlashState(void); | |
16 | int PrepareFlash(struct partition *p, const char *filename, unsigned int state); | |
17 | int find_next_area(const char *str, int *offset, int *length); | |
18 | ||
19 | #define PHYSICAL_FLASH_START 0x100000 | |
20 | void do_flash(char **argv); | |
21 | ||
22 | #endif | |
23 |