aboutsummaryrefslogtreecommitdiffstats
path: root/include/pgm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pgm.h')
-rw-r--r--include/pgm.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/pgm.h b/include/pgm.h
index cafb18c..dd72bf6 100644
--- a/include/pgm.h
+++ b/include/pgm.h
@@ -90,8 +90,17 @@ typedef struct pgm_edge_attr
90 size_t nr_consume; /* #tokens consumed per invocation */ 90 size_t nr_consume; /* #tokens consumed per invocation */
91 size_t nr_threshold; /* #tokens required before consume allowed */ 91 size_t nr_threshold; /* #tokens required before consume allowed */
92 92
93 // This will be 1 for producer-consumer buffer, 2 for wait-free buffer and
94 // 0 for an unknown type.
95 int ipc_type_to_use;
96
93 pgm_edge_type_t type; /* type indicating underlying IPC of the edge */ 97 pgm_edge_type_t type; /* type indicating underlying IPC of the edge */
94 98
99 /* for logical page support. Refer RTSS16 paper */
100 unsigned int color;
101 unsigned int bank;
102 unsigned long offset;
103
95 /* edge-type specific params */ 104 /* edge-type specific params */
96 union 105 union
97 { 106 {
@@ -112,10 +121,6 @@ typedef struct pgm_edge_attr
112 { 121 {
113 /* The maximum number of bytes in a wait-free buffer. */ 122 /* The maximum number of bytes in a wait-free buffer. */
114 size_t buffer_bytes; 123 size_t buffer_bytes;
115 /* for logical page support. Refer RTSS16 paper */
116 unsigned int color;
117 unsigned int bank;
118 unsigned long offset;
119 }; 124 };
120 struct /* POSIX message queue params */ 125 struct /* POSIX message queue params */
121 { 126 {
@@ -139,7 +144,11 @@ static const edge_attr_t default_edge = {
139 .nr_produce = 1, 144 .nr_produce = 1,
140 .nr_consume = 1, 145 .nr_consume = 1,
141 .nr_threshold = 1, 146 .nr_threshold = 1,
147 .ipc_type_to_use = 0,
142 .type = pgm_cv_edge, 148 .type = pgm_cv_edge,
149 .color = 0,
150 .bank = 0,
151 .offset = 0,
143}; 152};
144 153
145/* 154/*