]>
Commit | Line | Data |
---|---|---|
c5c77ba1 | 1 | |
c3ea8a72 DL |
2 | #include <linux/types.h> |
3 | #include <linux/semaphore.h> | |
4 | #include "wilc_memory.h" | |
5 | #include "wilc_strutils.h" | |
c5c77ba1 JK |
6 | |
7 | ||
8 | #define tHANDLE void * | |
9 | ||
10 | typedef struct { | |
63d03e47 | 11 | u8 *pu8Buffer; |
4e4467fd CL |
12 | u32 u32BufferLength; |
13 | u32 u32WriteOffset; | |
14 | u32 u32ReadOffset; | |
15 | u32 u32TotalBytes; | |
83383ea3 | 16 | struct semaphore SemBuffer; |
c5c77ba1 JK |
17 | } tstrFifoHandler; |
18 | ||
19 | ||
4e4467fd CL |
20 | extern u32 FIFO_InitBuffer(tHANDLE *hBuffer, |
21 | u32 u32BufferLength); | |
22 | extern u32 FIFO_DeInit(tHANDLE hFifo); | |
23 | extern u32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer, | |
24 | u32 u32BytesToRead, u32 *pu32BytesRead); | |
25 | extern u32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer, | |
72ed4dc7 | 26 | u32 u32BytesToWrite, bool bForceOverWrite); |