Changeset 346 for trunk/hal


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

Hide soclib_iob.

Location:
trunk/hal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_drivers.h

    r261 r346  
    2929void hal_drivers_pic_init(chdev_t *pic, uint32_t impl);
    3030
     31void hal_drivers_iob_init(chdev_t *iob, uint32_t impl);
     32
    3133void hal_drivers_ioc_init(chdev_t *ioc, uint32_t impl);
    3234
  • 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
  • trunk/hal/x86_64/core/hal_drivers.c

    r280 r346  
    6060/* -------------------------------------------------------------------------- */
    6161
     62void hal_drivers_iob_init(chdev_t *iob, uint32_t impl)
     63{
     64        x86_panic("IOB driver not implemented");
     65}
     66
     67/* -------------------------------------------------------------------------- */
     68
    6269void hal_drivers_ioc_init(chdev_t *ioc, uint32_t impl)
    6370{
Note: See TracChangeset for help on using the changeset viewer.