summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-06-17 12:07:12 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-06-17 12:07:12 +0000
commitba290d1ce346bac710e43e9a27cc072b1019d9d2 (patch)
treedfb4053c23e90d77456b8147d4e8b58103e32b6c /chipset_enable.c
parentd168057805592ec441d74df3f2e8e454f9a2fde6 (diff)
downloadast2050-flashrom-ba290d1ce346bac710e43e9a27cc072b1019d9d2.zip
ast2050-flashrom-ba290d1ce346bac710e43e9a27cc072b1019d9d2.tar.gz
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 <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 72ac367..d5fd1c7 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -948,9 +948,6 @@ static int get_flashbase_sc520(struct pci_dev *dev, const char *name)
return 0;
}
-#define OK 0
-#define NT 1 /* Not tested */
-
/* Please keep this list alphabetically sorted by vendor/device. */
const struct penable chipset_enables[] = {
{0x10B9, 0x1533, OK, "ALi", "M1533", enable_flash_ali_m1533},
@@ -1035,29 +1032,6 @@ const struct penable chipset_enables[] = {
{},
};
-void print_supported_chipsets(void)
-{
- int i, j, chipsetcount = 0;
- const struct penable *c = chipset_enables;
-
- for (i = 0; c[i].vendor_name != NULL; i++)
- chipsetcount++;
-
- printf("\nSupported chipsets (total: %d):\n\nVendor: "
- "Chipset: PCI IDs:\n\n", chipsetcount);
-
- for (i = 0; c[i].vendor_name != NULL; i++) {
- printf("%s", c[i].vendor_name);
- for (j = 0; j < 25 - strlen(c[i].vendor_name); j++)
- printf(" ");
- printf("%s", c[i].device_name);
- for (j = 0; j < 25 - strlen(c[i].device_name); j++)
- printf(" ");
- printf("%04x:%04x%s\n", c[i].vendor_id, c[i].device_id,
- (c[i].status == OK) ? "" : " (untested)");
- }
-}
-
int chipset_flash_enable(void)
{
struct pci_dev *dev = 0;
OpenPOWER on IntegriCloud