X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fepiphany%2Ftemplate%2Fshared.h;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fepiphany%2Ftemplate%2Fshared.h;h=467b09fae86a08e86186a1ed136462065a08bbe4;hb=2858109405a90a4d9df149b10444678d42e41c59;hp=0000000000000000000000000000000000000000;hpb=cbc1f1265fd129d066da10e72e819d7d20f5360a;p=jump.git diff --git a/dol/src/dol/visitor/epiphany/template/shared.h b/dol/src/dol/visitor/epiphany/template/shared.h new file mode 100644 index 0000000..467b09f --- /dev/null +++ b/dol/src/dol/visitor/epiphany/template/shared.h @@ -0,0 +1,33 @@ +/* shared.h + * NOTE: shared between Host and Epiphany */ +#ifndef _SHARED_H_ +#define _SHARED_H_ + +#ifndef PACKED +#define PACKED __attribute__((packed)) +#endif + +#include + +#define NUM_CORES 16 +#define CORES_PER_ROW 4 + +typedef struct { + volatile uint32_t rp; + volatile uint32_t wp; + volatile uint32_t size; + char buf[]; +} PACKED hwbuf_t; +@@SHM_BUF_STRUCTS@@ +typedef struct { + uint32_t counters[2]; +} PACKED coredata_t; + +typedef struct { + int32_t states[NUM_CORES]; + coredata_t cores[NUM_CORES]; + buf0_t buf0; + buf1_t buf1; +} PACKED shm_t; + +#endif /* _SHARED_H_ */