[Hardware OS Virtual Memory Pointer Interface] Functionality for virtual BRAM pointers. More...
#include "hstructures.h"
Go to the source code of this file.
Functions | |
struct hvmemptr * | hvmemptr_create (struct hlelement *entry, int size) |
Create a pointer to virtual BRAM memory. | |
int | hvmemptr_set (struct hvmemptr *pointer, struct hlelement *entry, int size) |
Point the virtual pointer to the given BRAM-entry. | |
struct hlelement * | hvmemptr_get_bramentry (struct hvmemptr *pointer) |
Get the list element pointing to physical address in BRAM. | |
int | hvmemptr_get_size (struct hvmemptr *pointer) |
Get the size of the data pointed to by pointer. |
[Hardware OS Virtual Memory Pointer Interface] Functionality for virtual BRAM pointers.
Author (2011): Sindre Hansen
Definition in file hvmemptr.h.
Create a pointer to virtual BRAM memory.
entry | List element maintained by the hvmem-module. The element's data field contains address to the physical BRAM-memory. | |
size | The size (in bytes) of the data the pointer points to. |
Definition at line 12 of file hvmemptr.c.
Get the list element pointing to physical address in BRAM.
pointer | Virtual pointer. |
Definition at line 22 of file hvmemptr.c.
{ if (pointer == NULL) return NULL; return pointer->bramentry; }
int hvmemptr_get_size | ( | struct hvmemptr * | pointer | ) |
Get the size of the data pointed to by pointer.
pointer | Virtual pointer. | |
size | The size (in bytes) of the data the pointer points to. Negative on failure. |
Definition at line 42 of file hvmemptr.c.
{ if (pointer == NULL) return -1; return pointer->size; }
Point the virtual pointer to the given BRAM-entry.
pointer | Virtual pointer. | |
entry | List element maintained by the hvmem-module. The element's data field contains address to the physical BRAM-memory. | |
size | The size (in bytes) of the data the pointer points to. |
Definition at line 31 of file hvmemptr.c.