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

Function select_hal

util/nvramtool/cmos_lowlevel.c:21–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#endif
20
21void select_hal(hal_t hal, void *data)
22{
23 switch(hal) {
24#ifdef CMOS_HAL
25 case HAL_CMOS:
26 current_access = &cmos_hal;
27 break;
28#endif
29 case HAL_MEMORY:
30 default:
31 current_access = &memory_hal;
32 break;
33 }
34 current_access->init(data);
35}
36
37/* Bit-level access */
38typedef struct {

Callers 1

mainFunction · 0.85

Calls 1

initMethod · 0.45

Tested by

no test coverage detected