MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pm_disable_device

Function pm_disable_device

freebsd/arm/mv/mv_common.c:457–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457static __inline void
458pm_disable_device(int mask)
459{
460#ifdef DIAGNOSTIC
461 uint32_t reg;
462
463 reg = soc_power_ctrl_get(CPU_PM_CTRL_ALL);
464 printf("Power Management Register: 0%x\n", reg);
465
466 reg &= ~mask;
467 soc_power_ctrl_set(reg);
468 printf("Device %x is disabled\n", mask);
469
470 reg = soc_power_ctrl_get(CPU_PM_CTRL_ALL);
471 printf("Power Management Register: 0%x\n", reg);
472#endif
473}
474
475int
476mv_fdt_is_type(phandle_t node, const char *typestr)

Callers 1

soc_decode_winFunction · 0.85

Calls 3

soc_power_ctrl_getFunction · 0.85
soc_power_ctrl_setFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected