• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved.
3  *
4  * UniProton is licensed under Mulan PSL v2.
5  * You can use this software according to the terms and conditions of the Mulan PSL v2.
6  * You may obtain a copy of Mulan PSL v2 at:
7  * 	http://license.coscl.org.cn/MulanPSL2
8  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
9  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
10  * See the Mulan PSL v2 for more details.
11  * Create: 2022-12-05
12  * Description: openamp backend
13  */
14 
15 #include "openamp/open_amp.h"
16 #include "openamp_common.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 extern int rpmsg_service_init(void);
23 
24 /*
25  * @brief Initialize RPMsg backend
26  *
27  * @param io   Shared memory IO region. This is an output parameter providing
28  *             a pointer to an actual shared memory IO region structure.
29  *             Caller of this function shall pass an address at which the
30  *             pointer to the shared memory IO region structure is stored.
31  * @param vdev Pointer to the virtio device initialized by this function.
32  *
33  * @retval 0 Initialization successful
34  * @retval <0 Initialization error reported by OpenAMP
35  */
36 extern int rpmsg_backend_init(struct metal_io_region **io, struct virtio_device *vdev);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41