summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-07-24 22:07:52 +0000
committerMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-07-24 22:07:52 +0000
commit8b5b00543fc15557434558c8790e6182c72bb3d8 (patch)
tree16c16d65128769f193e4979b0d5c7f27107d9fac
parent350dd366aee7d1f11f352c5359e69ea5ee8c2696 (diff)
downloadflashrom-8b5b00543fc15557434558c8790e6182c72bb3d8.zip
flashrom-8b5b00543fc15557434558c8790e6182c72bb3d8.tar.gz
Fix compilation for CONFIG_INTERNAL=no
Broken by r1098 Corresponding to flashrom svn r1104. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--flash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 1827115..8a16396 100644
--- a/flash.h
+++ b/flash.h
@@ -697,6 +697,7 @@ int default_spi_send_multicommand(struct spi_command *cmds);
uint32_t spi_get_valid_read_addr(void);
/* ichspi.c */
+#if CONFIG_INTERNAL == 1
extern uint32_t ichspi_bbar;
int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb,
int ich_generation);
@@ -706,6 +707,7 @@ int ich_spi_send_command(unsigned int writecnt, unsigned int readcnt,
int ich_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
int ich_spi_write_256(struct flashchip *flash, uint8_t * buf, int start, int len);
int ich_spi_send_multicommand(struct spi_command *cmds);
+#endif
/* it87spi.c */
void enter_conf_mode_ite(uint16_t port);
@@ -719,17 +721,21 @@ int it8716f_spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int
int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start, int len);
/* sb600spi.c */
+#if CONFIG_INTERNAL == 1
int sb600_probe_spi(struct pci_dev *dev);
int sb600_spi_send_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
int sb600_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
int sb600_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len);
+#endif
/* wbsio_spi.c */
+#if CONFIG_INTERNAL == 1
int wbsio_check_for_spi(void);
int wbsio_spi_send_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
int wbsio_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
+#endif
/* serprog.c */
int serprog_init(void);
OpenPOWER on IntegriCloud