]>
Commit | Line | Data |
---|---|---|
b961ef03 | 1 | #ifndef __FLASH_H__ |
2 | #define __FLASH_H__ | |
3 | ||
91c38cf7 | 4 | #include <stdint.h> |
5 | ||
6e4d4ee6 | 6 | struct partition { |
7fe9b0b7 | 7 | int start; |
8 | int end; | |
9 | int precious; | |
10 | const char *name; | |
6e4d4ee6 | 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); | |
b961ef03 | 21 | |
22 | #endif | |
23 |