Flashdev backend XNandPsu peripheral.
More...
#include <assert.h>
#include <dev/flash/xnandpsu_flashdev.h>
#include <dev/nand/xnandpsu_bbm.h>
#include <errno.h>
#include <rtems/libcsupport.h>
#include <rtems/libio.h>
#include <rtems/malloc.h>
#include <rtems/score/basedefs.h>
#include <rtems/thread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
|
|
#define | XNANDPSU_FLASH_MAX_REGIONS ( (size_t) 32 ) |
| |
|
|
typedef struct nand_priv_data | nand_priv_data |
| | Struct allocating memory space for flash regions. Used by rtems_flashdev to store region allocations.
|
| |
Flashdev backend XNandPsu peripheral.
◆ xnandpsu_flashdev_init()
Initializes a flash device using Xilinx's xnandpsu flash driver.
The flash device is not registered in this call. The returned object must be destroyed with rtems_flashdev_destroy if it has not been registered.
- Parameters
-
| [in] | nandpsu | A pointer to a configured XNandPsu device. |
- Return values
-