Ignore:
Timestamp:
Jul 17, 2017, 11:41:25 AM (7 years ago)
Author:
alain
Message:

Change dev_pic_enable_irq() and dev_pic_disable_irq() prototypes
to handle remote IRQs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_pic.c

    r204 r205  
    7878
    7979    // get pointer on extend_init function
    80     pic_init_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.extend_init ) );
     80    extend_init_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.extend_init ) );
    8181
    8282    // call relevant driver function
     
    9393
    9494    // get pointer on bind_irq function
    95     pic_bind_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.bind_irq ) );
     95    bind_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.bind_irq ) );
    9696
    9797    // call relevant driver function
     
    9999}
    100100
    101 ///////////////////////////////////////
    102 void dev_pic_enable_irq( lid_t     lid,
    103                          chdev_t * src_chdev )
     101/////////////////////////////////////
     102void dev_pic_enable_irq( lid_t   lid,
     103                         xptr_t  src_chdev_xp )
    104104{
    105105    // get pointer on PIC chdev
     
    108108
    109109    // get pointer on enable_irq function
    110     pic_enable_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_irq ) );
     110    enable_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_irq ) );
    111111
    112112    // call relevant driver function
    113     f( lid , src_chdev );
     113    f( lid , src_chdev_xp );
    114114}
    115115
    116 ////////////////////////////////////////
    117 void dev_pic_disable_irq( lid_t     lid,
    118                           chdev_t * src_chdev )
     116//////////////////////////////////////
     117void dev_pic_disable_irq( lid_t   lid,
     118                          xptr_t  src_chdev_xp )
    119119{
    120120    // get pointer on PIC chdev
     
    123123
    124124    // get pointer on disable_irq function
    125     pic_disable_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.disable_irq ) );
     125    disable_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.disable_irq ) );
    126126
    127127    // call relevant driver function
    128     f( lid , src_chdev );
     128    f( lid , src_chdev_xp );
    129129}
    130130
     
    137137
    138138    // get pointer on enable_timer function
    139     pic_timer_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_timer ) );
     139    enable_timer_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_timer ) );
    140140
    141141    // call relevant driver function
     
    152152
    153153    // get pointer on send_ipi function
    154     pic_ipi_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.send_ipi ) );
     154    send_ipi_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.send_ipi ) );
    155155
    156156    // call relevant driver function
Note: See TracChangeset for help on using the changeset viewer.