MOS Source Code
Loading...
Searching...
No Matches
internal.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include <librpc/rpc.h>
6#include <mos/types.h>
7
8#define RPC_REQUEST_MAGIC MOS_FOURCC('R', 'P', 'C', '>')
9#define RPC_RESPONSE_MAGIC MOS_FOURCC('R', 'P', 'C', '<')
10#define RPC_ARG_MAGIC MOS_FOURCC('R', 'P', 'C', 'A')
11
12typedef struct
13{
14 u32 magic; // RPC_ARG_MAGIC
17 char data[];
19
20typedef struct
21{
22 u32 magic; // RPC_REQUEST_MAGIC
24
27 char args_array[]; // rpc_arg_t[]
29
30typedef struct
31{
32 u32 magic; // RPC_RESPONSE_MAGIC
34
36 size_t data_size;
37 char data[];
#define __packed
Definition mos_global.h:29
rpc_argtype_t
Definition rpc.h:9
rpc_result_code_t
Definition rpc.h:25
u32 magic
Definition internal.h:14
rpc_argtype_t argtype
Definition internal.h:15
u32 size
Definition internal.h:16
u32 function_id
Definition internal.h:25
rpc_result_code_t result_code
Definition internal.h:35
size_t data_size
Definition internal.h:36
unsigned int u32
Definition types.h:21
u32 id_t
Definition types.h:74