Changeset 165 for soft/giet_vm/xml/mapping_info.h
- Timestamp:
- Jul 4, 2012, 2:51:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/mapping_info.h
r160 r165 57 57 enum 58 58 { 59 ELF = 0, //loadable code object60 PTAB, //page table61 PERI, //hardware component62 MWMR, //MWMR channel63 LOCK, //Lock64 BUFFER, //Any "no intialiasation needed" objects (stacks...)65 BARRIER //Barrier59 VOBJ_TYPE_ELF = 0, // loadable code object 60 VOBJ_TYPE_PTAB = 1, // page table 61 VOBJ_TYPE_PERI = 2, // hardware component 62 VOBJ_TYPE_MWMR = 3, // MWMR channel 63 VOBJ_TYPE_LOCK = 4, // Lock 64 VOBJ_TYPE_BUFFER = 5, // Any "no intialiasation needed" objects (stacks...) 65 VOBJ_TYPE_BARRIER = 6, // Barrier 66 66 }; 67 67 … … 74 74 unsigned int psegs; // number of psegs 75 75 unsigned int ttys; // number of TTY terminals 76 unsigned int fbs; // number of Frame Buffer DMA channels 76 77 unsigned int globals; // number of vsegs mapped in all vspaces 77 78 unsigned int vspaces; // number of virtual spaces 78 79 unsigned int vsegs; // total number of virtual segments (for all vspaces) 79 unsigned int vobjs; // total number of virtual memoryobjects (for all vspaces)80 unsigned int vobjs; // total number of virtual objects (for all vspaces) 80 81 unsigned int tasks; // total number of tasks (for all vspaces) 81 82 char name[32]; // mapping name … … 86 87 { 87 88 unsigned int procs; // number of processors in cluster 88 unsigned int timers; // number of timers in cluster89 unsigned int dmas; // number of DMA channels in cluster90 89 } mapping_cluster_t; 91 90 … … 103 102 { 104 103 char name[32]; // virtual space name 105 unsigned int funcs_offset; // offset of the vobj containing the function entry table (relative to vobj_offset) 106 unsigned int vsegs; // number of private virtual segments 107 unsigned int vobjs; // number of vobjs channels 108 unsigned int tasks; // number of tasks 109 unsigned int ttys; // number of required TTY terminals 104 unsigned int start_offset; // offset of the vobj containing the start vector 105 unsigned int vsegs; // number of vsegs in vspace 106 unsigned int vobjs; // number of vobjs in vspace 107 unsigned int tasks; // number of tasks in vspace 110 108 unsigned int vseg_offset; // index of first vseg in vspace 111 109 unsigned int vobj_offset; // index of first vobjs in vspace … … 121 119 unsigned int length; // size (bytes) 122 120 unsigned int psegid; // physical segment index 123 unsigned char mode; // C-X-W-U flags 124 unsigned char ident; // identity mapping if non zero 125 unsigned int vobjs; // number of vobjs channels 126 unsigned int vobj_offset; // index of first vobjs in vspace 127 unsigned char reserved; // unused 121 unsigned int mode; // C-X-W-U flags 122 unsigned int ident; // identity mapping if non zero 123 unsigned int vobjs; // number of vobjs in vseg 124 unsigned int vobj_offset; // index of first vobjs in vseg 128 125 } mapping_vseg_t; 129 126 … … 135 132 unsigned int proclocid; // processor local index (inside cluster) 136 133 unsigned int vobjlocid; // stack vobj index in vspace 137 unsigned int startid; // index in start_vector (in seg_data) 138 unsigned int ttylocid; // tty index (inside the vspace) 134 unsigned int startid; // index in start_vector 135 unsigned int use_tty; // TTY terminal required 136 unsigned int use_fb; // DMA channel to frame buffer required 139 137 } mapping_task_t; 140 138 … … 143 141 { 144 142 char name[32]; // vobj name (unique in a vspace) 145 char binpath[64]; // path for the binary code ("*. bin")143 char binpath[64]; // path for the binary code ("*.elf") 146 144 unsigned int type; // type of vobj 147 145 unsigned int length; // size (bytes) 148 146 unsigned int align; // required alignement (logarithm of 2) 149 unsigned int vaddr; // virtual addresse of the vobj location (bytes) 150 unsigned int paddr; // physical addresse of the vobj location (bytes) 147 unsigned int vaddr; // virtual base addresse of the vobj 148 unsigned int paddr; // physical base addresse of the vobj 149 unsigned int init; // init value (number of participants for a barrier) 151 150 } mapping_vobj_t; 152 151
Note: See TracChangeset
for help on using the changeset viewer.