Changeset 190
- Timestamp:
- Jul 13, 2017, 8:26:47 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_drivers.h
r136 r190 32 32 uint32_t irq_type, lid_t lid); 33 33 34 void hal_drivers_pic_init(chdev_t *dev); 35 34 36 #endif /* HAL_DRIVERS_H_ */ 35 37 -
trunk/hal/tsar_mips32/core/hal_drivers.c
r136 r190 52 52 } 53 53 54 /* -------------------------------------------------------------------------- */ 55 56 void 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 52 52 } 53 53 54 /* -------------------------------------------------------------------------- */ 55 56 void 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 26 26 #include <chdev.h> 27 27 #include <printk.h> 28 #include < soclib_pic.h>28 #include <hal_drivers.h> 29 29 #include <dev_pic.h> 30 30 #include <cluster.h> … … 50 50 { 51 51 // 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 ); 61 53 } 62 54 else if( impl == IMPL_PIC_I86 )
Note: See TracChangeset
for help on using the changeset viewer.