Changeset 245 for trunk/hal/x86_64/core
- Timestamp:
- Jul 20, 2017, 12:46:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_drivers.c
r234 r245 30 30 #include <pic_apic.h> 31 31 32 void hal_drivers_txt_init(chdev_t * dev)32 void hal_drivers_txt_init(chdev_t *txt, uint32_t impl) 33 33 { 34 soclib_tty_init( dev);34 soclib_tty_init(txt); 35 35 } 36 36 37 37 /* -------------------------------------------------------------------------- */ 38 38 39 void hal_drivers_ xcu_init(chdev_t *dev, lid_t lid)39 void hal_drivers_pic_init(chdev_t *pic) 40 40 { 41 soclib_xcu_init(dev, lid); 42 } 41 pic_apic_init(pic); 43 42 44 void hal_drivers_xcu_disable_irq(chdev_t *icu, uint32_t irq_index, 45 uint32_t irq_type, lid_t lid) 46 { 47 soclib_xcu_disable_irq(icu, irq_index, irq_type, lid); 48 } 49 50 void hal_drivers_xcu_enable_irq(chdev_t *icu, uint32_t irq_index, 51 uint32_t irq_type, lid_t lid) 52 { 53 soclib_xcu_enable_irq(icu, irq_index, irq_type, lid); 43 /* update the PIC chdev extension */ 44 pic->ext.pic.enable_timer = &pic_apic_enable_timer; 45 pic->ext.pic.enable_irq = &pic_apic_enable_irq; 46 pic->ext.pic.disable_irq = &pic_apic_disable_irq; 47 pic->ext.pic.bind_irq = &pic_apic_bind_irq; 48 pic->ext.pic.send_ipi = &pic_apic_send_ipi; 49 pic->ext.pic.extend_init = &pic_apic_extend_init; 54 50 } 55 51 56 52 /* -------------------------------------------------------------------------- */ 57 53 58 void hal_drivers_ pic_init(chdev_t *dev)54 void hal_drivers_ioc_init(chdev_t *ioc, uint32_t impl) 59 55 { 60 pic_apic_init(dev); 61 62 /* update the PIC chdev extension */ 63 dev->ext.pic.enable_timer = &pic_apic_enable_timer; 64 dev->ext.pic.enable_irq = &pic_apic_enable_irq; 65 dev->ext.pic.disable_irq = &pic_apic_disable_irq; 66 dev->ext.pic.bind_irq = &pic_apic_bind_irq; 67 dev->ext.pic.send_ipi = &pic_apic_send_ipi; 68 dev->ext.pic.extend_init = &pic_apic_extend_init; 56 ioc_ata_init(ioc); 69 57 } 70 58 71 /* -------------------------------------------------------------------------- */72 73 void hal_drivers_ioc_init(chdev_t *dev, uint32_t impl)74 {75 ioc_ata_init(dev);76 }77
Note: See TracChangeset
for help on using the changeset viewer.