Changeset 136 for trunk


Ignore:
Timestamp:
Jul 4, 2017, 8:54:36 AM (7 years ago)
Author:
max@…
Message:

Hide a few soclib_xcu_ functions

Location:
trunk
Files:
4 edited

Legend:

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

    r131 r136  
    2727void hal_drivers_txt_init(chdev_t *dev);
    2828void hal_drivers_xcu_init(chdev_t *dev, lid_t lid);
     29void hal_drivers_xcu_disable_irq(chdev_t *icu, uint32_t irq_index,
     30    uint32_t irq_type, lid_t lid);
     31void hal_drivers_xcu_enable_irq(chdev_t *icu, uint32_t irq_index,
     32    uint32_t irq_type, lid_t lid);
    2933
    3034#endif  /* HAL_DRIVERS_H_ */
  • trunk/hal/tsar_mips32/core/hal_drivers.c

    r130 r136  
    3333}
    3434
     35/* -------------------------------------------------------------------------- */
     36
    3537void hal_drivers_xcu_init(chdev_t *dev, lid_t lid)
    3638{
     
    3840}
    3941
     42void hal_drivers_xcu_disable_irq(chdev_t *icu, uint32_t irq_index,
     43    uint32_t irq_type, lid_t lid)
     44{
     45        soclib_xcu_disable_irq(icu, 1 << irq_index, irq_type, lid);
     46}
     47
     48void hal_drivers_xcu_enable_irq(chdev_t *icu, uint32_t irq_index,
     49    uint32_t irq_type, lid_t lid)
     50{
     51        soclib_xcu_enable_irq(icu, 1 << irq_index, irq_type, lid);
     52}
     53
  • trunk/hal/x86_64/core/hal_drivers.c

    r130 r136  
    3333}
    3434
     35/* -------------------------------------------------------------------------- */
     36
    3537void hal_drivers_xcu_init(chdev_t *dev, lid_t lid)
    3638{
     
    3840}
    3941
     42void hal_drivers_xcu_disable_irq(chdev_t *icu, uint32_t irq_index,
     43    uint32_t irq_type, lid_t lid)
     44{
     45        soclib_xcu_disable_irq(icu, 1 << irq_index, irq_type, lid);
     46}
     47
     48void hal_drivers_xcu_enable_irq(chdev_t *icu, uint32_t irq_index,
     49    uint32_t irq_type, lid_t lid)
     50{
     51        soclib_xcu_enable_irq(icu, 1 << irq_index, irq_type, lid);
     52}
     53
  • trunk/kernel/devices/dev_icu.c

    r131 r136  
    129129    if( icu->impl == IMPL_ICU_XCU )
    130130    {
    131          soclib_xcu_enable_irq( icu , 1<<irq_index , irq_type , lid );
     131         hal_drivers_xcu_enable_irq( icu , irq_index , irq_type , lid );
    132132    }
    133133
     
    161161    if( icu->impl == IMPL_ICU_XCU )
    162162    {
    163         soclib_xcu_disable_irq( icu , 1<<irq_index , irq_type , lid );
     163        hal_drivers_xcu_disable_irq( icu , irq_index , irq_type , lid );
    164164    }
    165165
Note: See TracChangeset for help on using the changeset viewer.