- Timestamp:
- Jul 13, 2017, 12:42:33 PM (7 years ago)
- Location:
- trunk/hal/x86_64
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_drivers.c
r196 r197 27 27 #include <soclib_tty.h> 28 28 #include <soclib_xcu.h> 29 #include < soclib_pic.h>29 #include <pic_apic.h> 30 30 31 31 void hal_drivers_txt_init(chdev_t *dev) … … 58 58 { 59 59 /* update the PIC chdev extension */ 60 dev->ext.pic.enable_timer = & soclib_pic_enable_timer;61 dev->ext.pic.enable_irq = & soclib_pic_enable_irq;62 dev->ext.pic.disable_irq = & soclib_pic_disable_irq;63 dev->ext.pic.bind_irq = & soclib_pic_bind_irq;64 dev->ext.pic.send_ipi = & soclib_pic_send_ipi;65 dev->ext.pic.extend_init = & soclib_pic_extend_init;60 dev->ext.pic.enable_timer = &pic_apic_enable_timer; 61 dev->ext.pic.enable_irq = &pic_apic_enable_irq; 62 dev->ext.pic.disable_irq = &pic_apic_disable_irq; 63 dev->ext.pic.bind_irq = &pic_apic_bind_irq; 64 dev->ext.pic.send_ipi = &pic_apic_send_ipi; 65 dev->ext.pic.extend_init = &pic_apic_extend_init; 66 66 } 67 67 -
trunk/hal/x86_64/drivers/pic_apic.c
r196 r197 1 1 /* 2 * soclib_pic.c - soclib PIC driver implementation.2 * pic_apic.c - APIC PIC driver implementation 3 3 * 4 * Author Alain Greiner (2016) 5 * * 6 * Copyright (c) UPMC Sorbonne Universites 4 * Copyright (c) 2017 Maxime Villard 7 5 * 8 6 * This file is part of ALMOS-MKH. 9 7 * 10 * ALMOS-MKH .is free software; you can redistribute it and/or modify it8 * ALMOS-MKH is free software; you can redistribute it and/or modify it 11 9 * under the terms of the GNU General Public License as published by 12 10 * the Free Software Foundation; version 2.0 of the License. 13 11 * 14 * ALMOS-MKH .is distributed in the hope that it will be useful, but12 * ALMOS-MKH is distributed in the hope that it will be useful, but 15 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 16 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 18 16 * 19 17 * You should have received a copy of the GNU General Public License 20 * along with ALMOS-MKH .; if not, write to the Free Software Foundation,18 * along with ALMOS-MKH; if not, write to the Free Software Foundation, 21 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 20 */ … … 24 22 #include <hal_types.h> 25 23 #include <chdev.h> 26 #include <soclib_pic.h> 27 #include <soclib_xcu.h> 24 #include <pic_apic.h> 28 25 #include <errno.h> 29 26 #include <string.h> 30 27 #include <vfs.h> 31 28 32 void soclib_pic_init( chdev_t * pic )29 void pic_apic_init( chdev_t * pic ) 33 30 { 34 31 x86_panic((char *)__func__); 35 32 } 36 33 37 void soclib_pic_extend_init( uint32_t * xcu_base )34 void pic_apic_extend_init( uint32_t * xcu_base ) 38 35 { 39 36 x86_panic((char *)__func__); 40 37 } 41 38 42 void soclib_pic_bind_irq( lid_t lid,39 void pic_apic_bind_irq( lid_t lid, 43 40 chdev_t * src_chdev ) 44 41 { … … 46 43 } 47 44 48 void soclib_pic_enable_irq( lid_t lid,45 void pic_apic_enable_irq( lid_t lid, 49 46 chdev_t * src_chdev ) 50 47 { … … 52 49 } 53 50 54 void soclib_pic_disable_irq( lid_t lid,51 void pic_apic_disable_irq( lid_t lid, 55 52 chdev_t * src_chdev ) 56 53 { … … 58 55 } 59 56 60 void soclib_pic_enable_timer( uint32_t period )57 void pic_apic_enable_timer( uint32_t period ) 61 58 { 62 59 x86_panic((char *)__func__); 63 60 } 64 61 65 void soclib_pic_send_ipi( cxy_t cxy,62 void pic_apic_send_ipi( cxy_t cxy, 66 63 lid_t lid ) 67 64 { -
trunk/hal/x86_64/drivers/pic_apic.h
r196 r197 1 1 /* 2 * soclib_pic.c - soclib PIC driver definition.2 * pic_apic.c - APIC PIC driver definitions 3 3 * 4 * Author Alain Greiner (2016) 5 * 6 * Copyright (c) UPMC Sorbonne Universites 4 * Copyright (c) 2017 Maxime Villard 7 5 * 8 6 * This file is part of ALMOS-MKH. … … 18 16 * 19 17 * You should have received a copy of the GNU General Public License 20 * along with ALMOS- kernel; if not, write to the Free Software Foundation,18 * along with ALMOS-MKH; if not, write to the Free Software Foundation, 21 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 20 */ 23 21 24 #ifndef _ SOCLIB_IOPIC_H_25 #define _ SOCLIB_IOPIC_H_22 #ifndef _PIC_APIC_H_ 23 #define _PIC_APIC_H_ 26 24 27 25 #include <hal_types.h> 28 26 29 void soclib_pic_init( chdev_t * pic );30 void soclib_pic_extend_init( uint32_t * xcu_base );31 void soclib_pic_bind_irq( lid_t lid,27 void pic_apic_init( chdev_t * pic ); 28 void pic_apic_extend_init( uint32_t * xcu_base ); 29 void pic_apic_bind_irq( lid_t lid, 32 30 chdev_t * src_chdev ); 33 void soclib_pic_enable_irq( lid_t lid,31 void pic_apic_enable_irq( lid_t lid, 34 32 chdev_t * src_chdev ); 35 void soclib_pic_disable_irq( lid_t lid,33 void pic_apic_disable_irq( lid_t lid, 36 34 chdev_t * src_chdev ); 37 void soclib_pic_enable_timer( uint32_t period );35 void pic_apic_enable_timer( uint32_t period ); 38 36 39 void soclib_pic_send_ipi( cxy_t cxy,37 void pic_apic_send_ipi( cxy_t cxy, 40 38 lid_t lid ); 41 39 42 #endif /* _ SOCLIB_IOPIC_H_ */40 #endif /* _PIC_APIC_H_ */
Note: See TracChangeset
for help on using the changeset viewer.