diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-12 11:54:51 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-12 11:54:51 +0000 |
commit | e5ac16445f70486713b6533c2071c80eb66cc174 (patch) | |
tree | 3e6343a00bfd9a05e644467f9e8e990816c865f5 /flash.h | |
parent | 75f510768d65acfefb0813873992449f4d186f35 (diff) | |
download | ast2050-flashrom-e5ac16445f70486713b6533c2071c80eb66cc174.zip ast2050-flashrom-e5ac16445f70486713b6533c2071c80eb66cc174.tar.gz |
Add --list-supported option which lists the supported ROM chips, chipsets, and mainboards
Corresponding to flashrom svn r199 and coreboot v2 svn r3133.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -30,6 +30,8 @@ #include <stdint.h> #include <stdio.h> +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + struct flashchip { const char *name; /* With 32bit manufacture_id and model_id we can cover IDs up to @@ -287,11 +289,14 @@ struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device); struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device, uint16_t card_vendor, uint16_t card_device); + /* board_enable.c */ int board_flash_enable(const char *vendor, const char *part); +void print_supported_boards(void); /* chipset_enable.c */ int chipset_flash_enable(void); +void print_supported_chipsets(void); /* Physical memory mapping device */ #if defined (__sun) && (defined(__i386) || defined(__amd64)) |