Changeset 257 for trunk/kernel
- Timestamp:
- Jul 20, 2017, 2:59:04 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_mmc.c
r238 r257 24 24 #include <hal_types.h> 25 25 #include <hal_special.h> 26 #include < soclib_mmc.h>26 #include <hal_drivers.h> 27 27 #include <printk.h> 28 28 #include <chdev.h> … … 45 45 snprintf( mmc->name , 16 , "mmc_%x" , local_cxy ); 46 46 47 // set driver specific fields in device descriptor and call driver init function 48 if( impl == IMPL_MMC_TSR ) 49 { 50 mmc->cmd = &soclib_mmc_cmd; 51 mmc->isr = &soclib_mmc_isr; 52 soclib_mmc_init( mmc ); 53 } 54 else 55 { 56 assert( false , __FUNCTION__ , "undefined MMC device implementation" ); 57 } 47 // call driver init function 48 hal_drivers_mmc_init( mmc , impl ); 58 49 59 50 // bind IRQ to CP0
Note: See TracChangeset
for help on using the changeset viewer.