Device descriptor for generic NVRAM devices. More...
#include <nvram.h>
Data Fields | |
| int(* | read )(struct nvram *dev, uint8_t *dst, uint32_t src, size_t size) | 
| Pointer to device-specific read function.  More... | |
| int(* | write )(struct nvram *dev, const uint8_t *src, uint32_t dst, size_t size) | 
| Pointer to device-specific write function.  More... | |
| size_t | size | 
| Device capacity.  | |
| void * | extra | 
| Device-specific parameters, if any.  | |
Pointer to device-specific read function.
Copy data from system memory to NVRAM.
| [in] | dev | Pointer to NVRAM device descriptor | 
| [out] | dst | Pointer to the first byte in the system memory address space | 
| [in] | src | Starting address in the NVRAM device address space | 
| [in] | len | Number of bytes to copy | 
Pointer to device-specific write function.
Copy data from NVRAM to system memory.
| [in] | dev | Pointer to NVRAM device descriptor | 
| [in] | src | Pointer to the first byte in the system memory address space | 
| [in] | dst | Starting address in the NVRAM device address space | 
| [in] | len | Number of bytes to copy |