Changeset 439 for soft/giet_vm/giet_xml
- Timestamp:
- Nov 3, 2014, 10:58:31 AM (10 years ago)
- Location:
- soft/giet_vm/giet_xml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/mapping_info.h
r409 r439 103 103 PERIPH_TYPE_DMA = 1, 104 104 PERIPH_TYPE_FBF = 2, 105 PERIPH_TYPE_ICU = 3, 106 PERIPH_TYPE_IOB = 4, 107 PERIPH_TYPE_IOC = 5, 108 PERIPH_TYPE_MMC = 6, 109 PERIPH_TYPE_MWR = 7, 110 PERIPH_TYPE_NIC = 8, 111 PERIPH_TYPE_ROM = 9, 112 PERIPH_TYPE_SIM = 10, 113 PERIPH_TYPE_TIM = 11, 114 PERIPH_TYPE_TTY = 12, 115 PERIPH_TYPE_XCU = 13, 116 PERIPH_TYPE_PIC = 14, 117 118 PERIPH_TYPE_MAX_VALUE = 15, 105 PERIPH_TYPE_IOB = 3, 106 PERIPH_TYPE_IOC = 4, 107 PERIPH_TYPE_MMC = 5, 108 PERIPH_TYPE_MWR = 6, 109 PERIPH_TYPE_NIC = 7, 110 PERIPH_TYPE_ROM = 8, 111 PERIPH_TYPE_SIM = 9, 112 PERIPH_TYPE_TIM = 10, 113 PERIPH_TYPE_TTY = 11, 114 PERIPH_TYPE_XCU = 12, 115 PERIPH_TYPE_PIC = 13, 116 117 PERIPH_TYPE_MAX_VALUE = 14, 119 118 }; 120 119 … … 237 236 unsigned int heap_vobj_id; // global index for vobj containing heap 238 237 unsigned int startid; // index in start_vector 239 unsigned int use_tty; // TTY channel required (global)240 unsigned int use_nic; // NIC channel required (global)241 unsigned int use_cma; // CMA channel required (global)242 unsigned int use_hba; // IOC channel required (global)243 unsigned int use_tim; // user timer required (local)244 238 } mapping_task_t; 245 239 -
soft/giet_vm/giet_xml/xml_driver.c
r349 r439 76 76 "DMA", 77 77 "FBF", 78 "ICU",79 78 "IOB", 80 79 "IOC", … … 327 326 fprintf(fpout, " arg=\"%d\" >\n", periph[periph_id].arg); 328 327 if ( (periph[periph_id].type == PERIPH_TYPE_PIC) || 329 (periph[periph_id].type == PERIPH_TYPE_XCU) || 330 (periph[periph_id].type == PERIPH_TYPE_ICU) ) 328 (periph[periph_id].type == PERIPH_TYPE_XCU) ) 331 329 { 332 330 for (irq_id = periph[periph_id].irq_offset; … … 454 452 } 455 453 fprintf(fpout, " startid = \"%d\"", task[task_id].startid); 456 if( task[task_id].use_tty ) fprintf(fpout, " usetty=\"1\"");457 if( task[task_id].use_nic ) fprintf(fpout, " usenic=\"1\"");458 if( task[task_id].use_cma ) fprintf(fpout, " usecma=\"1\"");459 if( task[task_id].use_tim ) fprintf(fpout, " usetim=\"1\"");460 if( task[task_id].use_hba ) fprintf(fpout, " usehba=\"1\"");461 454 fprintf(fpout, " />\n"); 462 455 } -
soft/giet_vm/giet_xml/xml_parser.c
r363 r439 714 714 } 715 715 716 /////////// get use_tty attribute (optionnal : 0 if missing)717 value = getIntValue(reader, "usetty", &ok);718 #if XML_PARSER_DEBUG719 printf(" usetty = %x\n", value);720 #endif721 task[task_index]->use_tty = (ok)? value : 0;722 723 /////////// get use_nic attribute (optionnal : 0 if missing)724 value = getIntValue(reader, "usenic", &ok);725 #if XML_PARSER_DEBUG726 printf(" usenic = %x\n", value);727 #endif728 task[task_index]->use_nic = (ok)? value : 0;729 730 /////////// get use_tim attribute (optionnal : 0 if missing)731 value = getIntValue(reader, "usetim", &ok);732 #if XML_PARSER_DEBUG733 printf(" usetim = %x\n", value);734 #endif735 task[task_index]->use_tim = (ok)? value : 0;736 737 /////////// get use_hba attribute (optionnal : 0 if missing)738 value = getIntValue(reader, "usehba", &ok);739 #if XML_PARSER_DEBUG740 printf(" usehba = %x\n", value);741 #endif742 task[task_index]->use_hba = (ok)? value : 0;743 744 /////////// get usecma attribute (optionnal : 0 if missing)745 value = getIntValue(reader, "usecma", &ok);746 #if XML_PARSER_DEBUG747 printf(" usecma = %x\n", value);748 #endif749 task[task_index]->use_cma = (ok)? value : 0;750 751 716 task_index++; 752 717 task_loc_index++;
Note: See TracChangeset
for help on using the changeset viewer.