4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 9135f43 was
2c060e3,
checked in by Daniel Lawson <dlawson@…>, 18 years ago
|
Initial revision
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | // $Id$ |
---|
2 | #ifndef _FIFO_H_ |
---|
3 | #define _FIFO_H_ |
---|
4 | |
---|
5 | struct fifo_t; |
---|
6 | |
---|
7 | typedef struct fifo_state { |
---|
8 | long long int in; |
---|
9 | long long int out; |
---|
10 | long long int ack; |
---|
11 | long long int length; |
---|
12 | long long int used; |
---|
13 | } fifo_state_t; |
---|
14 | |
---|
15 | |
---|
16 | struct fifo_t *create_fifo(size_t size); |
---|
17 | void destroy_fifo(struct fifo_t *fifo); |
---|
18 | |
---|
19 | |
---|
20 | void fifo_stat(struct fifo_t *fifo, char *desc, int delta); |
---|
21 | char *fifo_stat_str(struct fifo_t *fifo, char *desc, int delta); |
---|
22 | void fifo_stat_int(struct fifo_t *fifo, fifo_state_t *state); |
---|
23 | |
---|
24 | size_t fifo_out_available(struct fifo_t *fifo); |
---|
25 | size_t fifo_ack_available(struct fifo_t *fifo); |
---|
26 | size_t fifo_free(struct fifo_t *fifo); |
---|
27 | size_t fifo_length(struct fifo_t *fifo); |
---|
28 | |
---|
29 | int fifo_write(struct fifo_t *fifo, void *buffer, size_t len); |
---|
30 | |
---|
31 | int fifo_out_read(struct fifo_t *fifo, void *buffer, size_t len); |
---|
32 | int fifo_ack_read(struct fifo_t *fifo, void *buffer, size_t len); |
---|
33 | int fifo_out_update(struct fifo_t *fifo, size_t len); |
---|
34 | int fifo_ack_update(struct fifo_t *fifo, size_t len); |
---|
35 | |
---|
36 | void fifo_out_reset(struct fifo_t *fifo); |
---|
37 | |
---|
38 | void fifo_flush(struct fifo_t *fifo); |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | #endif // _FIFO_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.