- Timestamp:
- Jul 20, 2017, 1:30:05 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_drivers.h
r245 r252 27 27 void hal_drivers_txt_init(chdev_t *txt, uint32_t impl); 28 28 29 void hal_drivers_pic_init(chdev_t *pic );29 void hal_drivers_pic_init(chdev_t *pic, uint32_t impl); 30 30 31 31 void hal_drivers_ioc_init(chdev_t *ioc, uint32_t impl); -
trunk/hal/tsar_mips32/core/hal_drivers.c
r245 r252 53 53 54 54 ////////////////////////////////////////// 55 void hal_drivers_pic_init( chdev_t * pic ) 55 void hal_drivers_pic_init( chdev_t * pic, 56 uint32_t impl ) 56 57 { 58 if( impl != IMPL_PIC_SCL ) 59 { 60 assert( false , __FUNCTION__ , "undefined PIC device implementation" ); 61 } 62 57 63 soclib_pic_init( pic ); 58 64 -
trunk/hal/x86_64/core/hal_drivers.c
r250 r252 36 36 /* -------------------------------------------------------------------------- */ 37 37 38 void hal_drivers_pic_init(chdev_t *pic )38 void hal_drivers_pic_init(chdev_t *pic, uint32_t impl) 39 39 { 40 if (impl != IMPL_PIC_I86) { 41 x86_panic("undefined PIC device implementation"); 42 } 43 40 44 pic_apic_init(pic); 41 45 -
trunk/hal/x86_64/core/hal_init.c
r240 r252 189 189 190 190 dev->base = 0; 191 dev->type = (DEV_FUNC_PIC << 16) | IMPL_PIC_ SCL;191 dev->type = (DEV_FUNC_PIC << 16) | IMPL_PIC_I86; 192 192 dev->channels = 1; 193 193 dev->param0 = 0; … … 253 253 info->rsvd_nr = init_bootinfo_rsvd((boot_rsvd_t *)&info->rsvd); 254 254 255 /* TODO: dev_icu */256 255 /* TODO: dev_mmc */ 257 256 /* TODO: dev_dma */ -
trunk/kernel/devices/dev_pic.c
r206 r252 45 45 strcpy( pic->name , "pic" ); 46 46 47 // call the relevant driver init function, 48 // and register commands in PIC device extension 49 if( impl == IMPL_PIC_SCL ) 50 { 51 // call the implementation-specific PIC driver 52 hal_drivers_pic_init(pic); 53 } 54 else if( impl == IMPL_PIC_I86 ) 55 { 56 assert( false , __FUNCTION__ , "missing implementation for X86\n" ); 57 } 58 else 59 { 60 assert( false , __FUNCTION__ , "undefined PIC device implementation" ); 61 } 62 } // end dev_pic_init() 47 // call the implementation-specific PIC driver 48 hal_drivers_pic_init(pic, impl); 49 } 63 50 64 51 /////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.