biccommands.cpp (14ddea58be2119d6ae5e4f68838e2e68fe9bdf04) | biccommands.cpp (519530beae4e7d368f5fc31fa252d51fd7caa601) |
---|---|
1/* 2 * Copyright (c) 2018 Intel Corporation. 3 * Copyright (c) 2018-present Facebook. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * --- 136 unchanged lines hidden (view full) --- 145 // Gets whole pattern success 146 dimm::dimmLoops[hostId].gotPattern = true; 147 } 148 } 149} 150 151//---------------------------------------------------------------------- 152// ipmiOemPostCodeHandler (CMD_OEM_BIC_POST_BUFFER_INFO) | 1/* 2 * Copyright (c) 2018 Intel Corporation. 3 * Copyright (c) 2018-present Facebook. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * --- 136 unchanged lines hidden (view full) --- 145 // Gets whole pattern success 146 dimm::dimmLoops[hostId].gotPattern = true; 147 } 148 } 149} 150 151//---------------------------------------------------------------------- 152// ipmiOemPostCodeHandler (CMD_OEM_BIC_POST_BUFFER_INFO) |
153// This Function will handle BIC incomming postcode from multi-host for | 153// This Function will handle BIC incoming postcode from multi-host for |
154// netfn=0x38 and cmd=0x08 or 0x33 send the response back to the sender. 155//---------------------------------------------------------------------- 156 157ipmi::RspType<IanaType> ipmiOemPostCodeHandler(ipmi::Context::ptr ctx, 158 IanaType reqIana, 159 uint8_t dataLen, 160 std::vector<uint8_t> data) 161{ --- 18 unchanged lines hidden (view full) --- 180 auto postCode = postcode_t(primaryPostCode, {}); 181 182 try 183 { 184 auto method = conn->new_method_call( 185 "xyz.openbmc_project.State.Boot.Raw", dbusObjStr.c_str(), 186 "org.freedesktop.DBus.Properties", "Set"); 187 | 154// netfn=0x38 and cmd=0x08 or 0x33 send the response back to the sender. 155//---------------------------------------------------------------------- 156 157ipmi::RspType<IanaType> ipmiOemPostCodeHandler(ipmi::Context::ptr ctx, 158 IanaType reqIana, 159 uint8_t dataLen, 160 std::vector<uint8_t> data) 161{ --- 18 unchanged lines hidden (view full) --- 180 auto postCode = postcode_t(primaryPostCode, {}); 181 182 try 183 { 184 auto method = conn->new_method_call( 185 "xyz.openbmc_project.State.Boot.Raw", dbusObjStr.c_str(), 186 "org.freedesktop.DBus.Properties", "Set"); 187 |
188 // Adding paramters to method call | 188 // Adding parameters to method call |
189 method.append(dbusService, "Value", 190 std::variant<postcode_t>(postCode)); 191 192 // Invoke method call function 193 auto reply = conn->call(method); 194 } 195 196 catch (std::exception& e) --- 41 unchanged lines hidden (view full) --- 238 std::ranges::copy_n(respData.begin(), iana.size(), respIana.begin()).in; 239 std::copy(r, respData.end(), std::back_inserter(gpioState)); 240 241 return ipmi::responseSuccess(respIana, gpioState); 242} 243 244//---------------------------------------------------------------------- 245// ipmiOemSetHostPowerState (CMD_OEM_SET_HOST_POWER_STATE) | 189 method.append(dbusService, "Value", 190 std::variant<postcode_t>(postCode)); 191 192 // Invoke method call function 193 auto reply = conn->call(method); 194 } 195 196 catch (std::exception& e) --- 41 unchanged lines hidden (view full) --- 238 std::ranges::copy_n(respData.begin(), iana.size(), respIana.begin()).in; 239 std::copy(r, respData.end(), std::back_inserter(gpioState)); 240 241 return ipmi::responseSuccess(respIana, gpioState); 242} 243 244//---------------------------------------------------------------------- 245// ipmiOemSetHostPowerState (CMD_OEM_SET_HOST_POWER_STATE) |
246// This Function will handle BIC incomming IPMI request for | 246// This Function will handle BIC incoming IPMI request for |
247// setting host current state for netfn=0x38 and cmd=0x0C 248// send the response back to the sender. 249//---------------------------------------------------------------------- 250 251ipmi::RspType<IanaType> ipmiOemSetHostPowerState(ipmi::Context::ptr ctx, 252 IanaType reqIana, 253 uint8_t status) 254{ --- 171 unchanged lines hidden --- | 247// setting host current state for netfn=0x38 and cmd=0x0C 248// send the response back to the sender. 249//---------------------------------------------------------------------- 250 251ipmi::RspType<IanaType> ipmiOemSetHostPowerState(ipmi::Context::ptr ctx, 252 IanaType reqIana, 253 uint8_t status) 254{ --- 171 unchanged lines hidden --- |