blob: 477a66a4002a15667e748ff24d3becea52344dcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* Copyright (C) ST-Ericsson SA 2010
* Author: Jean-Philippe FASSINO <jean-philippe.fassino@stericsson.com> for ST-Ericsson.
* License terms: GNU General Public License (GPL) version 2.
*/
/*!
* \brief Communication User Engine API.
*
* This file contains the Communication Engine API for manipulating components.
*
*/
#ifndef COMMUNICATION_ENGINE_H_
#define COMMUNICATION_ENGINE_H_
#include <cm/engine/communication/inc/communication_type.h>
/*!
* \brief Allocate Event buffer where parameters will be marshalled.
*
* In order to optimize call, this method don't need to be exported to user space,
* but must be used by CM driver.
*
* See \ref HOST2MPC "Host->MPC binding" for seeing an integration example.
*
* \note This method is not called from user space!!!
*
* \ingroup CM_ENGINE_API
*/
PUBLIC IMPORT_SHARED t_event_params_handle CM_ENGINE_AllocEvent(t_cm_bf_host2mpc_handle host2mpcId);
/*!
* \brief Push a event in Fifo.
*
* In order to optimize call, this method don't need to be exported to user space,
* but must be used by CM driver.
*
* See \ref HOST2MPC "Host->MPC binding" for seeing an integration example.
*
* \note This method is not called from user space!!!
*
* \ingroup CM_ENGINE_API
*/
PUBLIC IMPORT_SHARED t_cm_error CM_ENGINE_PushEvent(t_cm_bf_host2mpc_handle host2mpcId, t_event_params_handle h, t_uint32 methodIndex);
/*!
* \brief Push a event in Fifo.
*
* In order to optimize call, this method need to be exported to user space
* and must be implemented by CM driver.
*
* See \ref HOST2MPC "Host->MPC binding" for seeing an integration example.
*
* \note No implementation of this method is provided in kernel CM engine!!!
*
* \ingroup CM_ENGINE_API
*/
PUBLIC t_cm_error CM_ENGINE_PushEventWithSize(t_cm_bf_host2mpc_handle host2mpcId, t_event_params_handle h, t_uint32 size, t_uint32 methodIndex);
/*!
* \brief Aknowledge a Fifo that the received event has been demarshalled.
*
* In order to optimize call, this method don't need to be exported to user space,
* but must be used by CM driver.
*
* See \ref MPC2HOST "MPC->Host binding" for seeing an integration example.
*
* \note This method is not called from user space!!!
*
* \ingroup CM_ENGINE_API
*/
PUBLIC IMPORT_SHARED void CM_ENGINE_AcknowledgeEvent(t_cm_bf_mpc2host_handle mpc2hostId);
#endif /*COMMUNICATION_ENGINE_H_*/
|