1/*
2 * Copyright 2016, 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(D61_BSD)
11 */
12
13#ifndef _REFOS_PROCESS_SERVER_DISPATCHER_RAM_DATASPACE_SYSCALL_H_
14#define _REFOS_PROCESS_SERVER_DISPATCHER_RAM_DATASPACE_SYSCALL_H_
15
16#include "../common.h"
17#include "dispatcher.h"
18
19#define PROCSERV_DSPACE_FLAG_DEVICE_PADDR 0x10000000
20
21/*! @file
22   @brief Process server anon dataspace syscall handler. */
23
24int rpc_sv_data_dispatcher(void *rpc_userptr, uint32_t label);
25
26/*! @brief Check whether the given recieved message is a data syscall.
27    @param m Struct containing info about the recieved message.
28    @param userptr Output user pointer. Pass this into the generated dispatcher function.
29    @return DISPATCH_SUCCESS if message is a dataspace syscall, DISPATCH_PASS otherwise.
30*/
31int check_dispatch_dataspace(struct procserv_msg *m, void **userptr);
32
33#endif /* _REFOS_PROCESS_SERVER_DISPATCHER_RAM_DATASPACE_SYSCALL_H_ */