lib/fw.c
/**
 * @brief Return a string describing the type of a firmware image
 * @param[out] info Information structure to return the type string for
 * @return Type string
 */
@brief Return a string describing the type of a firmware image
@param[out] info Information structure to return the type string for
@return Type string
@brief Return a string describing the type of a firmware image @param [ out ] info Information structure to return the type string for @return Type string
const char *switchtec_fw_image_type(const struct switchtec_fw_image_info *info)
{
	switch((unsigned long)info->type) {
	case SWITCHTEC_FW_TYPE_BOOT: return "BOOT";
	case SWITCHTEC_FW_TYPE_MAP0: return "MAP";
	case SWITCHTEC_FW_TYPE_MAP1: return "MAP";
	case SWITCHTEC_FW_TYPE_IMG0: return "IMG";
	case SWITCHTEC_FW_TYPE_IMG1: return "IMG";
	case SWITCHTEC_FW_TYPE_DAT0: return "DAT";
	case SWITCHTEC_FW_TYPE_DAT1: return "DAT";
	case SWITCHTEC_FW_TYPE_NVLOG: return "NVLOG";
	case SWITCHTEC_FW_TYPE_SEEPROM: return "SEEPROM";
	case 0xa8000000: return "BOOT (LEGACY)";
	case 0xa8020000: return "MAP (LEGACY)";
	case 0xa8060000: return "IMG (LEGACY)";
	case 0xa8210000: return "DAT (LEGACY)";
	default: return "UNKNOWN";
	}
}
const char * switchtec_fw_image_type ( const struct switchtec_fw_image_info * info ) { switch ( ( unsigned long ) info -> type ) { case SWITCHTEC_FW_TYPE_BOOT : return " " ; case SWITCHTEC_FW_TYPE_MAP0 : return " " ; case SWITCHTEC_FW_TYPE_MAP1 : return " " ; case SWITCHTEC_FW_TYPE_IMG0 : return " " ; case SWITCHTEC_FW_TYPE_IMG1 : return " " ; case SWITCHTEC_FW_TYPE_DAT0 : return " " ; case SWITCHTEC_FW_TYPE_DAT1 : return " " ; case SWITCHTEC_FW_TYPE_NVLOG : return " " ; case SWITCHTEC_FW_TYPE_SEEPROM : return " " ; case 0xa8000000 : return " " ; case 0xa8020000 : return " " ; case 0xa8060000 : return " " ; case 0xa8210000 : return " " ; default : return " " ; } }
@brief Return a string describing the type of a firmware image
 @param[out] info Information structure to return the type string for
 @return Type string
@brief Return a string describing the type of a firmware image @param [ out ] info Information structure to return the type string for @return Type string
//Legacy