Lines Matching +full:auto +full:- +full:boot
2 * Copyright (c) 2018-present Facebook. All Rights Reserved.
8 * http://www.apache.org/licenses/LICENSE-2.0
18 #include <usb-dbg.hpp>
47 namespace boot namespace
54 } // namespace boot
70 lg2::error("Unable to get max host position - {MAXPOSITION}", in getMaxHostPosition()
89 lg2::error("Unable to get host position - {POSITION}", "POSITION", in getSelectorPosition()
95 static int panelNum = (sizeof(panels) / sizeof(struct ctrl_panel)) - 1;
97 /* Returns the FRU the hand-switch is switched to. If it is switched to BMC
153 for (auto ch : parse(str, indent)) in append()
160 lines--; in append()
192 return -1; in getPage()
194 // 1-based page in getPage()
196 return -1; in getPage()
199 return -1; in getPage()
201 ret = snprintf(page_buf, 17, "%-10s %02zd/%02zd", title, page, pages); in getPage()
204 return -1; in getPage()
208 while (line < ((page - 1) * line_per_page) && idx != idx_tail) in getPage()
224 if (len == (page_buf_size - 1)) in getPage()
267 auto frame::parse(const std::string& input, size_t indent) -> std::string in parse()
275 for (auto ch : input) in parse()
298 result.append(line_width - linepos, ' '); in parse()
393 return -1; in plat_udbg_get_post_desc()
407 return -1; in plat_udbg_get_post_desc()
410 auto phaseObj = postObj[phaseStr]; in plat_udbg_get_post_desc()
453 return -1; in plat_udbg_get_post_desc()
475 return -1; in plat_udbg_get_gpio_desc()
483 return -1; in plat_udbg_get_gpio_desc()
486 auto obj = gpioObj[DEBUG_GPIO_KEY]; in plat_udbg_get_gpio_desc()
496 return -1; in plat_udbg_get_gpio_desc()
526 return -1; in plat_udbg_get_gpio_desc()
547 return -1; in getBiosVer()
555 auto bus = getSdBus(); in sendBicCmd()
557 auto method = bus->new_method_call("xyz.openbmc_project.Ipmi.Channel.Ipmb", in sendBicCmd()
562 auto reply = bus->call(method); in sendBicCmd()
567 return -1; in sendBicCmd()
582 auto bus = getSdBus(); in sendMeCmd()
588 for (auto d : cmdData) in sendMeCmd()
595 auto method = bus->new_method_call("xyz.openbmc_project.Ipmi.Channel.Ipmb", in sendMeCmd()
600 auto reply = bus->call(method); in sendMeCmd()
605 return -1; in sendMeCmd()
617 for (auto d : respData) in sendMeCmd()
637 std::string verPath = "/etc/os-release"; in udbg_get_info_page()
721 // Battery - Use Escape sequence in udbg_get_info_page()
726 // MCU Version - Use Escape sequence in udbg_get_info_page()
741 for (auto& info : data) in udbg_get_info_page()
764 return -1; in udbg_get_info_page()
771 return -1; in udbg_get_info_page()
797 // Synchronously get D-Bus connection in udbg_get_postcode()
798 auto bus = sdbusplus::bus::new_default(); in udbg_get_postcode()
800 // Build D-Bus method call in udbg_get_postcode()
801 auto method = bus.new_method_call( in udbg_get_postcode()
802 "xyz.openbmc_project.State.Boot.PostCode0", // Target service name in udbg_get_postcode()
803 "/xyz/openbmc_project/State/Boot/PostCode0", // Object path in udbg_get_postcode()
804 "xyz.openbmc_project.State.Boot.PostCode", // Interface name in udbg_get_postcode()
811 auto reply = bus.call(method); // Send synchronous method call in udbg_get_postcode()
820 auto range = std::ranges::subrange(postcodes.rbegin(), in udbg_get_postcode()
822 for (const auto& [code, extra] : range) in udbg_get_postcode()
826 for (const auto& byte : code) in udbg_get_postcode()
843 return -1; in udbg_get_postcode()
849 return -1; in udbg_get_postcode()
856 return -1; in udbg_get_postcode()
877 return -1; in plat_udbg_get_frame_data()
912 auto [bootObjPath, hostName] = ipmi::boot::objPath(pos); in panel_boot_order()
913 ipmi::boot::getBootOrder(bootObjPath, bootSeq, hostName); in panel_boot_order()
917 // One item is selected to set a new boot sequence. in panel_boot_order()
918 // The selected item become the first boot order. in panel_boot_order()
921 // Move the selected item to second element (the first one is boot mode) in panel_boot_order()
928 ipmi::boot::setBootOrder(bootObjPath, bootSeq, hostName); in panel_boot_order()
932 lg2::error("Fail to set boot order : {ERROR}", "ERROR", e); in panel_boot_order()
939 // '*': boot flags valid, BIOS has not yet read in panel_boot_order()
941 std::string("Boot Order") + ((bootMode & bootValid) ? "*" : ""); in panel_boot_order()
946 {0x03, " SATA-CDROM"}, {0x04, " Other"}, {0x09, " Network v6"}, in panel_boot_order()
952 auto find = bootOrderMappingTable.find(bootSeq[i]); in panel_boot_order()
955 lg2::error("Unknown boot order : {BOOTORDER}", "BOOTORDER", in panel_boot_order()
960 bootOrderPanel.item_str[i] = find->second; in panel_boot_order()
984 policy = pwr_policy_item_map[item - 1]; in panel_power_policy()