Ignore:
Timestamp:
Feb 3, 2014, 4:42:00 PM (11 years ago)
Author:
cfuguet
Message:

Introducing last changes of trunk into branch.

Location:
branch/giet_vm_ioc_drivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branch/giet_vm_ioc_drivers

  • branch/giet_vm_ioc_drivers/giet_xml/xml_parser.c

    r286 r288  
    115115unsigned int dma_channels     = 0; // max number of DMA channels (per cluster)
    116116
    117 unsigned int icu_channels     = 0; // total number of IRQ per processor
     117unsigned int icu_channels     = 0; // total number of channels  in ICU/XICU
    118118unsigned int tty_channels     = 0; // total number of terminals in TTY
    119119unsigned int hba_channels     = 0; // total number of channels  in HBA
     
    128128unsigned int use_bdv          = 0; // using SoCLIB block device
    129129unsigned int use_spi          = 0; // using SD Card-SPI
    130 
    131130
    132131////////////////////////////////////////////////////////////////
     
    20932092            }
    20942093
     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
    20952102#if XML_PARSER_DEBUG
    20962103            printf("  end cluster set\n\n");
     
    23232330    {
    23242331        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");
    23252347        exit(1);
    23262348    }
     
    25982620    file_write(fdout, "\n");
    25992621
    2600     def_int_write(fdout, "IRQ_PER_PROCESSOR ", icu_channels);
     2622    def_int_write(fdout, "IRQ_PER_PROCESSOR ", header->irq_per_proc);
    26012623
    26022624    file_write(fdout, epil);
Note: See TracChangeset for help on using the changeset viewer.