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 | 098913dadfcb9e5205112ee05ec3042bbd4cb277 (patch) | |
tree | 22040c256a0bca0783c6d106b3793d84ac3652cb /util/flashrom/flash.h | |
parent | 2aa14367774bc19ab4df4ff527e15d5e73258ddd (diff) |
Add --list-supported option to flashrom which lists the supported
ROM chips, chipsets, and mainboards (Closes #90).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3133 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/flash.h')
-rw-r--r-- | util/flashrom/flash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index 67d276ff56..f15ab21d7c 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/flash.h @@ -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)) |