Changeset 534 for trunk/boot/tsar_mips32/boot.c
- Timestamp:
- Sep 21, 2018, 10:20:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot.c
r530 r534 123 123 * This function returns the printable string for each device type 124 124 ********************************************************************************/ 125 static const char * device_type_str( uint32_t dev_type ) 126 { 127 if ( dev_type == DEV_TYPE_RAM_SCL ) return "RAM_SCL"; 128 else if( dev_type == DEV_TYPE_ROM_SCL ) return "ROM_SCL"; 129 else if( dev_type == DEV_TYPE_FBF_SCL ) return "FBF_SCL"; 130 else if( dev_type == DEV_TYPE_IOB_TSR ) return "IOB_TSR"; 131 else if( dev_type == DEV_TYPE_IOC_BDV ) return "IOC_BDV"; 132 else if( dev_type == DEV_TYPE_IOC_HBA ) return "IOC_HBA"; 133 else if( dev_type == DEV_TYPE_IOC_SDC ) return "IOC_SDC"; 134 else if( dev_type == DEV_TYPE_IOC_SPI ) return "IOC_SPI"; 135 else if( dev_type == DEV_TYPE_IOC_RDK ) return "IOC_RDK"; 136 else if( dev_type == DEV_TYPE_MMC_TSR ) return "MMC_TSR"; 137 else if( dev_type == DEV_TYPE_DMA_SCL ) return "DMA_SCL"; 138 else if( dev_type == DEV_TYPE_NIC_CBF ) return "NIC_CBF"; 139 else if( dev_type == DEV_TYPE_TIM_SCL ) return "TIM_SCL"; 140 else if( dev_type == DEV_TYPE_TXT_TTY ) return "TXT_TTY"; 141 else if( dev_type == DEV_TYPE_ICU_XCU ) return "ICU_XCU"; 142 else if( dev_type == DEV_TYPE_PIC_TSR ) return "PIC_TSR"; 143 else return "undefined"; 125 static const char * device_type_str( boot_device_types_t dev_type ) { 126 switch (dev_type) { 127 case DEV_TYPE_RAM_SCL: return "RAM_SCL"; 128 case DEV_TYPE_ROM_SCL: return "ROM_SCL"; 129 case DEV_TYPE_FBF_SCL: return "FBF_SCL"; 130 case DEV_TYPE_IOB_TSR: return "IOB_TSR"; 131 case DEV_TYPE_IOC_BDV: return "IOC_BDV"; 132 case DEV_TYPE_IOC_HBA: return "IOC_HBA"; 133 case DEV_TYPE_IOC_SDC: return "IOC_SDC"; 134 case DEV_TYPE_IOC_SPI: return "IOC_SPI"; 135 case DEV_TYPE_IOC_RDK: return "IOC_RDK"; 136 case DEV_TYPE_MMC_TSR: return "MMC_TSR"; 137 case DEV_TYPE_DMA_SCL: return "DMA_SCL"; 138 case DEV_TYPE_NIC_CBF: return "NIC_CBF"; 139 case DEV_TYPE_TIM_SCL: return "TIM_SCL"; 140 case DEV_TYPE_TXT_TTY: return "TXT_TTY"; 141 case DEV_TYPE_ICU_XCU: return "ICU_XCU"; 142 case DEV_TYPE_PIC_TSR: return "PIC_TSR"; 143 default: return "undefined"; 144 } 144 145 } 145 146 … … 554 555 (device->type == DEV_TYPE_ICU_XCU) || 555 556 (device->type == DEV_TYPE_MMC_TSR) || 556 (device->type == DEV_TYPE_DMA_SCL) ) 557 (device->type == DEV_TYPE_DMA_SCL) || 558 (device->type == DEV_TYPE_TXT_MTY) ) 557 559 { 558 560 if (device->type == DEV_TYPE_RAM_SCL) // RAM … … 565 567 #endif 566 568 } 567 else // ICU / MMC / DMA 569 else // ICU / MMC / DMA / MTY 568 570 { 569 571 if( device_id >= CONFIG_MAX_INT_DEV )
Note: See TracChangeset
for help on using the changeset viewer.