- Timestamp:
- Jul 17, 2017, 1:22:11 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_bdv.c
r75 r211 34 34 // get extended pointer on SOCLIB_BDV peripheral base address 35 35 xptr_t bdv_xp = chdev->base; 36 37 // set driver specific fields 38 chdev->cmd = &soclib_bdv_cmd; 39 chdev->isr = &soclib_bdv_isr; 36 40 37 41 // get hardware device cluster and local pointer -
trunk/hal/tsar_mips32/drivers/soclib_hba.c
r101 r211 59 59 // get hardware device base address 60 60 xptr_t hba_xp = chdev->base; 61 62 // set driver specific fields 63 chdev->cmd = &soclib_hba_cmd; 64 chdev->isr = &soclib_hba_isr; 61 65 62 66 // get hardware device cluster and local pointer -
trunk/hal/x86_64/drivers/soclib_bdv.c
r210 r211 176 176 /* -------------------------------------------------------------------------- */ 177 177 178 void soclib_bdv_init( chdev_t * chdev ) 179 { 178 void soclib_bdv_init(chdev_t *chdev) 179 { 180 chdev->cmd = &soclib_bdv_cmd; 181 chdev->isr = &soclib_bdv_isr; 180 182 ata_init(); 181 183 } -
trunk/hal/x86_64/drivers/soclib_hba.c
r76 r211 32 32 void soclib_hba_init( chdev_t * chdev ) 33 33 { 34 // set driver specific fields 35 chdev->cmd = &soclib_hba_cmd; 36 chdev->isr = &soclib_hba_isr; 34 37 38 x86_panic((const char *)__func__); 35 39 } 36 40 37 41 void __attribute__ ((noinline)) soclib_hba_cmd( xptr_t th_xp ) 38 42 { 39 43 x86_panic((const char *)__func__); 40 44 } 41 45 42 46 void __attribute__ ((noinline)) soclib_hba_isr( chdev_t * chdev ) 43 47 { 44 48 x86_panic((const char *)__func__); 45 49 } 46 50 -
trunk/kernel/devices/dev_ioc.c
r207 r211 57 57 snprintf( ioc->name , 16 , "ioc_%d" , channel ); 58 58 59 // set driver specific fields in chdev descriptor andcall driver init function59 // call driver init function 60 60 if( impl == IMPL_IOC_BDV ) 61 61 { 62 ioc->cmd = &soclib_bdv_cmd;63 ioc->isr = &soclib_bdv_isr;64 62 soclib_bdv_init( ioc ); 65 63 } 66 64 else if( impl == IMPL_IOC_HBA ) 67 65 { 68 ioc->cmd = &soclib_hba_cmd;69 ioc->isr = &soclib_hba_isr;70 66 soclib_hba_init( ioc ); 71 67 }
Note: See TracChangeset
for help on using the changeset viewer.