RTEMS 6.2
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
xnandpsu_flashdev.c File Reference

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_flashdevxnandpsu_flashdev_init (XNandPsu *nandpsu)
 Initializes a flash device using Xilinx's xnandpsu flash driver.
 

Detailed Description

Flashdev backend XNandPsu peripheral.

Function Documentation

◆ xnandpsu_flashdev_init()

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.

Parameters
[in]nandpsuA pointer to a configured XNandPsu device.
Return values
Apointer to the rtems_flashdev.
NULLon failure.