OpenOCD
drivers.c
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 
3 /***************************************************************************
4  * Copyright (C) 2009 Zachary T Welch <zw@superlucidity.net> *
5  ***************************************************************************/
6 
7 #ifdef HAVE_CONFIG_H
8 #include "config.h"
9 #endif
10 #include "imp.h"
11 
16 static const struct flash_driver * const flash_drivers[] = {
25  &ath79_flash,
27  &atsamv_flash,
28  &avr_flash,
31  &cc26xx_flash,
32  &cfi_flash,
34  &efm32_flash,
35  &em357_flash,
38  &faux_flash,
39  &fm3_flash,
40  &fm4_flash,
41  &fespi_flash,
50  &mdr_flash,
52  &msp432_flash,
54  &npcx_flash,
55  &nrf5_flash,
56  &nrf51_flash,
58  &ocl_flash,
60  &psoc4_flash,
64  &psoc6_flash,
65  &qn908x_flash,
67  &rp2040_flash,
69  &sim3x_flash,
76  &stmsmi_flash,
78  &str7x_flash,
79  &str9x_flash,
81  &swm050_flash,
82  &tms470_flash,
84  &xcf_flash,
87  &w600_flash,
88  &rsl10_flash,
89  NULL,
90 };
91 
92 const struct flash_driver *flash_driver_find_by_name(const char *name)
93 {
94  for (unsigned int i = 0; flash_drivers[i]; i++) {
95  if (strcmp(name, flash_drivers[i]->name) == 0)
96  return flash_drivers[i];
97  }
98  return NULL;
99 }
const struct flash_driver aduc702x_flash
Definition: aduc702x.c:370
const struct flash_driver aducm360_flash
Definition: aducm360.c:544
const struct flash_driver ambiqmicro_flash
Definition: ambiqmicro.c:853
const char * name
Definition: armv4_5.c:76
const struct flash_driver at91sam3_flash
Definition: at91sam3.c:3710
const struct flash_driver at91sam4_flash
Definition: at91sam4.c:3258
const struct flash_driver at91sam4l_flash
Definition: at91sam4l.c:678
const struct flash_driver at91sam7_flash
Definition: at91sam7.c:1119
const struct flash_driver at91samd_flash
Definition: at91samd.c:1290
const struct flash_driver ath79_flash
Definition: ath79.c:882
const struct flash_driver atsame5_flash
Definition: atsame5.c:980
const struct flash_driver atsamv_flash
Definition: atsamv.c:687
const struct flash_driver avr_flash
Definition: avrf.c:461
const struct flash_driver bluenrgx_flash
Definition: bluenrg-x.c:465
const struct flash_driver cc26xx_flash
Definition: cc26xx.c:536
const struct flash_driver cc3220sf_flash
Definition: cc3220sf.c:480
const struct flash_driver cfi_flash
Definition: cfi.c:3037
static const struct flash_driver *const flash_drivers[]
The list of built-in flash drivers.
Definition: drivers.c:16
const struct flash_driver * flash_driver_find_by_name(const char *name)
Find a NOR flash driver by its name.
Definition: drivers.c:92
const struct flash_driver xmc1xxx_flash
Definition: xmc1xxx.c:523
const struct flash_driver stm32f2x_flash
Definition: stm32f2x.c:1792
const struct flash_driver renesas_rpchf_flash
const struct flash_driver em357_flash
Definition: em357.c:911
const struct flash_driver rsl10_flash
Definition: rsl10.c:832
const struct flash_driver str9x_flash
Definition: str9x.c:653
const struct flash_driver eneispif_flash
Definition: eneispif.c:419
const struct flash_driver sim3x_flash
Definition: sim3x.c:1094
const struct flash_driver pic32mx_flash
Definition: pic32mx.c:950
const struct flash_driver jtagspi_flash
Definition: jtagspi.c:841
const struct flash_driver fespi_flash
Definition: fespi.c:850
const struct flash_driver lpc2900_flash
Definition: lpc2900.c:1572
const struct flash_driver lpc2000_flash
Definition: lpc2000.c:1603
const struct flash_driver nrf5_flash
Definition: nrf5.c:1513
const struct flash_driver niietcm4_flash
Definition: niietcm4.c:1718
const struct flash_driver rp2040_flash
Definition: rp2040.c:523
const struct flash_driver psoc6_flash
Definition: psoc6.c:1023
const struct flash_driver qn908x_flash
Definition: qn908x.c:1183
const struct flash_driver swm050_flash
Definition: swm050.c:186
const struct flash_driver msp432_flash
Definition: msp432.c:1078
const struct flash_driver stmsmi_flash
Definition: stmsmi.c:639
const struct flash_driver str9xpec_flash
Definition: str9xpec.c:1188
const struct flash_driver xcf_flash
Definition: xcf.c:873
const struct flash_driver fm3_flash
Definition: fm3.c:974
const struct flash_driver sh_qspi_flash
Definition: sh_qspi.c:899
const struct flash_driver numicro_flash
Definition: numicro.c:1254
const struct flash_driver mrvlqspi_flash
Definition: mrvlqspi.c:943
const struct flash_driver virtual_flash
Definition: virtual.c:210
const struct flash_driver efm32_flash
Definition: efm32.c:1211
const struct flash_driver psoc5lp_flash
Definition: psoc5lp.c:1509
const struct flash_driver xmc4xxx_flash
Definition: xmc4xxx.c:1332
const struct flash_driver kinetis_ke_flash
Definition: kinetis_ke.c:1257
const struct flash_driver stellaris_flash
Definition: stellaris.c:1415
const struct flash_driver kinetis_flash
Definition: kinetis.c:3436
const struct flash_driver npcx_flash
Definition: npcx.c:529
const struct flash_driver psoc4_flash
Definition: psoc4.c:920
const struct flash_driver lpcspifi_flash
Definition: lpcspifi.c:934
const struct flash_driver dsp5680xx_flash
const struct flash_driver stm32l4x_flash
Definition: stm32l4x.c:2671
const struct flash_driver psoc5lp_nvl_flash
Definition: psoc5lp.c:814
const struct flash_driver psoc5lp_eeprom_flash
Definition: psoc5lp.c:997
const struct flash_driver w600_flash
Definition: w600.c:367
const struct flash_driver max32xxx_flash
Definition: max32xxx.c:960
const struct flash_driver lpc288x_flash
Definition: lpc288x.c:401
const struct flash_driver str7x_flash
Definition: str7x.c:786
const struct flash_driver faux_flash
Definition: faux.c:106
const struct flash_driver stm32lx_flash
Definition: stm32lx.c:938
const struct flash_driver stm32h7x_flash
Definition: stm32h7x.c:1193
const struct flash_driver fm4_flash
Definition: fm4.c:691
const struct flash_driver esirisc_flash
const struct flash_driver ocl_flash
Definition: ocl.c:306
const struct flash_driver mdr_flash
Definition: mdr.c:597
const struct flash_driver tms470_flash
Definition: tms470.c:1145
const struct flash_driver stmqspi_flash
Definition: stmqspi.c:2450
const struct flash_driver stm32f1x_flash
Definition: stm32f1x.c:1729
const struct flash_driver nrf51_flash
Definition: nrf5.c:1531
Provides the implementation-independent structure that defines all of the callbacks required by OpenO...
Definition: nor/driver.h:39
#define NULL
Definition: usb.h:16