Changeset 286 for branch/giet_vm_ioc_drivers/giet_xml
- Timestamp:
- Jan 31, 2014, 5:05:21 PM (11 years ago)
- Location:
- branch/giet_vm_ioc_drivers/giet_xml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/giet_vm_ioc_drivers/giet_xml/mapping_info.h
r283 r286 104 104 PERIPH_TYPE_DMA = 1, 105 105 PERIPH_TYPE_FBF = 2, 106 PERIPH_TYPE_HBA = 3, 107 PERIPH_TYPE_ICU = 4, 108 PERIPH_TYPE_IOB = 5, 109 PERIPH_TYPE_IOC = 6, 110 PERIPH_TYPE_MMC = 7, 111 PERIPH_TYPE_MWR = 8, 112 PERIPH_TYPE_NIC = 9, 113 PERIPH_TYPE_ROM = 10, 114 PERIPH_TYPE_SIM = 11, 115 PERIPH_TYPE_TIM = 12, 116 PERIPH_TYPE_TTY = 13, 117 PERIPH_TYPE_XCU = 14, 118 119 PERIPH_TYPE_MAX_VALUE = 15, 106 PERIPH_TYPE_ICU = 3, 107 PERIPH_TYPE_IOB = 4, 108 PERIPH_TYPE_IOC = 5, 109 PERIPH_TYPE_MMC = 6, 110 PERIPH_TYPE_MWR = 7, 111 PERIPH_TYPE_NIC = 8, 112 PERIPH_TYPE_ROM = 9, 113 PERIPH_TYPE_SIM = 10, 114 PERIPH_TYPE_TIM = 11, 115 PERIPH_TYPE_TTY = 12, 116 PERIPH_TYPE_XCU = 13, 117 118 PERIPH_TYPE_MAX_VALUE = 14, 120 119 }; 121 120 … … 153 152 unsigned int fbf_cluster; // index of cluster containing FBF controler 154 153 unsigned int fbf_cluster_bis; // index of cluster containing second FBF controler 155 156 unsigned int hba_cluster; // index of cluster containing HBA controler157 unsigned int hba_cluster_bis; // index of cluster containing second HBA controler158 154 159 155 unsigned int iob_cluster; // index of cluster containing IOB controler -
branch/giet_vm_ioc_drivers/giet_xml/xml_driver.c
r283 r286 62 62 "DMA", 63 63 "FBF", 64 "HBA",65 64 "ICU", 66 65 "IOB", -
branch/giet_vm_ioc_drivers/giet_xml/xml_parser.c
r283 r286 1302 1302 } 1303 1303 ///////////////////////////////// 1304 else if (strcmp(str, "HBA") == 0)1305 {1306 periph[periph_index]->type = PERIPH_TYPE_HBA;1307 use_hba = 1;1308 if (header->hba_cluster == 0xFFFFFFFF)1309 {1310 header->hba_cluster = cluster_index;1311 hba_channels = periph[periph_index]->channels;1312 }1313 else if (header->hba_cluster_bis == 0xFFFFFFFF)1314 {1315 header->hba_cluster_bis = cluster_index;1316 assert( (hba_channels == periph[periph_index]->channels) &&1317 "[XML ERROR] unconsistent non replicated peripheral");1318 }1319 else1320 {1321 error = 1;1322 }1323 }1324 /////////////////////////////////1325 1304 else if (strcmp(str, "IOB") == 0) 1326 1305 { … … 2353 2332 header->fbf_cluster = 0xFFFFFFFF; 2354 2333 header->fbf_cluster_bis = 0xFFFFFFFF; 2355 2356 header->hba_cluster = 0xFFFFFFFF;2357 header->hba_cluster_bis = 0xFFFFFFFF;2358 2334 2359 2335 header->iob_cluster = 0xFFFFFFFF; … … 2750 2726 ld_write(fdout, "seg_cma_base ", periph_vbase_array[PERIPH_TYPE_CMA]); 2751 2727 ld_write(fdout, "seg_fbf_base ", periph_vbase_array[PERIPH_TYPE_FBF]); 2752 ld_write(fdout, "seg_hba_base ", periph_vbase_array[PERIPH_TYPE_HBA]);2753 2728 ld_write(fdout, "seg_iob_base ", periph_vbase_array[PERIPH_TYPE_IOB]); 2754 2729 ld_write(fdout, "seg_ioc_base ", periph_vbase_array[PERIPH_TYPE_IOC]);
Note: See TracChangeset
for help on using the changeset viewer.