Changeset 346 for trunk/hal/tsar_mips32


Ignore:
Timestamp:
Aug 9, 2017, 10:24:06 AM (7 years ago)
Author:
max@…
Message:

Hide soclib_iob.

File:
1 edited

Legend:

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

    r279 r346  
    2727#include <soclib_tty.h>
    2828#include <soclib_pic.h>
     29#include <soclib_iob.h>
    2930#include <soclib_bdv.h>
    3031#include <soclib_hba.h>
     
    8182        pic->ext.pic.send_ipi     = &soclib_pic_send_ipi;
    8283        pic->ext.pic.extend_init  = &soclib_pic_extend_init;
     84}
     85
     86///////////////////////////////////////////////////////////////////////////////
     87//    IOB
     88///////////////////////////////////////////////////////////////////////////////
     89
     90//////////////////////////////////////////
     91void hal_drivers_iob_init( chdev_t  * iob,
     92                           uint32_t   impl )
     93{
     94        if (impl != IMPL_IOB_TSR)
     95        {
     96                assert( false , __FUNCTION__ , "undefined IOB device implementation" );
     97        }
     98
     99        soclib_iob_init( iob );
     100
     101        /* update the IOB chdev extension */
     102        iob->ext.iob.set_active = &soclib_iob_set_active;
     103        iob->ext.iob.set_ptpr   = &soclib_iob_set_ptpr;
     104        iob->ext.iob.inval_page = &soclib_iob_inval_page;
     105        iob->ext.iob.get_bvar   = &soclib_iob_get_bvar;
     106        iob->ext.iob.get_srcid  = &soclib_iob_get_srcid;
     107        iob->ext.iob.get_error  = &soclib_iob_get_error;
    83108}
    84109
Note: See TracChangeset for help on using the changeset viewer.