path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2009-05-25 23:26:50 +0000
committerCarl-Daniel Hailfinger <>2009-05-25 23:26:50 +0000
commit24c1a160307b2a9c670ab97ae263f368cd722209 (patch)
treec264e03cfe42da303a812d515de7361235ba986c /flash.h
parent1fa386262c24c45348ac2fb5160217b873318b44 (diff)
Refactor SuperIO accesses
We had duplicated code under different names and even open-coded some functions in some places. wbsio_read/regval -> sio_read wbsio_write/regwrite -> sio_write wbsio_mask -> sio_mask board_biostar_p4m80_m4 now uses existing IT87 functions. Corresponding to flashrom svn r547. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Luc Verhaegen <>
Diffstat (limited to 'flash.h')
1 files changed, 5 insertions, 3 deletions
diff --git a/flash.h b/flash.h
index 42cda8d..835c919 100644
--- a/flash.h
+++ b/flash.h
@@ -579,9 +579,9 @@ void print_supported_pcidevs(struct pcidev_status *devs);
/* board_enable.c */
void w836xx_ext_enter(uint16_t port);
void w836xx_ext_leave(uint16_t port);
-unsigned char wbsio_read(uint16_t index, uint8_t reg);
-void wbsio_write(uint16_t index, uint8_t reg, uint8_t data);
-void wbsio_mask(uint16_t index, uint8_t reg, uint8_t data, uint8_t mask);
+uint8_t sio_read(uint16_t port, uint8_t reg);
+void sio_write(uint16_t port, uint8_t reg, uint8_t data);
+void sio_mask(uint16_t port, uint8_t reg, uint8_t data, uint8_t mask);
int board_flash_enable(const char *vendor, const char *part);
void print_supported_boards(void);
@@ -737,6 +737,8 @@ int ich_spi_write_256(struct flashchip *flash, uint8_t * buf);
/* it87spi.c */
extern uint16_t it8716f_flashport;
+void enter_conf_mode_ite(uint16_t port);
+void exit_conf_mode_ite(uint16_t port);
int it87xx_probe_spi_flash(const char *name);
int it8716f_spi_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
OpenPOWER on IntegriCloud