Changeset 190


Ignore:
Timestamp:
Jul 13, 2017, 8:26:47 AM (4 years ago)
Author:
max@…
Message:

hide soclib

Location:
trunk
Files:
4 edited

Legend:

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

    r136 r190  
    3232    uint32_t irq_type, lid_t lid);
    3333
     34void hal_drivers_pic_init(chdev_t *dev);
     35
    3436#endif  /* HAL_DRIVERS_H_ */
    3537
  • trunk/hal/tsar_mips32/core/hal_drivers.c

    r136 r190  
    5252}
    5353
     54/* -------------------------------------------------------------------------- */
     55
     56void hal_drivers_pic_init(chdev_t *dev)
     57{
     58        /* update the PIC chdev extension */
     59        pic->ext.pic.enable_timer = &soclib_pic_enable_timer;
     60        pic->ext.pic.enable_irq   = &soclib_pic_enable_irq;
     61        pic->ext.pic.disable_irq  = &soclib_pic_disable_irq;
     62        pic->ext.pic.bind_irq     = &soclib_pic_bind_irq;
     63        pic->ext.pic.send_ipi     = &soclib_pic_send_ipi;
     64        pic->ext.pic.extend_init  = &soclib_pic_extend_init;
     65}
  • trunk/hal/x86_64/core/hal_drivers.c

    r137 r190  
    5252}
    5353
     54/* -------------------------------------------------------------------------- */
     55
     56void hal_drivers_pic_init(chdev_t *dev)
     57{
     58        /* update the PIC chdev extension */
     59/*      TODO
     60        pic->ext.pic.enable_timer = &soclib_pic_enable_timer;
     61        pic->ext.pic.enable_irq   = &soclib_pic_enable_irq;
     62        pic->ext.pic.disable_irq  = &soclib_pic_disable_irq;
     63        pic->ext.pic.bind_irq     = &soclib_pic_bind_irq;
     64        pic->ext.pic.send_ipi     = &soclib_pic_send_ipi;
     65        pic->ext.pic.extend_init  = &soclib_pic_extend_init;
     66*/
     67}
     68
  • trunk/kernel/devices/dev_pic.c

    r188 r190  
    2626#include <chdev.h>
    2727#include <printk.h>
    28 #include <soclib_pic.h>
     28#include <hal_drivers.h>
    2929#include <dev_pic.h>
    3030#include <cluster.h>
     
    5050    {
    5151        // call the PIC SOCLIB driver
    52         soclib_pic_init( pic );
    53 
    54         // update the PIC chdev extension
    55         pic->ext.pic.enable_timer = &soclib_pic_enable_timer;
    56         pic->ext.pic.enable_irq   = &soclib_pic_enable_irq;
    57         pic->ext.pic.disable_irq  = &soclib_pic_disable_irq;
    58         pic->ext.pic.bind_irq     = &soclib_pic_bind_irq;
    59         pic->ext.pic.send_ipi     = &soclib_pic_send_ipi;
    60         pic->ext.pic.extend_init  = &soclib_pic_extend_init;
     52        hal_drivers_pic_init( pic );
    6153    }
    6254    else if( impl == IMPL_PIC_I86 )
Note: See TracChangeset for help on using the changeset viewer.