Ignore:
Timestamp:
Jan 31, 2014, 5:05:21 PM (11 years ago)
Author:
cfuguet
Message:
  • Modifying HBA driver to respect new IOC driver interface.
  • Modifying XML parser and XML driver to manage the HBA controller as an IOC subtype.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/giet_vm_ioc_drivers/giet_xml/xml_parser.c

    r283 r286  
    13021302        }
    13031303        /////////////////////////////////
    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             else
    1320             {
    1321                 error = 1;
    1322             }
    1323         }
    1324         /////////////////////////////////
    13251304        else if (strcmp(str, "IOB") == 0)
    13261305        {
     
    23532332    header->fbf_cluster     = 0xFFFFFFFF;
    23542333    header->fbf_cluster_bis = 0xFFFFFFFF;
    2355 
    2356     header->hba_cluster     = 0xFFFFFFFF;
    2357     header->hba_cluster_bis = 0xFFFFFFFF;
    23582334
    23592335    header->iob_cluster     = 0xFFFFFFFF;
     
    27502726    ld_write(fdout, "seg_cma_base            ",   periph_vbase_array[PERIPH_TYPE_CMA]);
    27512727    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]);
    27532728    ld_write(fdout, "seg_iob_base            ",   periph_vbase_array[PERIPH_TYPE_IOB]);
    27542729    ld_write(fdout, "seg_ioc_base            ",   periph_vbase_array[PERIPH_TYPE_IOC]);
Note: See TracChangeset for help on using the changeset viewer.