Ignore:
Timestamp:
Apr 26, 2017, 2:08:13 PM (7 years ago)
Author:
alain
Message:

Introduce dev_fbf, dev dma, dev_iob

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_nic.h

    r1 r3  
    7575/****  Forward declarations  ****/
    7676
    77 struct device_s;
     77struct chdev_s;
    7878
    7979/******************************************************************************************
     
    137137
    138138/******************************************************************************************
    139  * This function completes the NIC-RX and NIC-TX devices descriptors initialisation.
    140  * The func, impl, channel, is_rx, base, and size have been previously initialised.
    141  * It calls the driver initialisation function.
    142  ******************************************************************************************
    143  * @ dev_xp     : extended pointer on NIC-RX or NIC-TX device descriptor.
    144  *****************************************************************************************/
    145 void dev_nic_init( xptr_t  dev_xp );
     139 * This function completes the NIC-RX and NIC-TX chdev descriptors initialisation.
     140 * namely the link with the implementation specific driver.
     141 * The func, impl, channel, is_rx, base fields have been previously initialised.
     142 * It calls the specific driver initialisation function, to initialise the hardware
     143 * device and the specific data structures when required.
     144 * It creates the associated server thread and allocates a WTI from local ICU.
     145 * It must de executed by a local thread.
     146 ******************************************************************************************
     147 * @ chdev    : local pointer on NIC chdev descriptor.
     148 *****************************************************************************************/
     149void dev_nic_init( struct chdev_s * chdev );
    146150
    147151/******************************************************************************************
     
    219223 * becomes non empty.
    220224 ******************************************************************************************
    221  * @ dev     : local pointer on NIC channel device descriptor.
    222  *****************************************************************************************/
    223 void dev_nic_server( struct device_s * dev );
     225 * @ dev     : local pointer on NIC chdev descriptor.
     226 *****************************************************************************************/
     227void dev_nic_server( struct chdev_s * chdev );
    224228
    225229
Note: See TracChangeset for help on using the changeset viewer.