Changes between Version 14 and Version 15 of nic_driver


Ignore:
Timestamp:
Nov 11, 2014, 1:55:43 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • nic_driver

    v14 v15  
    1313The addressable registers map is defined [source:soft/giet_vm/giet_drivers/nic_driver.h here].
    1414
    15 == __Access Functions__ ==
     15== Access Functions ==
    1616
    17  === int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) ===
     17 === 1) int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) ===
    1818This function initializes the global registers.
    1919 * '''channels''' : number of active channels
     
    2323This function is used only by the boot code, and return always 0.
    2424
    25  === int '''_nic_channel_start'''( unsigned int channel,  unsigned int mac4,  unsigned int mac2 ) ===
     25 === 2) int '''_nic_channel_start'''( unsigned int channel,  unsigned int mac4,  unsigned int mac2 ) ===
    2626This function activates a NIC_TX or NIC_RX channel:
    2727 * '''channel''' : channel index
     
    3131It returns always 0.
    3232
    33 === int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) ===
     33=== 3) int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) ===
    3434This function desactivates a NIC_TX or NIC_RX channel.
    3535It returns always 0.
     
    3737== __ Interrupt Service Routines__ ==
    3838
    39  === void '''_nic_rx_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel ) ===
     39 === 4) void '''_nic_rx_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel ) ===
    4040This interrupt Service Routine  handles IRQs from a NIC_RX channel.
    4141WARNING : Not fully implemented yet : no IRQ acknowledge...
    4242
    43  === void '''_nic_tx_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel ) ===
     43 === 5) void '''_nic_tx_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel ) ===
    4444This interrupt Service Routine  handles IRQs from a NIC_TX channel.
    4545WARNING : Not fully implemented yet : no IRQ acknowledge...