Commit eab2f2a
pibridge-serdev: Move definitions in new header file pibridge.h
Move structure definitions for GATE and IO packet headers as well as the
macro for the fifo size into the new header file pibridge.h.
By doing this extend the fifo size to a power of 2 since this is what the
kfifo API will extend the fifo to, anyway. Also rename the macro from
PIBRIDGE_RECV_BUFFER_SIZE to the more appropriate PIBRIDGE_RECV_FIFO_SIZE.
This is in preparation of implementing tracing macros which are defined in
a seperate header file but need access to the definitions mentioned above.
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>1 parent 17011fe commit eab2f2a
2 files changed
Lines changed: 27 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 27 | | |
43 | 28 | | |
44 | 29 | | |
| |||
121 | 106 | | |
122 | 107 | | |
123 | 108 | | |
124 | | - | |
125 | | - | |
| 109 | + | |
126 | 110 | | |
127 | 111 | | |
128 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments