Changeset 205 for trunk/kernel/devices/dev_pic.c
- Timestamp:
- Jul 17, 2017, 11:41:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_pic.c
r204 r205 78 78 79 79 // get pointer on extend_init function 80 pic_init_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.extend_init ) );80 extend_init_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.extend_init ) ); 81 81 82 82 // call relevant driver function … … 93 93 94 94 // get pointer on bind_irq function 95 pic_bind_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.bind_irq ) );95 bind_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.bind_irq ) ); 96 96 97 97 // call relevant driver function … … 99 99 } 100 100 101 ///////////////////////////////////// //102 void dev_pic_enable_irq( lid_t 103 chdev_t * src_chdev)101 ///////////////////////////////////// 102 void dev_pic_enable_irq( lid_t lid, 103 xptr_t src_chdev_xp ) 104 104 { 105 105 // get pointer on PIC chdev … … 108 108 109 109 // get pointer on enable_irq function 110 pic_enable_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_irq ) );110 enable_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_irq ) ); 111 111 112 112 // call relevant driver function 113 f( lid , src_chdev );113 f( lid , src_chdev_xp ); 114 114 } 115 115 116 ////////////////////////////////////// //117 void dev_pic_disable_irq( lid_t 118 chdev_t * src_chdev)116 ////////////////////////////////////// 117 void dev_pic_disable_irq( lid_t lid, 118 xptr_t src_chdev_xp ) 119 119 { 120 120 // get pointer on PIC chdev … … 123 123 124 124 // get pointer on disable_irq function 125 pic_disable_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.disable_irq ) );125 disable_irq_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.disable_irq ) ); 126 126 127 127 // call relevant driver function 128 f( lid , src_chdev );128 f( lid , src_chdev_xp ); 129 129 } 130 130 … … 137 137 138 138 // get pointer on enable_timer function 139 pic_timer_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_timer ) );139 enable_timer_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.enable_timer ) ); 140 140 141 141 // call relevant driver function … … 152 152 153 153 // get pointer on send_ipi function 154 pic_ipi_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.send_ipi ) );154 send_ipi_t * f = hal_remote_lpt( XPTR( pic_cxy , &pic_ptr->ext.pic.send_ipi ) ); 155 155 156 156 // call relevant driver function
Note: See TracChangeset
for help on using the changeset viewer.