Lines Matching +full:system +full:- +full:bus
14 import obmc_system_config as System namespace
16 import obmc.system
18 DBUS_NAME = "org.openbmc.managers.System"
19 OBJ_NAME = "/org/openbmc/managers/System"
24 def __init__(self, bus, obj_name): argument
25 super(SystemManager, self).__init__(conn=bus, object_path=obj_name)
26 self.bus = bus
29 for category in System.ID_LOOKUP:
30 for key in System.ID_LOOKUP[category]:
31 val = System.ID_LOOKUP[category][key]
35 System.ID_LOOKUP[category][key] = new_val
43 obj_path = System.ID_LOOKUP[category][key]
65 gpio_num = -1
67 if name not in System.GPIO_CONFIG:
74 gpio_num = -1
75 gpio = System.GPIO_CONFIG[name]
76 if "gpio_num" in System.GPIO_CONFIG[name]:
79 if "gpio_pin" in System.GPIO_CONFIG[name]:
80 gpio_num = obmc.system.convertGpio(gpio["gpio_pin"])
83 "ERROR: SystemManager - GPIO lookup failed for " + name
88 if gpio_num != -1:
96 power_config = System.GPIO_CONFIGS.get("power_config", {})
102 hostctl_config = System.GPIO_CONFIGS.get("hostctl_config", {})
126 bus = get_dbus() variable
127 obj = SystemManager(bus, OBJ_NAME)
130 name = dbus.service.BusName(DBUS_NAME, bus)