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