diff options
author | Sean Nelson <audiohacked@gmail.com> | 2009-12-22 22:15:33 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-12-22 22:15:33 +0000 |
commit | 72a9a02b3864fb730ae9a8cff35266633842e324 (patch) | |
tree | 23d129299edf5dd7c00925c60fa66c3e3a23e5ae /chipdrivers.h | |
parent | 63ce4bb0d26046d9de0769502740120f478d86ac (diff) | |
download | flashrom-72a9a02b3864fb730ae9a8cff35266633842e324.tar.gz flashrom-72a9a02b3864fb730ae9a8cff35266633842e324.tar.bz2 flashrom-72a9a02b3864fb730ae9a8cff35266633842e324.zip |
Convert the following chips to use struct eraseblock
Am29F010A/B
Am29F002(N)BB
Am29F002(N)BT
Am29F016D
Am29F040B
Am29F080B
Am29LV040B
Am29LV081B
A29040B
Pm29F002T
Pm29F002B
Change function signature of Am29 erase functions and JEDEC chip erase
to be usable with block_erasers.
Corresponding to flashrom svn r812.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chipdrivers.h b/chipdrivers.h index d24a027f8..a4e12730e 100644 --- a/chipdrivers.h +++ b/chipdrivers.h @@ -60,6 +60,8 @@ int write_82802ab(struct flashchip *flash, uint8_t *buf); /* am29f040b.c */ int probe_29f040b(struct flashchip *flash); int erase_29f040b(struct flashchip *flash); +int erase_sector_29f040b(struct flashchip *flash, unsigned int blockaddr, unsigned int blocksize); +int erase_chip_29f040b(struct flashchip *flash, unsigned int blockaddr, unsigned int blocksize); int write_29f040b(struct flashchip *flash, uint8_t *buf); /* pm29f002.c */ @@ -83,6 +85,7 @@ int write_jedec(struct flashchip *flash, uint8_t *buf); int write_jedec_1(struct flashchip *flash, uint8_t *buf); int erase_sector_jedec(struct flashchip *flash, unsigned int page, unsigned int pagesize); int erase_block_jedec(struct flashchip *flash, unsigned int page, unsigned int blocksize); +int erase_chip_block_jedec(struct flashchip *flash, unsigned int page, unsigned int blocksize); int write_sector_jedec(chipaddr bios, uint8_t *src, chipaddr dst, unsigned int page_size); |