1/*#
2 *#Copyright 2020, Data61
3 *#Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 *#ABN 41 687 119 230.
5 *#
6 *#This software may be distributed and modified according to the terms of
7 *#the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 *#See "LICENSE_BSD2.txt" for details.
9 *#
10 *#@TAG(DATA61_BSD)
11  #*/
12/*- set suffix = "_buf" -*/
13/*- include 'seL4MultiSharedData-from.template.c' -*/
14
15/*- from 'rpc-connector.c' import establish_from_rpc, begin_send, perform_call, release_recv with context -*/
16
17#include <camkes/dataport.h>
18
19/*? macros.show_includes(me.instance.type.includes) ?*/
20/*? macros.show_includes(me.interface.type.includes) ?*/
21
22/*- set connector = namespace() -*/
23/*- set shmem_size = configuration[me.instance.name].get("%s_shmem_size" % me.interface.name, 4096) -*/
24
25/*- set lock = True -*/
26/*? establish_from_rpc(connector, buffer=('((void*)%s%s)' % (me.interface.name, suffix), shmem_size, lock)) ?*/
27
28/*- include 'rpc-connector-common-from.c' -*/
29