Ignore:
Timestamp:
Mar 26, 2014, 6:44:44 PM (10 years ago)
Author:
alain
Message:

Introducing a major release, to suppoort the tsar_generic_leti platform
and the various (external or internal) peripherals configurations.
The map.xml format has been modified, in order to support the new
vci_iopic componentand a new policy for peripherals initialisation.
The IRQs are nom described in the XICU and IOPIC components
(and not anymore in the processors).
To enforce this major change, the map.xml file signature changed:
The signature value must be: 0xDACE2014

This new release has been tested on the tsar_generic_leti platform
for the following mappings:

  • 4c_4p_sort_leti
  • 4c_4p_sort_leti_ext
  • 4c_4p_transpose_leti
  • 4c_4p_transpose_leti_ext
  • 4c_1p_four_leti_ext
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/nic_driver.c

    r258 r295  
    5656#define in_unckdata __attribute__((section (".unckdata")))
    5757
     58///////////////////////////////////////////////////////////////////////////////
     59// This low_level function returns the value contained in register (index).
     60///////////////////////////////////////////////////////////////////////////////
     61unsigned int _nic_get_register( unsigned int channel,
     62                                unsigned int index )
     63{
     64    unsigned int* vaddr = (unsigned int*)&seg_nic_base +
     65                           NIC_CHANNEL_SPAN*channel + index;
     66    return _io_extended_read( vaddr );
     67}
     68
     69///////////////////////////////////////////////////////////////////////////////
     70// This low-level function set a new value in register (index).
     71///////////////////////////////////////////////////////////////////////////////
     72void _nic_set_register( unsigned int channel,
     73                        unsigned int index,
     74                        unsigned int value )
     75{
     76    unsigned int* vaddr = (unsigned int*)&seg_nic_base +
     77                           NIC_CHANNEL_SPAN*channel + index;
     78    _io_extended_write( vaddr, value );
     79}
     80
    5881//////////////////////////////////////////////////////////////////////////////////
    59 // _nic_sync_write()
    6082// Transfer data from an memory buffer to the NIC device using a memcpy.
    6183// - buffer : base address of the memory buffer.
     
    6587                              unsigned int   length )
    6688{
    67     _puts("[GIET ERROR] _nic_sync_write function not implemented\n");
     89    _printf("[GIET ERROR] _nic_sync_write function not implemented\n");
    6890    _exit();
    6991
     
    7395}
    7496//////////////////////////////////////////////////////////////////////////////////
    75 // _nic_sync_read()
    7697// Transfer data from the NIC device to a memory buffer using a memcpy.
    7798// - buffer : base address of the memory buffer.
     
    81102                             unsigned int   length )
    82103{
    83     _puts("[GIET ERROR] _nic_sync_read function not implemented\n");
     104    _printf("[GIET ERROR] _nic_sync_read function not implemented\n");
    84105    _exit();
    85106
     
    89110}
    90111//////////////////////////////////////////////////////////////////////////////////
    91 // _nic_cma_start()
    92112// Returns 0 if success, > 0 if error.
    93113//////////////////////////////////////////////////////////////////////////////////
    94114unsigned int _nic_cma_start( )
    95115{
    96     _puts("[GIET ERROR] _nic_cma_start function not implemented\n");
     116    _printf("[GIET ERROR] _nic_cma_start() not implemented\n");
    97117    _exit();
    98118
     
    101121}
    102122//////////////////////////////////////////////////////////////////////////////////
    103 // _nic_cma_stop()
    104123// Returns 0 if success, > 0 if error.
    105124//////////////////////////////////////////////////////////////////////////////////
    106125unsigned int _nic_cma_stop()
    107126{
    108     _puts("[GIET ERROR] _nic_cma_stop function not implemented\n");
     127    _printf("[GIET ERROR] _nic_cma_stop() not implemented\n");
    109128    _exit();
    110129
     
    113132}
    114133
     134//////////////////////////////////////////////////////////////////////////////////
     135// This ISR handles IRQx from a NIC RX channeL
     136//////////////////////////////////////////////////////////////////////////////////
     137void _nic_rx_isr( unsigned int irq_type,
     138                  unsigned int irq_id,
     139                  unsigned int channel )
     140{
     141    _printf("[GIET ERROR] _nic_rx_isr() not implemented\n");
     142    _exit();
     143}
     144
     145//////////////////////////////////////////////////////////////////////////////////
     146// This ISR handles IRQx from a NIC RX channeL
     147//////////////////////////////////////////////////////////////////////////////////
     148void _nic_tx_isr( unsigned int irq_type,
     149                  unsigned int irq_id,
     150                  unsigned int channel )
     151{
     152    _printf("[GIET ERROR] _nic_tx_isr() not implemented\n");
     153    _exit();
     154}
    115155
    116156// Local Variables:
Note: See TracChangeset for help on using the changeset viewer.