blob: 824d25374b3e1072dbce8c098fecfffe68ca6d0c (
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
|
/*
* 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.
*/
/*!
* \internal
* \brief Migration API.
*
* \defgroup
*
*/
#ifndef __INC_MIGRATION_H
#define __INC_MIGRATION_H
#include <cm/engine/memory/inc/domain_type.h>
#include <cm/engine/dsp/inc/dsp.h>
typedef enum {
STATE_MIGRATED = 1,
STATE_NORMAL = 0,
} t_cm_migration_state;
PUBLIC t_cm_error cm_migrate(const t_cm_domain_id srcShared, const t_cm_domain_id src, const t_cm_domain_id dst);
PUBLIC t_cm_error cm_unmigrate(void);
PUBLIC t_uint32 cm_migration_translate(t_dsp_segment_type segmentType, t_uint32 addr);
PUBLIC void cm_migration_check_state(t_nmf_core_id coreId, t_cm_migration_state expected);
#endif /* __INC_MIGRATION_H */
|