blob: 354315d4d72825219c68011820134269fc98c42a (
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
|
/*
* 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, with
* user space exemption described in the top-level COPYING file in
* the Linux kernel source tree.
*/
/***************************************************************************/
/* file : domain.h
* author : NMF team
* version : 1.0
*
* brief : NMF domain definitions
*/
/***************************************************************************/
#ifndef DOMAIN_TYPE_H_
#define DOMAIN_TYPE_H_
#include <cm/inc/cm_type.h>
#include <cm/engine/memory/inc/memory_type.h>
/*!
* \brief Domain identifier
* \ingroup CM_DOMAIN_API
*/
typedef t_uint8 t_cm_domain_id;
/*!
* \brief Client identifier
* 0 (zero) is considered as an invalid or 'NO' client identifier
* \ingroup CM_DOMAIN_API
*/
typedef t_uint32 t_nmf_client_id;
#define NMF_CORE_CLIENT (t_nmf_client_id)-1
#define NMF_CURRENT_CLIENT (t_nmf_client_id)0
typedef struct {
t_uint32 offset; //!< offset relativ to segment start in memory (in bytes)
t_uint32 size; //!< size in bytes of the domain segment
} t_cm_domain_segment;
/*!
* \brief Domain memory description structure
* \ingroup CM_DOMAIN_API
*/
typedef struct {
t_nmf_core_id coreId; //!< MMDSP Core Id for this domain (used for TCM-X and TCM-Y at instantiate)
t_cm_domain_segment esramCode; //!< ESRAM code segment
t_cm_domain_segment esramData; //!< ESRAM data segment
t_cm_domain_segment sdramCode; //!< SDRAM code segment
t_cm_domain_segment sdramData; //!< SDRAM data segment
} t_cm_domain_memory;
#define INIT_DOMAIN_SEGMENT {0, 0}
#define INIT_DOMAIN {MASK_ALL8, INIT_DOMAIN_SEGMENT, INIT_DOMAIN_SEGMENT, INIT_DOMAIN_SEGMENT, INIT_DOMAIN_SEGMENT}
#endif /* DOMAIN_TYPE_H_ */
|