git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix: incorrect settings of msi registers.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
ds
/
fifobuf.h
1
#ifndef __LUNAIX_FIFO_BUF_H
2
#define __LUNAIX_FIFO_BUF_H
3
4
#include <lunaix/ds/mutex.h>
5
6
#define FIFO_DIRTY 1
7
8
struct fifo_buffer
9
{
10
void* data;
11
unsigned int wr_pos;
12
unsigned int rd_pos;
13
unsigned int size;
14
unsigned int flags;
15
mutex_t lock;
16
};
17
18
#endif /* __LUNAIX_FIFO_BUF_H */