bsps/qspi: Make flashdev control structure private

These structures are not required to be exposed to users for any
functionality and users of the API have no way to make use of them.
This commit is contained in:
Kinsey Moore
2025-10-16 11:26:52 -05:00
parent 62e0865bcc
commit 955d36ea47
4 changed files with 18 additions and 18 deletions

View File

@@ -32,6 +32,15 @@
#include <stdlib.h>
#include <string.h>
/*
* @brief Struct allocating memory space for flash regions. Used by
* rtems_flashdev to store region allocations.
*/
typedef struct zqspi_flash_region_table {
rtems_flashdev_region zqspi_flash_regions[ZQSPI_FLASH_MAX_REGIONS];
uint32_t zqspi_flash_bit_allocator;
} zqspi_flash_region_table;
static uint32_t zqspi_get_jedec_id(rtems_flashdev *flash) {
uint32_t jedec = 0;
zqspi_readid(flash->driver, &jedec);

View File

@@ -47,13 +47,4 @@
*/
rtems_flashdev* zqspi_flashdev_init(zqspiflash *bmdriver);
/*
* @brief Struct allocating memory space for flash regions. Used by
* rtems_flashdev to store region allocations.
*/
typedef struct zqspi_flash_region_table {
rtems_flashdev_region zqspi_flash_regions[ZQSPI_FLASH_MAX_REGIONS];
uint32_t zqspi_flash_bit_allocator;
} zqspi_flash_region_table;
#endif /* _ZYNQ_QSPI_FLASHDEV_H */

View File

@@ -50,15 +50,6 @@ extern "C" {
*/
rtems_flashdev* xqspi_flash_init(XQspiPsu *xQspiDev);
/*
* @brief Struct allocating memory space for flash regions. Used by
* rtems_flashdev to store region allocations.
*/
typedef struct xqspi_flash_region_table {
rtems_flashdev_region xqspi_flash_regions[XQSPI_FLASH_MAX_REGIONS];
uint32_t xqspi_flash_bit_allocator;
} xqspi_flash_region_table;
#ifdef __cplusplus
}
#endif

View File

@@ -32,6 +32,15 @@
#include <stdlib.h>
#include <string.h>
/*
* @brief Struct allocating memory space for flash regions. Used by
* rtems_flashdev to store region allocations.
*/
typedef struct xqspi_flash_region_table {
rtems_flashdev_region xqspi_flash_regions[XQSPI_FLASH_MAX_REGIONS];
uint32_t xqspi_flash_bit_allocator;
} xqspi_flash_region_table;
static uint32_t xqspi_get_jedec_id(rtems_flashdev *flash) {
return QspiPsu_NOR_Get_JEDEC_ID(flash->driver);
}