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 | |
| 71 | #if CONFIG_SERPROG == 1 |
| 72 | &programmer_serprog, |
| 73 | #endif |
| 74 | |
| 75 | #if CONFIG_BUSPIRATE_SPI == 1 |
| 76 | &programmer_buspirate_spi, |
| 77 | #endif |
| 78 | |
| 79 | #if CONFIG_DEDIPROG == 1 |
| 80 | &programmer_dediprog, |
| 81 | #endif |
| 82 | |
| 83 | #if CONFIG_DEVELOPERBOX_SPI == 1 |
| 84 | &programmer_developerbox, |
| 85 | #endif |
| 86 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 87 | #if CONFIG_RAYER_SPI == 1 |
| 88 | &programmer_rayer_spi, |
| 89 | #endif |
| 90 | |
| 91 | #if CONFIG_PONY_SPI == 1 |
| 92 | &programmer_pony_spi, |
| 93 | #endif |
| 94 | |
| 95 | #if CONFIG_NICINTEL == 1 |
| 96 | &programmer_nicintel, |
| 97 | #endif |
| 98 | |
| 99 | #if CONFIG_NICINTEL_SPI == 1 |
| 100 | &programmer_nicintel_spi, |
| 101 | #endif |
| 102 | |
| 103 | #if CONFIG_NICINTEL_EEPROM == 1 |
| 104 | &programmer_nicintel_eeprom, |
| 105 | #endif |
| 106 | |
| 107 | #if CONFIG_OGP_SPI == 1 |
| 108 | &programmer_ogp_spi, |
| 109 | #endif |
| 110 | |
| 111 | #if CONFIG_SATAMV == 1 |
| 112 | &programmer_satamv, |
| 113 | #endif |
| 114 | |
Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 115 | #if CONFIG_LINUX_GPIOD == 1 |
| 116 | &programmer_linux_gpio_spi, |
| 117 | #endif |
| 118 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 119 | #if CONFIG_LINUX_MTD == 1 |
| 120 | &programmer_linux_mtd, |
| 121 | #endif |
| 122 | |
| 123 | #if CONFIG_LINUX_SPI == 1 |
| 124 | &programmer_linux_spi, |
| 125 | #endif |
| 126 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 127 | #if CONFIG_USBBLASTER_SPI == 1 |
| 128 | &programmer_usbblaster_spi, |
| 129 | #endif |
| 130 | |
| 131 | #if CONFIG_MSTARDDC_SPI == 1 |
| 132 | &programmer_mstarddc_spi, |
| 133 | #endif |
| 134 | |
| 135 | #if CONFIG_PICKIT2_SPI == 1 |
| 136 | &programmer_pickit2_spi, |
| 137 | #endif |
| 138 | |
| 139 | #if CONFIG_CH341A_SPI == 1 |
| 140 | &programmer_ch341a_spi, |
| 141 | #endif |
| 142 | |
Nicholas Chin | 197b7c7 | 2022-10-23 13:10:31 -0600 | [diff] [blame] | 143 | #if CONFIG_CH347_SPI == 1 |
| 144 | &programmer_ch347_spi, |
| 145 | #endif |
| 146 | |
Thomas Heijligen | 633d6db | 2021-03-31 19:09:44 +0200 | [diff] [blame] | 147 | #if CONFIG_DIGILENT_SPI == 1 |
| 148 | &programmer_digilent_spi, |
| 149 | #endif |
| 150 | |
| 151 | #if CONFIG_JLINK_SPI == 1 |
| 152 | &programmer_jlink_spi, |
| 153 | #endif |
| 154 | |
| 155 | #if CONFIG_NI845X_SPI == 1 |
| 156 | &programmer_ni845x_spi, |
| 157 | #endif |
| 158 | |
| 159 | #if CONFIG_STLINKV3_SPI == 1 |
| 160 | &programmer_stlinkv3_spi, |
Thomas Heijligen | bbfacff | 2021-03-31 20:40:01 +0200 | [diff] [blame] | 161 | #endif |
Jean THOMAS | e28d8e4 | 2022-10-11 17:54:30 +0200 | [diff] [blame] | 162 | |
| 163 | #if CONFIG_DIRTYJTAG_SPI == 1 |
| 164 | &programmer_dirtyjtag_spi, |
| 165 | #endif |
Thomas Heijligen | bbfacff | 2021-03-31 20:40:01 +0200 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | const size_t programmer_table_size = ARRAY_SIZE(programmer_table); |