OpenNet
OSDep.h
Aller à la documentation de ce fichier.
1 
2 // Product OpenNet
3 
8 
9 #pragma once
10 
11 // Data types
13 
25 typedef void * ( * OpenNetK_OSDep_AllocateMemory )( unsigned int aSize_byte );
26 
36 typedef void ( * OpenNetK_OSDep_FreeMemory )( void * aMemory );
37 
46 typedef uint64_t ( * OpenNetK_OSDep_GetTimeStamp )( void );
47 
59 typedef void ( * OpenNetK_OSDep_LockSpinlock )( void * aLock );
60 
72 typedef uint32_t ( * OpenNetK_OSDep_LockSpinlockFromThread )( void * aLock );
73 
85 typedef void ( * OpenNetK_OSDep_UnlockSpinlock )( void * aLock );
86 
98 typedef void ( * OpenNetK_OSDep_UnlockSpinlockFromThread)( void * aLock, uint32_t aFlags );
99 
122 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 );
123 
139 typedef void ( * OpenNetK_OSDep_UnmapBuffer )( void * aContext, void * aBuffer_MA, unsigned int aSize_byte, volatile void * aMarker_MA );
140 
157 typedef void * ( * OpenNetK_OSDep_MapSharedMemory )( void * aContext, void * aShared_UA, unsigned int aSize_byte );
158 
168 typedef void ( * OpenNetK_OSDep_UnmapSharedMemory )( void * aContext );
169 
178 typedef struct
179 {
180  void * mContext;
181 
182  OpenNetK_OSDep_AllocateMemory AllocateMemory;
183  OpenNetK_OSDep_FreeMemory FreeMemory ;
184 
185  OpenNetK_OSDep_GetTimeStamp GetTimeStamp;
186 
187  OpenNetK_OSDep_LockSpinlock LockSpinlock ;
188  OpenNetK_OSDep_LockSpinlockFromThread LockSpinlockFromThread ;
189  OpenNetK_OSDep_UnlockSpinlock UnlockSpinlock ;
190  OpenNetK_OSDep_UnlockSpinlockFromThread UnlockSpinlockFromThread;
191 
192  OpenNetK_OSDep_MapBuffer MapBuffer ;
193  OpenNetK_OSDep_UnmapBuffer UnmapBuffer;
194 
195  OpenNetK_OSDep_MapSharedMemory MapSharedMemory ;
196  OpenNetK_OSDep_UnmapSharedMemory UnmapSharedMemory;
197 
198 }
Cette structure contient des pointeurs vers les fonctions qui dependes du systeme d'exploitation...
Definition: OSDep.h:178
uint32_t(* OpenNetK_OSDep_LockSpinlockFromThread)(void *aLock)
Verouiller un spinlock et desactiver les interruptions.
Definition: OSDep.h:72
uint64_t(* OpenNetK_OSDep_GetTimeStamp)(void)
Obtenir un timestamp.
Definition: OSDep.h:46
void(* OpenNetK_OSDep_UnmapBuffer)(void *aContext, void *aBuffer_MA, unsigned int aSize_byte, volatile void *aMarker_MA)
Mapper un buffer.
Definition: OSDep.h:139
void(* OpenNetK_OSDep_UnlockSpinlockFromThread)(void *aLock, uint32_t aFlags)
Deverouiller un spinlock et reactiver les interruptions.
Definition: OSDep.h:98
void(* OpenNetK_OSDep_UnlockSpinlock)(void *aLock)
Deverouiller un spinlock.
Definition: OSDep.h:85
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)
Mapper un buffer.
Definition: OSDep.h:122
void *(* OpenNetK_OSDep_AllocateMemory)(unsigned int aSize_byte)
Allouer de la memoire non pagine.
Definition: OSDep.h:25
void(* OpenNetK_OSDep_UnmapSharedMemory)(void *aContext)
Relacher la memoire partage.
Definition: OSDep.h:168
void *(* OpenNetK_OSDep_MapSharedMemory)(void *aContext, void *aShared_UA, unsigned int aSize_byte)
Mapper la memoire partage.
Definition: OSDep.h:157
void(* OpenNetK_OSDep_LockSpinlock)(void *aLock)
Verouiller un spinlock.
Definition: OSDep.h:59
void(* OpenNetK_OSDep_FreeMemory)(void *aMemory)
Relacher de la memoire non pagine.
Definition: OSDep.h:36