summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-03-19 18:47:06 +0000
committerSean Nelson <audiohacked@gmail.com>2010-03-19 18:47:06 +0000
commit28accc27000d9589a86ecdf4f65bd009207a0a3f (patch)
treed51077c5234c888ac4d696e94bcc8f5cb0b0b90a /chipdrivers.h
parent6499d5a68189625c30210cc242ee436ca70050eb (diff)
downloadast2050-flashrom-28accc27000d9589a86ecdf4f65bd009207a0a3f.zip
ast2050-flashrom-28accc27000d9589a86ecdf4f65bd009207a0a3f.tar.gz
Various JEDEC refactorings touching 82802ab.c, sharplhf00l04.c and stm50flw0x0x.c
Rename print_82802ab_status to print_status_82802ab add unlock_82802ab strip unlock code from erase_block_82802ab rename erase_82802ab_block to erase_block_80280ab delete sharplhf00l04.o from Makefile delete *_lhf00l04* from chipdrivers.h. add unlock_stm50flw0x0x delete wait_stm50flw0x0x delete write_page_stm50flw0x0x convert erase_stm50flw0x0x to erase_chip_stm50flw0x0x delete write_stm50flw0x0x add unlock_82802ab to two Intel chips with TEST_BAD_WRITE change the status of 82802AB, 82802AC, M50FW040, M50FW080 to TEST_OK_PR Corresponding to flashrom svn r948. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r--chipdrivers.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index ca82c2d..d8a5bcc 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -57,10 +57,11 @@ int spi_aai_write(struct flashchip *flash, uint8_t *buf);
uint8_t wait_82802ab(chipaddr bios);
int probe_82802ab(struct flashchip *flash);
int erase_82802ab(struct flashchip *flash);
-int erase_82802ab_block(struct flashchip *flash, unsigned int page, unsigned int pagesize);
+int erase_block_82802ab(struct flashchip *flash, unsigned int page, unsigned int pagesize);
int write_82802ab(struct flashchip *flash, uint8_t *buf);
-void print_82802ab_status(uint8_t status);
+void print_status_82802ab(uint8_t status);
void write_page_82802ab(chipaddr bios, uint8_t *src, chipaddr dst, int page_size);
+int unlock_82802ab(struct flashchip *flash);
/* jedec.c */
uint8_t oddparity(uint8_t val);
@@ -92,10 +93,6 @@ void write_page_m29f400bt(chipaddr bios, uint8_t *src,
int unlock_49fl00x(struct flashchip *flash);
int lock_49fl00x(struct flashchip *flash);
-/* sharplhf00l04.c */
-int erase_lhf00l04_block(struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen);
-int write_lhf00l04(struct flashchip *flash, uint8_t *buf);
-
/* sst28sf040.c */
int erase_chip_28sf040(struct flashchip *flash, unsigned int addr, unsigned int blocklen);
int erase_sector_28sf040(struct flashchip *flash, unsigned int address, unsigned int sector_size);
@@ -124,11 +121,8 @@ int unlock_winbond_fwhub(struct flashchip *flash);
int probe_w29ee011(struct flashchip *flash);
/* stm50flw0x0x.c */
-int probe_stm50flw0x0x(struct flashchip *flash);
-int erase_stm50flw0x0x(struct flashchip *flash);
-int erase_block_stm50flw0x0x(struct flashchip *flash, unsigned int block, unsigned int blocksize);
int erase_sector_stm50flw0x0x(struct flashchip *flash, unsigned int block, unsigned int blocksize);
int erase_chip_stm50flw0x0x(struct flashchip *flash, unsigned int addr, unsigned int blocklen);
-int write_stm50flw0x0x(struct flashchip *flash, uint8_t *buf);
+int unlock_stm50flw0x0x(struct flashchip *flash);
#endif /* !__CHIPDRIVERS_H__ */
OpenPOWER on IntegriCloud