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/hal/tsar_mips32/drivers/soclib_pic.h

    r188 r205  
    206206
    207207/******************************************************************************************
    208  * This function enable a HWI/WTI IRQ identified by the <src_chdev> argument,
     208 * This function enables a remote HWI/WTI IRQ, identified by the <src_chdev_xp> argument,
    209209 * that contains information on the IRQ type (HWI/WTI), and IRQ index.
    210  * It access the relevant XCU mask register, but does not access IOPIC.
    211  ******************************************************************************************
    212  * @ lid        : target core local index.
    213  * @ src_chdev  : local pointer on source chdev descriptor.
    214  *****************************************************************************************/
    215 void soclib_pic_enable_irq( lid_t     lid,
    216                             chdev_t * src_chdev );
    217 
    218 /******************************************************************************************
    219  * This function disable a HWI/WTI IRQ identified by the <src_chdev> argument,
     210 * It access the remote XCU mask register, but does not access IOPIC.
     211 ******************************************************************************************
     212 * @ lid           : target core local index (in cluster containing the source chdev).
     213 * @ src_chdev_xp  : extended pointer on source chdev descriptor.
     214 *****************************************************************************************/
     215void soclib_pic_enable_irq( lid_t   lid,
     216                            xptr_t  src_chdev_xp );
     217
     218/******************************************************************************************
     219 * This function disables a remote HWI/WTI IRQ, identified by the <src_chdev_xp> argument,
    220220 * that contains information on the IRQ type (HWI/WTI), and IRQ index.
    221  * It access the relevant XCU mask register, but does not access IOPIC.
    222  ******************************************************************************************
    223  * @ lid        : target core local index.
    224  * @ src_chdev  : local pointer on source chdev descriptor.
    225  *****************************************************************************************/
    226 void soclib_pic_disable_irq( lid_t     lid,
    227                              chdev_t * src_chdev );
     221 * It access the remote XCU mask register, but does not access IOPIC.
     222 ******************************************************************************************
     223 * @ lid           : target core local index (in cluster containing the source chdev).
     224 * @ src_chdev_xp  : extended pointer on source chdev descriptor.
     225 *****************************************************************************************/
     226void soclib_pic_disable_irq( lid_t   lid,
     227                             xptr_t  src_chdev_xp );
    228228
    229229/******************************************************************************************
     
    266266
    267267/******************************************************************************************
    268  * This function returns a local pointer on the local XCU base segment.
     268 * This function returns the local pointer on the local XCU base segment.
    269269 *****************************************************************************************/
    270270uint32_t * soclib_pic_xcu_base();
     271
     272/******************************************************************************************
     273 * This function returns the local pointer on a remote XCU base segment.
     274 * It is used by the soclip_pic_enable_irq() and soclib_pic_disable_irq() functions.
     275 ******************************************************************************************
     276 * @ cxy  : target cluster identifier.
     277 *****************************************************************************************/
     278uint32_t * soclib_pic_remote_xcu_base( cxy_t cxy );
    271279
    272280/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.