Thomas Heijligen | bbfacff | 2021-03-31 20:40:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the flashrom project. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #include "programmer.h" |
| 16 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 17 | const struct programmer_entry *const programmer_table[] = { |
| 18 | |
| 19 | #if CONFIG_INTERNAL == 1 |
| 20 | &programmer_internal, |
| 21 | #endif |
| 22 | |
| 23 | #if CONFIG_DUMMY == 1 |
| 24 | &programmer_dummy, |
| 25 | #endif |
| 26 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 27 | #if CONFIG_NIC3COM == 1 |
| 28 | &programmer_nic3com, |
| 29 | #endif |
| 30 | |
| 31 | #if CONFIG_NICREALTEK == 1 |
Anastasia Klimchuk | f48ede4 | 2021-07-21 14:45:52 +1000 | [diff] [blame] | 32 | &programmer_nicrealtek, |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 33 | #endif |
| 34 | |
| 35 | #if CONFIG_NICNATSEMI == 1 |
| 36 | &programmer_nicnatsemi, |
| 37 | #endif |
| 38 | |
| 39 | #if CONFIG_GFXNVIDIA == 1 |
| 40 | &programmer_gfxnvidia, |
| 41 | #endif |
| 42 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 43 | #if CONFIG_DRKAISER == 1 |
| 44 | &programmer_drkaiser, |
| 45 | #endif |
| 46 | |
| 47 | #if CONFIG_SATASII == 1 |
| 48 | &programmer_satasii, |
| 49 | #endif |
| 50 | |
| 51 | #if CONFIG_ATAHPT == 1 |
| 52 | &programmer_atahpt, |
| 53 | #endif |
| 54 | |
| 55 | #if CONFIG_ATAVIA == 1 |
| 56 | &programmer_atavia, |
| 57 | #endif |
| 58 | |
| 59 | #if CONFIG_ATAPROMISE == 1 |
| 60 | &programmer_atapromise, |
| 61 | #endif |
| 62 | |
| 63 | #if CONFIG_IT8212 == 1 |
| 64 | &programmer_it8212, |
| 65 | #endif |
| 66 | |
| 67 | #if CONFIG_FT2232_SPI == 1 |
| 68 | &programmer_ft2232_spi, |
| 69 | #endif |
| 70 | |
Nico Huber | 044c9dc | 2023-12-29 23:26:57 +0100 | [diff] [blame] | 71 | #if CONFIG_FT4222_SPI == 1 |
| 72 | &programmer_ft4222_spi, |
| 73 | #endif |
| 74 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 75 | #if CONFIG_SERPROG == 1 |
| 76 | &programmer_serprog, |
| 77 | #endif |
| 78 | |
| 79 | #if CONFIG_BUSPIRATE_SPI == 1 |
| 80 | &programmer_buspirate_spi, |
| 81 | #endif |
| 82 | |
| 83 | #if CONFIG_DEDIPROG == 1 |
| 84 | &programmer_dediprog, |
| 85 | #endif |
| 86 | |
| 87 | #if CONFIG_DEVELOPERBOX_SPI == 1 |
| 88 | &programmer_developerbox, |
| 89 | #endif |
| 90 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 91 | #if CONFIG_RAYER_SPI == 1 |
| 92 | &programmer_rayer_spi, |
| 93 | #endif |
| 94 | |
| 95 | #if CONFIG_PONY_SPI == 1 |
| 96 | &programmer_pony_spi, |
| 97 | #endif |
| 98 | |
| 99 | #if CONFIG_NICINTEL == 1 |
| 100 | &programmer_nicintel, |
| 101 | #endif |
| 102 | |
| 103 | #if CONFIG_NICINTEL_SPI == 1 |
| 104 | &programmer_nicintel_spi, |
| 105 | #endif |
| 106 | |
| 107 | #if CONFIG_NICINTEL_EEPROM == 1 |
| 108 | &programmer_nicintel_eeprom, |
| 109 | #endif |
| 110 | |
| 111 | #if CONFIG_OGP_SPI == 1 |
| 112 | &programmer_ogp_spi, |
| 113 | #endif |
| 114 | |
| 115 | #if CONFIG_SATAMV == 1 |
| 116 | &programmer_satamv, |
| 117 | #endif |
| 118 | |
Nico Huber | aa5268d | 2023-03-09 17:15:23 +0100 | [diff] [blame] | 119 | #if CONFIG_LINUX_GPIO_SPI == 1 |
Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 120 | &programmer_linux_gpio_spi, |
| 121 | #endif |
| 122 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 123 | #if CONFIG_LINUX_MTD == 1 |
| 124 | &programmer_linux_mtd, |
| 125 | #endif |
| 126 | |
| 127 | #if CONFIG_LINUX_SPI == 1 |
| 128 | &programmer_linux_spi, |
| 129 | #endif |
| 130 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 131 | #if CONFIG_USBBLASTER_SPI == 1 |
| 132 | &programmer_usbblaster_spi, |
| 133 | #endif |
| 134 | |
| 135 | #if CONFIG_MSTARDDC_SPI == 1 |
| 136 | &programmer_mstarddc_spi, |
| 137 | #endif |
| 138 | |
| 139 | #if CONFIG_PICKIT2_SPI == 1 |
| 140 | &programmer_pickit2_spi, |
| 141 | #endif |
| 142 | |
| 143 | #if CONFIG_CH341A_SPI == 1 |
| 144 | &programmer_ch341a_spi, |
| 145 | #endif |
| 146 | |
Nicholas Chin | 197b7c7 | 2022-10-23 13:10:31 -0600 | [diff] [blame] | 147 | #if CONFIG_CH347_SPI == 1 |
| 148 | &programmer_ch347_spi, |
| 149 | #endif |
| 150 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 151 | #if CONFIG_DIGILENT_SPI == 1 |
| 152 | &programmer_digilent_spi, |
| 153 | #endif |
| 154 | |
| 155 | #if CONFIG_JLINK_SPI == 1 |
| 156 | &programmer_jlink_spi, |
| 157 | #endif |
| 158 | |
| 159 | #if CONFIG_NI845X_SPI == 1 |
| 160 | &programmer_ni845x_spi, |
| 161 | #endif |
| 162 | |
| 163 | #if CONFIG_STLINKV3_SPI == 1 |
| 164 | &programmer_stlinkv3_spi, |
Thomas Heijligen | bbfacff | 2021-03-31 20:40:01 +0200 | [diff] [blame] | 165 | #endif |
Jean THOMAS | e28d8e4 | 2022-10-11 17:54:30 +0200 | [diff] [blame] | 166 | |
| 167 | #if CONFIG_DIRTYJTAG_SPI == 1 |
| 168 | &programmer_dirtyjtag_spi, |
| 169 | #endif |
Thomas Heijligen | bbfacff | 2021-03-31 20:40:01 +0200 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | const size_t programmer_table_size = ARRAY_SIZE(programmer_table); |