From ba290d1ce346bac710e43e9a27cc072b1019d9d2 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 17 Jun 2009 12:07:12 +0000 Subject: 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 --- flash.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'flash.h') 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); -- cgit v1.1