Changeset 259 for trunk/hal/tsar_mips32


Ignore:
Timestamp:
Jul 20, 2017, 3:06:35 PM (7 years ago)
Author:
max@…
Message:

Hide soclib_nic.

Location:
trunk/hal/tsar_mips32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_drivers.c

    r257 r259  
    112112}
    113113
     114///////////////////////////////////////////////////////////////////////////////
     115//    NIC
     116///////////////////////////////////////////////////////////////////////////////
     117
     118//////////////////////////////////////////
     119void hal_drivers_nic_init( chdev_t  * nic,
     120                           uint32_t   impl )
     121{
     122    if( impl == IMPL_NIC_SOC )
     123    {
     124        soclib_nic_init( nic );
     125    }
     126    else
     127    {
     128        assert( false , __FUNCTION__ , "undefined NIC device implementation" );
     129    }
     130}
     131
  • trunk/hal/tsar_mips32/drivers/soclib_nic.c

    r75 r259  
    3939    uint32_t    i;
    4040    kmem_req_t  req;
     41
     42    // set driver specific fields in chdev descriptor
     43    chdev->cmd = &soclib_nic_cmd;
     44    chdev->isr = &soclib_nic_isr;
    4145   
    4246    // get hardware device cluster and local pointer
Note: See TracChangeset for help on using the changeset viewer.