Changes between Version 15 and Version 16 of nic_driver


Ignore:
Timestamp:
Dec 5, 2014, 3:03:24 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • nic_driver

    v15 v16  
    1515== Access Functions ==
    1616
    17  === 1) int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) ===
     17 === 1) unsigned int '''_nic_get_channel_register'''( unsigned int channel,  unsigned int index ) ===
     18This function returns the value contained in a channel register.
     19 * '''channel''' : channel index
     20 * '''index''' : register index
     21
     22 === 2) void '''_nic_set_channel_register'''( unsigned int channel,  unsigned int index,  unsigned int value ) ===
     23This function writes a new value in a channel register.
     24 * '''channel''' : channel index
     25 * '''index''' : register index
     26 * '''value''' : written value
     27
     28 === 3) unsigned int '''_nic_get_global_register'''( unsigned int index ) ===
     29This function returns the value contained in a global register.
     30 * '''index''' : register index
     31
     32 === 4) void '''_nic_set_global_register'''( unsigned int index,  unsigned int value ) ===
     33This function writes a new value in a global register.
     34 * '''index''' : register index
     35 * '''value''' : written value
     36
     37 === 5) int '''_nic_global_init'''( unsigned int channels, unsigned int vis, unsigned int bc_enable, unsigned int bypass_enable ) ===
    1838This function initializes the global registers.
    1939 * '''channels''' : number of active channels
     
    2343This function is used only by the boot code, and return always 0.
    2444
    25  === 2) int '''_nic_channel_start'''( unsigned int channel,  unsigned int mac4,  unsigned int mac2 ) ===
     45 === 6) int '''_nic_channel_start'''( unsigned int channel,  unsigned int mac4,  unsigned int mac2 ) ===
    2646This function activates a NIC_TX or NIC_RX channel:
    2747 * '''channel''' : channel index
     
    3151It returns always 0.
    3252
    33 === 3) int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) ===
     53=== 7) int '''_nic_channel_stop'''( unsigned int channel, unsigned int is_rx ) ===
    3454This function desactivates a NIC_TX or NIC_RX channel.
    3555It returns always 0.