mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user