nmc-utils
0.1.1
Main Page
Modules
Data Structures
Files
File List
Globals
easynmc-bsync.c
Go to the documentation of this file.
1
35
/* Internal data structure of a barrier synchronizer */
36
37
struct
easynmc_mbox_data
{
38
uint32_t
sync_status
;
39
uint32_t
datalen
;
40
uint32_t
data
[];
41
};
42
43
enum
mbox_status
{
44
MBOX_EMPTY
=0,
45
MBOX_NOT_EMPTY
=1,
46
};
47
48
struct
easynmc_mbox
{
49
uint32_t
offset
;
50
struct
easynmc_handle
*
h
;
51
/* TODO: section filter */
52
};
53
64
struct
easynmc_mbox
*
easynmc_mbox_new
(
struct
easynmc_handle
*
h
,
const
char
* section)
65
{
66
67
}
68
76
int
easynmc_mbox_available
(
struct
easynmc_sync* s)
77
{
78
79
}
80
85
void
easynmc_mbox_free
(
struct
easynmc_sync* s)
86
{
87
88
}
89
101
int
easynmc_mbox_post
(
struct
easynmc_sync* s, uint32_t *data, uint32_t len)
102
{
103
104
}
105
114
int
easynmc_mbox_post_noblock
(
struct
easynmc_sync* s, uint32_t *data, uint32_t len)
115
{
116
117
}
118
131
int
easynmc_mbox_recv
(
struct
easynmc_sync* s, uint32_t *data, uint32_t *len)
132
{
133
134
}
135
145
int
easynmc_mbox_recv_nonblock
(
struct
easynmc_sync* s, uint32_t *data, uint32_t len)
146
{
147
148
}
149
150
int
easynmc_mbox_get_size
(
struct
easynmc_sync* s)
151
{
152
153
}
154
177
uint32_t*
easynmc_mbox_get_buffer
(
struct
easynmc_sync* s)
178
{
179
180
}
181
188
void
easynmc_mbox_set_status
(
struct
easynmc_sync* s)
189
{
190
191
}
192
199
int
easynmc_mbox_get_status
(
struct
easynmc_sync* s)
200
{
201
202
}
203
204
205
206
easynmc-bsync.c
Generated on Wed Dec 24 2014 19:29:47 for nmc-utils by
1.8.1.2