diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-09 20:24:29 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-09 20:24:29 +0000 |
commit | f9b0f7fd910ff7ac48b53262328e63c110910549 (patch) | |
tree | d4ef9d5ee98c1d699769c3b0178a6208767076a4 | |
parent | 863c1bf525f7fa52ee1f7bc17e2eb95097bd194b (diff) |
Remove useless 'extern' keywords (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2769 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | util/flashrom/flash.h | 108 | ||||
-rw-r--r-- | util/flashrom/msys_doc.h | 8 |
2 files changed, 58 insertions, 58 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index e27b0bf2a2..2a45e46939 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/flash.h @@ -183,88 +183,88 @@ int linuxbios_init(void); extern char *lb_part, *lb_vendor; /* 82802ab.c */ -extern int probe_82802ab(struct flashchip *flash); -extern int erase_82802ab(struct flashchip *flash); -extern int write_82802ab(struct flashchip *flash, uint8_t *buf); +int probe_82802ab(struct flashchip *flash); +int erase_82802ab(struct flashchip *flash); +int write_82802ab(struct flashchip *flash, uint8_t *buf); /* am29f040b.c */ -extern int probe_29f040b(struct flashchip *flash); -extern int erase_29f040b(struct flashchip *flash); -extern int write_29f040b(struct flashchip *flash, uint8_t *buf); +int probe_29f040b(struct flashchip *flash); +int erase_29f040b(struct flashchip *flash); +int write_29f040b(struct flashchip *flash, uint8_t *buf); /* jedec.c */ -extern void toggle_ready_jedec(volatile uint8_t *dst); -extern void data_polling_jedec(volatile uint8_t *dst, uint8_t data); -extern void unprotect_jedec(volatile uint8_t *bios); -extern void protect_jedec(volatile uint8_t *bios); +void toggle_ready_jedec(volatile uint8_t *dst); +void data_polling_jedec(volatile uint8_t *dst, uint8_t data); +void unprotect_jedec(volatile uint8_t *bios); +void protect_jedec(volatile uint8_t *bios); int write_byte_program_jedec(volatile uint8_t *bios, uint8_t *src, volatile uint8_t *dst); -extern int probe_jedec(struct flashchip *flash); -extern int erase_chip_jedec(struct flashchip *flash); -extern int write_jedec(struct flashchip *flash, uint8_t *buf); -extern int erase_sector_jedec(volatile uint8_t *bios, unsigned int page); -extern int erase_block_jedec(volatile uint8_t *bios, unsigned int page); -extern int write_sector_jedec(volatile uint8_t *bios, uint8_t *src, - volatile uint8_t *dst, unsigned int page_size); +int probe_jedec(struct flashchip *flash); +int erase_chip_jedec(struct flashchip *flash); +int write_jedec(struct flashchip *flash, uint8_t *buf); +int erase_sector_jedec(volatile uint8_t *bios, unsigned int page); +int erase_block_jedec(volatile uint8_t *bios, unsigned int page); +int write_sector_jedec(volatile uint8_t *bios, uint8_t *src, + volatile uint8_t *dst, unsigned int page_size); /* m29f400bt.c */ -extern int probe_m29f400bt(struct flashchip *flash); -extern int erase_m29f400bt(struct flashchip *flash); -extern int block_erase_m29f400bt(volatile uint8_t *bios, +int probe_m29f400bt(struct flashchip *flash); +int erase_m29f400bt(struct flashchip *flash); +int block_erase_m29f400bt(volatile uint8_t *bios, volatile uint8_t *dst); -extern int write_m29f400bt(struct flashchip *flash, uint8_t *buf); -extern int write_linuxbios_m29f400bt(struct flashchip *flash, uint8_t *buf); -extern void toggle_ready_m29f400bt(volatile uint8_t *dst); -extern void data_polling_m29f400bt(volatile uint8_t *dst, uint8_t data); -extern void protect_m29f400bt(volatile uint8_t *bios); -extern void write_page_m29f400bt(volatile uint8_t *bios, uint8_t *src, - volatile uint8_t *dst, int page_size); +int write_m29f400bt(struct flashchip *flash, uint8_t *buf); +int write_linuxbios_m29f400bt(struct flashchip *flash, uint8_t *buf); +void toggle_ready_m29f400bt(volatile uint8_t *dst); +void data_polling_m29f400bt(volatile uint8_t *dst, uint8_t data); +void protect_m29f400bt(volatile uint8_t *bios); +void write_page_m29f400bt(volatile uint8_t *bios, uint8_t *src, + volatile uint8_t *dst, int page_size); /* mx29f002.c */ -extern int probe_29f002(struct flashchip *flash); -extern int erase_29f002(struct flashchip *flash); -extern int write_29f002(struct flashchip *flash, uint8_t *buf); +int probe_29f002(struct flashchip *flash); +int erase_29f002(struct flashchip *flash); +int write_29f002(struct flashchip *flash, uint8_t *buf); /* pm49fl004.c */ -extern int probe_49fl004(struct flashchip *flash); -extern int erase_49fl004(struct flashchip *flash); -extern int write_49fl004(struct flashchip *flash, uint8_t *buf); +int probe_49fl004(struct flashchip *flash); +int erase_49fl004(struct flashchip *flash); +int write_49fl004(struct flashchip *flash, uint8_t *buf); /* sharplhf00l04.c */ -extern int probe_lhf00l04(struct flashchip *flash); -extern int erase_lhf00l04(struct flashchip *flash); -extern int write_lhf00l04(struct flashchip *flash, uint8_t *buf); -extern void toggle_ready_lhf00l04(volatile uint8_t *dst); -extern void data_polling_lhf00l04(volatile uint8_t *dst, uint8_t data); -extern void protect_lhf00l04(volatile uint8_t *bios); +int probe_lhf00l04(struct flashchip *flash); +int erase_lhf00l04(struct flashchip *flash); +int write_lhf00l04(struct flashchip *flash, uint8_t *buf); +void toggle_ready_lhf00l04(volatile uint8_t *dst); +void data_polling_lhf00l04(volatile uint8_t *dst, uint8_t data); +void protect_lhf00l04(volatile uint8_t *bios); /* sst28sf040.c */ -extern int probe_28sf040(struct flashchip *flash); -extern int erase_28sf040(struct flashchip *flash); -extern int write_28sf040(struct flashchip *flash, uint8_t *buf); +int probe_28sf040(struct flashchip *flash); +int erase_28sf040(struct flashchip *flash); +int write_28sf040(struct flashchip *flash, uint8_t *buf); /* sst39sf020.c */ -extern int probe_39sf020(struct flashchip *flash); -extern int write_39sf020(struct flashchip *flash, uint8_t *buf); +int probe_39sf020(struct flashchip *flash); +int write_39sf020(struct flashchip *flash, uint8_t *buf); /* sst49lf040.c */ -extern int erase_49lf040(struct flashchip *flash); -extern int write_49lf040(struct flashchip *flash, uint8_t *buf); +int erase_49lf040(struct flashchip *flash); +int write_49lf040(struct flashchip *flash, uint8_t *buf); /* sst49lfxxxc.c */ -extern int probe_49lfxxxc(struct flashchip *flash); -extern int erase_49lfxxxc(struct flashchip *flash); -extern int write_49lfxxxc(struct flashchip *flash, uint8_t *buf); +int probe_49lfxxxc(struct flashchip *flash); +int erase_49lfxxxc(struct flashchip *flash); +int write_49lfxxxc(struct flashchip *flash, uint8_t *buf); /* sst_fwhub.c */ -extern int probe_sst_fwhub(struct flashchip *flash); -extern int erase_sst_fwhub(struct flashchip *flash); -extern int write_sst_fwhub(struct flashchip *flash, uint8_t *buf); +int probe_sst_fwhub(struct flashchip *flash); +int erase_sst_fwhub(struct flashchip *flash); +int write_sst_fwhub(struct flashchip *flash, uint8_t *buf); /* w29ee011.c */ -extern int probe_w29ee011(struct flashchip *flash); +int probe_w29ee011(struct flashchip *flash); /* w49f002u.c */ -extern int write_49f002(struct flashchip *flash, uint8_t *buf); +int write_49f002(struct flashchip *flash, uint8_t *buf); #endif /* !__FLASH_H__ */ diff --git a/util/flashrom/msys_doc.h b/util/flashrom/msys_doc.h index caa7807573..13915c9db7 100644 --- a/util/flashrom/msys_doc.h +++ b/util/flashrom/msys_doc.h @@ -91,9 +91,9 @@ #define doc_toggle(base) /* 0, 1, 0, 1, 0, 1, ... if a doc is present */ \ ( (doc_read(base, ECCConfiguration) & 0x04) >> 2 ) -extern int probe_md2802(struct flashchip *flash); -extern int read_md2802(struct flashchip *flash, uint8_t *buf); -extern int erase_md2802(struct flashchip *flash); -extern int write_md2802(struct flashchip *flash, uint8_t *buf); +int probe_md2802(struct flashchip *flash); +int read_md2802(struct flashchip *flash, uint8_t *buf); +int erase_md2802(struct flashchip *flash); +int write_md2802(struct flashchip *flash, uint8_t *buf); #endif /* !__MSYS_DOC_H__ */ |