]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/wilc1000/fifo_buffer.h
4d120503c4b2e2c6e49ac2dd91c5a45a62a7e267
[karo-tx-linux.git] / drivers / staging / wilc1000 / fifo_buffer.h
1
2 #include "wilc_oswrapper.h"
3
4
5 #define tHANDLE void *
6
7 typedef struct {
8         u8              *pu8Buffer;
9         WILC_Uint32 u32BufferLength;
10         WILC_Uint32 u32WriteOffset;
11         WILC_Uint32 u32ReadOffset;
12         WILC_Uint32 u32TotalBytes;
13         struct semaphore SemBuffer;
14 } tstrFifoHandler;
15
16
17 extern WILC_Uint32 FIFO_InitBuffer(tHANDLE *hBuffer,
18                                                                    WILC_Uint32 u32BufferLength);
19 extern WILC_Uint32 FIFO_DeInit(tHANDLE hFifo);
20 extern WILC_Uint32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer,
21                                 WILC_Uint32 u32BytesToRead, WILC_Uint32 *pu32BytesRead);
22 extern WILC_Uint32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer,
23                                 WILC_Uint32 u32BytesToWrite, WILC_Bool bForceOverWrite);