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.
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  
    104104    PERIPH_TYPE_DMA       = 1,
    105105    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,
    120119};
    121120
     
    153152    unsigned int fbf_cluster;        // index of cluster containing FBF controler
    154153    unsigned int fbf_cluster_bis;    // index of cluster containing second FBF controler
    155 
    156     unsigned int hba_cluster;        // index of cluster containing HBA controler
    157     unsigned int hba_cluster_bis;    // index of cluster containing second HBA controler
    158154
    159155    unsigned int iob_cluster;        // index of cluster containing IOB controler
  • branch/giet_vm_ioc_drivers/giet_xml/xml_driver.c

    r283 r286  
    6262        "DMA",
    6363        "FBF",
    64         "HBA",
    6564        "ICU",
    6665        "IOB",
  • 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.