path: root/flash.h
diff options
authorUwe Hermann <>2009-06-17 12:07:12 +0000
committerUwe Hermann <>2009-06-17 12:07:12 +0000
commitba290d1ce346bac710e43e9a27cc072b1019d9d2 (patch)
treedfb4053c23e90d77456b8147d4e8b58103e32b6c /flash.h
parentd168057805592ec441d74df3f2e8e454f9a2fde6 (diff)
Move all printing code to print.c
Drop no longer needed MAX macro, we have a max() function. Corresponding to flashrom svn r601. Signed-off-by: Uwe Hermann <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'flash.h')
1 files changed, 10 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index b1ee6d3..88dcda2 100644
--- a/flash.h
+++ b/flash.h
@@ -272,6 +272,12 @@ struct pcidev_status {
uint32_t pcidev_validate(struct pci_dev *dev, struct pcidev_status *devs);
uint32_t pcidev_init(uint16_t vendor_id, struct pcidev_status *devs);
+/* print.c */
+char *flashbuses_to_text(enum chipbustype bustype);
+void print_supported_chips(void);
+void print_supported_chipsets(void);
+void print_supported_boards(void);
void print_supported_pcidevs(struct pcidev_status *devs);
/* board_enable.c */
@@ -281,12 +287,10 @@ 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);
/* chipset_enable.c */
extern enum chipbustype buses_supported;
int chipset_flash_enable(void);
-void print_supported_chipsets(void);
extern unsigned long flashbase;
@@ -376,6 +380,10 @@ int max(int a, int b);
int check_erased_range(struct flashchip *flash, int start, int len);
int verify_range(struct flashchip *flash, uint8_t *cmpbuf, int start, int len, char *message);
extern char *pcidev_bdf;
+char *strcat_realloc(char *dest, const char *src);
+#define OK 0
+#define NT 1 /* Not tested */
/* layout.c */
int show_id(uint8_t *bios, int size, int force);
OpenPOWER on IntegriCloud