projects
/
jump.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1eb893d81dd716f441ba4238fa4e5d08e05f894e
[jump.git]
/
shared.h
1
/* shared.h
2
* NOTE: shared between Host and Epiphany */
3
#ifndef _SHARED_H_
4
#define _SHARED_H_
5
6
#ifndef PACKED
7
#define PACKED __attribute__((packed))
8
#endif
9
10
#include <stdint.h>
11
12
#define NUM_CORES 16
13
#define CORES_PER_ROW 4
14
15
typedef struct {
16
volatile uint32_t rp;
17
volatile uint32_t wp;
18
volatile uint32_t size;
19
char buf[];
20
} PACKED hwbuf_t;
21
@@SHM_BUF_STRUCTS@@
22
typedef struct {
23
uint32_t counters[2];
24
} PACKED coredata_t;
25
26
typedef struct {
27
int32_t states[NUM_CORES];
28
coredata_t cores[NUM_CORES];
29
@@SHM_BUFS@@
30
} PACKED shm_t;
31
32
#endif /* _SHARED_H_ */