blob: 9eab94f173c1fab611047f25dc648bb0ddd6c067 (
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
74
75
76
77
|
/*
* 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 Elf memory.
*/
#ifndef __INC_CM_ELF_MEMORY_H
#define __INC_CM_ELF_MEMORY_H
#include <cm/engine/dsp/inc/dsp.h>
/**
* \brief Memory identifier
*/
typedef t_uint8 t_memory_id;
/**
* \brief Memory property
*/
typedef enum {
MEM_FOR_MULTIINSTANCE,
MEM_FOR_SINGLETON,
MEM_FOR_LAST
} t_instance_property;
/**
* \brief Memory prupose (for processor with different address space for code and data/
*/
typedef enum {
MEM_CODE,
MEM_DATA
} t_memory_purpose;
/**
* \brief Memory property
*/
typedef enum {
MEM_PRIVATE,
MEM_SHARABLE,
} t_memory_property;
/**
* \brief Elf memory mapping description
*/
typedef struct
{
t_memory_id id;
t_dsp_memory_type_id dspMemType;
t_uint32 startAddr;
t_cm_memory_alignment memAlignement;
t_memory_property property;
t_memory_purpose purpose;
t_uint8 fileEntSize;
t_uint8 memEntSize;
char* memoryName;
} t_elfmemory;
#define NUMBER_OF_MMDSP_MEMORY 15
/*
* \brief Elf segment description
*/
typedef struct {
// Data in Bytes
t_uint32 sumSize;
t_bool sumSizeSetted;
t_cm_logical_address hostAddr; // Valid only if section Load in memory
t_uint32 maxAlign;
// Data in word
t_uint32 mpcAddr; // Valid only if section Load in memory
} t_elfSegment;
#endif
|