Changeset 288 for branch/giet_vm_ioc_drivers
- Timestamp:
- Feb 3, 2014, 4:42:00 PM (11 years ago)
- Location:
- branch/giet_vm_ioc_drivers
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/giet_vm_ioc_drivers
-
Property
svn:mergeinfo
set to
/soft/giet_vm merged eligible
-
Property
svn:mergeinfo
set to
-
branch/giet_vm_ioc_drivers/giet_xml/mapping_info.h
r286 r288 146 146 unsigned int vspaces; // number of virtual spaces 147 147 unsigned int increment; // vseg cluster increment for replicated periphs 148 unsigned int irq_per_proc; // number of IRQ per processor 148 149 149 150 unsigned int cma_cluster; // index of cluster containing CMA controler -
branch/giet_vm_ioc_drivers/giet_xml/xml_driver.c
r286 r288 45 45 "HARD", 46 46 "SOFT", 47 "TIME", 47 48 }; 48 49 … … 235 236 fprintf(fpout, "<?xml version = \"1.0\"?>\n\n"); 236 237 237 fprintf(fpout, "<mapping_info signature = \"0x%x\" \n", header->signature); 238 fprintf(fpout, " name = \"%s\" \n", header->name); 239 fprintf(fpout, " x_size = \"%d\" \n", header->x_size); 240 fprintf(fpout, " y_size = \"%d\" \n", header->y_size); 241 fprintf(fpout, " x_width = \"%d\" \n", header->x_width); 242 fprintf(fpout, " y_width = \"%d\" \n", header->y_width); 243 fprintf(fpout, " vspaces = \"%d\" \n", header->vspaces); 244 fprintf(fpout, " increment = \"%d\" >\n\n", header->vspaces); 238 fprintf(fpout, "<mapping_info signature = \"0x%x\" \n" , header->signature); 239 fprintf(fpout, " name = \"%s\" \n" , header->name); 240 fprintf(fpout, " x_size = \"%d\" \n" , header->x_size); 241 fprintf(fpout, " y_size = \"%d\" \n" , header->y_size); 242 fprintf(fpout, " x_width = \"%d\" \n" , header->x_width); 243 fprintf(fpout, " y_width = \"%d\" \n" , header->y_width); 244 fprintf(fpout, " vspaces = \"%d\" \n" , header->vspaces); 245 fprintf(fpout, " increment = \"%d\" \n" , header->vspaces); 246 fprintf(fpout, " irq_per_proc = \"%d\" >\n\n", header->irq_per_proc); 245 247 246 248 ///////////////////// clusters /////////////////////////////////////////////// -
branch/giet_vm_ioc_drivers/giet_xml/xml_parser.c
r286 r288 115 115 unsigned int dma_channels = 0; // max number of DMA channels (per cluster) 116 116 117 unsigned int icu_channels = 0; // total number of IRQ per processor117 unsigned int icu_channels = 0; // total number of channels in ICU/XICU 118 118 unsigned int tty_channels = 0; // total number of terminals in TTY 119 119 unsigned int hba_channels = 0; // total number of channels in HBA … … 128 128 unsigned int use_bdv = 0; // using SoCLIB block device 129 129 unsigned int use_spi = 0; // using SD Card-SPI 130 131 130 132 131 //////////////////////////////////////////////////////////////// … … 2093 2092 } 2094 2093 2094 // the number of ICU channels must be NB_PROCS * irq_per_proc 2095 if (icu_channels != (header->irq_per_proc * proc_loc_index)) 2096 { 2097 printf("[XML ERROR] illegal ICU number of channels. " 2098 "It must be equal to NB_PROCS * IRQ_PER_PROC\n"); 2099 exit(1); 2100 } 2101 2095 2102 #if XML_PARSER_DEBUG 2096 2103 printf(" end cluster set\n\n"); … … 2323 2330 { 2324 2331 printf("[XML ERROR] illegal or missing <increment> attribute in mapping\n"); 2332 exit(1); 2333 } 2334 2335 ///////// get increment attribute 2336 value = getIntValue(reader, "irq_per_proc", &ok); 2337 if (ok) 2338 { 2339 #if XML_PARSER_DEBUG 2340 printf(" irq_per_proc = %d\n", value); 2341 #endif 2342 header->irq_per_proc = value; 2343 } 2344 else 2345 { 2346 printf("[XML ERROR] illegal or missing <irq_per_proc> attribute in mapping\n"); 2325 2347 exit(1); 2326 2348 } … … 2598 2620 file_write(fdout, "\n"); 2599 2621 2600 def_int_write(fdout, "IRQ_PER_PROCESSOR ", icu_channels);2622 def_int_write(fdout, "IRQ_PER_PROCESSOR ", header->irq_per_proc); 2601 2623 2602 2624 file_write(fdout, epil); -
branch/giet_vm_ioc_drivers/mappings/4c_1p_four.xml
r283 r288 8 8 y_width = "4" 9 9 vspaces = "4" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "4" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment … … 50 51 51 52 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 52 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />53 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 53 54 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 54 55 <periph type = "IOC" psegname = "PSEG_IOC" channels = "1" subtype = "BDV" /> … … 73 74 74 75 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 75 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />76 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 76 77 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 77 78 </cluster> … … 89 90 90 91 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 91 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />92 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 92 93 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 93 94 </cluster> … … 105 106 106 107 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 107 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />108 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 108 109 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 109 110 </cluster> -
branch/giet_vm_ioc_drivers/mappings/4c_1p_iob_four.xml
r283 r288 8 8 y_width = "4" 9 9 vspaces = "4" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "1" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment -
branch/giet_vm_ioc_drivers/mappings/4c_1p_iob_sort.xml
r283 r288 8 8 y_width = "4" 9 9 vspaces = "1" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "1" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment -
branch/giet_vm_ioc_drivers/mappings/4c_1p_sort.xml
r271 r288 8 8 y_width = "4" 9 9 vspaces = "1" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "1" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment -
branch/giet_vm_ioc_drivers/mappings/4c_1p_sort_chiplet.xml
r285 r288 8 8 y_width = "4" 9 9 vspaces = "1" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "4" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment … … 35 36 </proc> 36 37 37 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />38 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 38 39 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 39 40 <periph type = "IOC" psegname = "PSEG_IOC" channels = "1" subtype = "SPI" /> … … 53 54 </proc> 54 55 55 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />56 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 56 57 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 57 58 </cluster> … … 67 68 </proc> 68 69 69 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />70 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 70 71 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 71 72 </cluster> … … 81 82 </proc> 82 83 83 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />84 <periph type = "XCU" psegname = "PSEG_XCU" channels = "4" /> 84 85 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 85 86 </cluster> -
branch/giet_vm_ioc_drivers/mappings/4c_2p_four.xml
r282 r288 8 8 y_width = "4" 9 9 vspaces = "4" 10 increment = "0x10000" > 10 increment = "0x10000" 11 irq_per_proc = "1" > 11 12 12 13 *** The "increment" parameter is the virtual address cluster increment … … 54 55 55 56 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 56 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />57 <periph type = "XCU" psegname = "PSEG_XCU" channels = "2" /> 57 58 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 58 59 <periph type = "IOC" psegname = "PSEG_IOC" channels = "1" /> … … 81 82 82 83 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 83 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />84 <periph type = "XCU" psegname = "PSEG_XCU" channels = "2" /> 84 85 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 85 86 </cluster> … … 101 102 102 103 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 103 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />104 <periph type = "XCU" psegname = "PSEG_XCU" channels = "2" /> 104 105 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 105 106 </cluster> … … 121 122 122 123 <periph type = "DMA" psegname = "PSEG_DMA" channels = "1" /> 123 <periph type = "XCU" psegname = "PSEG_XCU" channels = " 6" />124 <periph type = "XCU" psegname = "PSEG_XCU" channels = "2" /> 124 125 <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> 125 126 </cluster>
Note: See TracChangeset
for help on using the changeset viewer.