MCPcopy Create free account
hub / github.com/coreboot/coreboot / decode_component_density

Function decode_component_density

util/ifdtool/ifdtool.c:664–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static void decode_component_density(unsigned int density)
665{
666 switch (density) {
667 case COMPONENT_DENSITY_512KB:
668 printf("512KB");
669 break;
670 case COMPONENT_DENSITY_1MB:
671 printf("1MB");
672 break;
673 case COMPONENT_DENSITY_2MB:
674 printf("2MB");
675 break;
676 case COMPONENT_DENSITY_4MB:
677 printf("4MB");
678 break;
679 case COMPONENT_DENSITY_8MB:
680 printf("8MB");
681 break;
682 case COMPONENT_DENSITY_16MB:
683 printf("16MB");
684 break;
685 case COMPONENT_DENSITY_32MB:
686 printf("32MB");
687 break;
688 case COMPONENT_DENSITY_64MB:
689 printf("64MB");
690 break;
691 case COMPONENT_DENSITY_UNUSED:
692 printf("UNUSED");
693 break;
694 default:
695 printf("unknown<%x>MB", density);
696 }
697}
698
699static int is_platform_with_pch(void)
700{

Callers 2

dump_fcbaFunction · 0.85
set_chipdensityFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected