![]() |
RTEMS 6.3
|
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>Data Structures | |
| struct | nand_priv_data |
| Struct allocating memory space for flash regions. Used by rtems_flashdev to store region allocations. More... | |
Macros | |
| #define | XNANDPSU_FLASH_MAX_REGIONS ( (size_t) 32 ) |
Typedefs | |
| typedef struct nand_priv_data | nand_priv_data |
| Struct allocating memory space for flash regions. Used by rtems_flashdev to store region allocations. | |
Functions | |
| rtems_flashdev * | xnandpsu_flashdev_init (XNandPsu *nandpsu) |
| Initializes a flash device using Xilinx's xnandpsu flash driver. | |
Flashdev backend XNandPsu peripheral.
| rtems_flashdev * xnandpsu_flashdev_init | ( | XNandPsu * | nandpsu | ) |
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.
| [in] | nandpsu | A pointer to a configured XNandPsu device. |
| A | pointer to the rtems_flashdev. |
| NULL | on failure. |