OpenNetK_OSDep.
More...
Go to the source code of this file.
|
| typedef void *(* | OpenNetK_OSDep_AllocateMemory) (unsigned int aSize_byte) |
| | Allocate non paged memory. More...
|
| |
| typedef void(* | OpenNetK_OSDep_FreeMemory) (void *aMemory) |
| | Release non paged memory. More...
|
| |
| typedef uint64_t(* | OpenNetK_OSDep_GetTimeStamp) (void) |
| | Retrive a timestamp. More...
|
| |
| typedef void(* | OpenNetK_OSDep_LockSpinlock) (void *aLock) |
| | Lock a spinlock. More...
|
| |
| typedef uint32_t(* | OpenNetK_OSDep_LockSpinlockFromThread) (void *aLock) |
| | Lock a spinlock and disable interrupt. More...
|
| |
| typedef void(* | OpenNetK_OSDep_UnlockSpinlock) (void *aLock) |
| | Unlock a spinlock. More...
|
| |
| typedef void(* | OpenNetK_OSDep_UnlockSpinlockFromThread) (void *aLock, uint32_t aFlags) |
| | Unlock a spinlock and restore interrupt. More...
|
| |
| typedef void *(* | OpenNetK_OSDep_MapBuffer) (void *aContext, uint64_t *aBuffer_PA, uint64_t aBuffer_DA, unsigned int aSize_byte, uint64_t aMarker_PA, volatile void **aMarker_MA) |
| | Map a buffer. More...
|
| |
| typedef void(* | OpenNetK_OSDep_UnmapBuffer) (void *aContext, void *aBuffer_MA, unsigned int aSize_byte, volatile void *aMarker_MA) |
| | Map a buffer. More...
|
| |
| typedef void *(* | OpenNetK_OSDep_MapSharedMemory) (void *aContext, void *aShared_UA, unsigned int aSize_byte) |
| | Map the shared memory. More...
|
| |
| typedef void(* | OpenNetK_OSDep_UnmapSharedMemory) (void *aContext) |
| | Unmap the shared memory. More...
|
| |
OpenNetK_OSDep.
- Author
- KMS - Martin Dubois, ing.
- Copyright
- Copyright (C) 2018-2019 KMS. All rights reserved.
| typedef void*( * OpenNetK_OSDep_AllocateMemory) (unsigned int aSize_byte) |
Allocate non paged memory.
- Parameters
-
| aSize_byte | The size of memory to allocate |
- Returns
- The allocated memory's address
- See also
- OpenNetK_OSDep_FreeMemory
| typedef void( * OpenNetK_OSDep_FreeMemory) (void *aMemory) |
| typedef uint64_t( * OpenNetK_OSDep_GetTimeStamp) (void) |
Retrive a timestamp.
- Returns
- A timestamp in us
| typedef void( * OpenNetK_OSDep_LockSpinlock) (void *aLock) |
| typedef uint32_t( * OpenNetK_OSDep_LockSpinlockFromThread) (void *aLock) |
| typedef void*( * OpenNetK_OSDep_MapBuffer) (void *aContext, uint64_t *aBuffer_PA, uint64_t aBuffer_DA, unsigned int aSize_byte, uint64_t aMarker_PA, volatile void **aMarker_MA) |
Map a buffer.
- Parameters
-
| aContext | The context |
| aBuffer_PA | The input or output for the buffer physical address |
| aBuffer_DA | The buffer device address |
| aSize_byte | The size of the buffer |
| aMarker_PA | The physical address of the marker |
| aMarker_MA | The mapped address of the marker is returner here |
- Returns
- This function return the mapped address of the buffer
- See also
- OpenNetK_OSDep_UnmapBuffer
| typedef void*( * OpenNetK_OSDep_MapSharedMemory) (void *aContext, void *aShared_UA, unsigned int aSize_byte) |
Map the shared memory.
- Parameters
-
| aContext | The context |
| aShared_US | The user address of the shared memory |
| aSize_byte | The size of the shared memory |
- Returns
- This function return the mapped address of the shared memory
- See also
- OpenNetK_OSDep_UnmapSharedMemory
| typedef void( * OpenNetK_OSDep_UnlockSpinlock) (void *aLock) |
| typedef void( * OpenNetK_OSDep_UnlockSpinlockFromThread) (void *aLock, uint32_t aFlags) |
| typedef void( * OpenNetK_OSDep_UnmapBuffer) (void *aContext, void *aBuffer_MA, unsigned int aSize_byte, volatile void *aMarker_MA) |
Map a buffer.
- Parameters
-
| aContext | The context |
| aBuffer_MA | The mapped address of the buffer |
| aSize_byte | The size of the buffer |
| aMarker_MA | The mapped address of the marker is returner here |
- See also
- OpenNetK_OSDep_MapBuffer
| typedef void( * OpenNetK_OSDep_UnmapSharedMemory) (void *aContext) |