/openbmc/phosphor-host-ipmid/test/ |
H A D | entitymap_json_unittest.cpp | 24 "id" : 1, in TEST() 30 {"id" : 1, "instance" : 2}, in TEST() 31 {"id" : 1, "instance" : 3}, in TEST() 32 {"id" : 1, "instance" : 4}, in TEST() 33 {"id" : 1, "instance" : 5} in TEST() 49 "id" : 1, in TEST() 54 {"id" : 1, "instance" : 2}, in TEST() 55 {"id" : 1, "instance" : 3}, in TEST() 56 {"id" : 1, "instance" : 4}, in TEST() 57 {"id" : 1, "instance" : 5} in TEST() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | instance-id.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 18 * @brief Instantiates an instance ID database object for a given database path 20 * @param[out] ctx - *ctx must be NULL, and will point to a PLDM instance ID 22 * @param[in] dbpath - the path to the instance ID database file to use 24 * @return int - Returns 0 on success. Returns -EINVAL if ctx is NULL or *ctx 25 * is not NULL. Returns -ENOMEM if memory couldn't be allocated. 31 * @brief Instantiates an instance ID database object for the default database 34 * @param[out] ctx - *ctx will point to a PLDM instance ID database object on 37 * @return int - Returns 0 on success. Returns -EINVAL if ctx is NULL or *ctx 38 * is not NULL. Returns -ENOMEM if memory couldn't be allocated. [all …]
|
H A D | base.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 185 uint8_t instance_id : 5; //!< Instance ID 193 uint8_t instance_id : 5; //!< Instance ID 206 // Macros for byte-swapping variables in-place 231 (sizeof(char[(__builtin_constant_p(size)) ? 1 : -1])) * \ 232 (sizeof(struct pldm_msg) - \ 233 sizeof(((struct pldm_msg *)NULL)->payload) + (size)) 235 /** @brief Stack-allocate a buffer to hold a @struct pldm_msg 240 * @param name - The variable name used to define the buffer 241 * @param size - The desired payload length for the intended @struct pldm_msg [all …]
|
/openbmc/pldm/common/ |
H A D | instance_id.hpp | 3 #include <libpldm/instance-id.h> 15 * @brief Implementation of PLDM instance id as per DSP0240 v1.0.0 31 * @param[in] path - instance ID database path 45 * Abandon error-reporting. We shouldn't throw an exception from the in ~InstanceIdDb() 54 /** @brief Allocate an instance ID for the given terminus 55 * @param[in] tid - the terminus ID the instance ID is associated with 56 * @return - PLDM instance id or -EAGAIN if there are no available instance 61 uint8_t id; in next() local 62 int rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &id); in next() 64 if (rc == -EAGAIN) in next() [all …]
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/ |
H A D | pldm_utils.hpp | 1 // SPDX-License-Identifier: Apache-2.0 5 #include <libpldm/instance-id.h> 30 * @brief Instantiates an instance ID database object 37 * @brief Destroys an instance ID database object 47 * @param[in] eid - MCTP endpoint ID 56 * @param[in] eid - MCTP endpoint ID 64 * @brief Returns the PLDM instance ID to use for PLDM commands 66 * @param[in] tid - the terminus ID the instance ID is associated with 68 * @return pldm_instance_id_t - The instance ID 73 * @brief Free the PLDM instance ID [all …]
|
/openbmc/phosphor-host-ipmid/scripts/ |
H A D | entity-example.md | 1 # Entity-example 9 "id": 1, 15 { "id": 1, "instance": 2 }, 16 { "id": 1, "instance": 3 }, 17 { "id": 1, "instance": 4 }, 18 { "id": 1, "instance": 5 } 24 as part of your `phosphor-ipmi-config` 30 # Container Entity Id and Container Entity Instance = (0x13, 0x81) 31 # Contained Entity Id and Contained Entity Instance = (0x0A, 0x1), 33 # Entity Record id is the key [all …]
|
/openbmc/pldm/requester/ |
H A D | README.md | 6 - Register a PLDM request and the response handler to be invoked on receiving 8 - The handling of the request and response is asynchronous. This means the PLDM 10 - Multiple outstanding requests are supported. 11 - Request retries based on the time-out waiting for a response. 12 - Instance ID expiration and marking the instance ID free after expiration. 16 - A mechanism to queue multiple outstanding requests to the same responder. 17 - Handle ERROR_NOT_READY completion code and retry the PLDM request after 250ms 21 request. The destination endpoint ID, instance ID, PLDM type, PLDM command code, 37 - If the response is received before instance ID expiration: 38 - If the response matches with an outstanding request then the response [all …]
|
H A D | handler.hpp | 11 #include <phosphor-logging/lg2.hpp> 36 * response and a combination of MCTP endpoint ID, PLDM instance ID, PLDM type 41 mctp_eid_t eid; //!< MCTP endpoint ID 42 uint8_t instanceId; //!< PLDM instance ID 55 * This is a simple hash function, since the instance ID generator API 56 * generates unique instance IDs for MCTP endpoint ID. 87 RequestKey key; //!< Responder MCTP endpoint ID 99 mctp_eid_t eid; //!< Responder MCTP endpoint ID 112 * instance ID expiration interval, number of request retries and the timeout 115 * received within the instance ID expiration interval or any other failure the [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | pldm_interface.hpp | 5 #include <libpldm/instance-id.h> 8 #include <libpldm/transport/mctp-demux.h> 24 * command to the host to notify it of a new PEL's ID and size. 40 * @param[in] event - The sd_event object pointer 41 * @param[in] dataIface - The DataInterface object 61 * to send up the ID and size of the new PEL. 63 * It starts by issuing the async D-Bus method call to read the 64 * instance ID. 66 * @param[in] id - The PEL ID 67 * @param[in] size - The PEL size in bytes [all …]
|
/openbmc/openpower-occ-control/ |
H A D | pldm.hpp | 7 #include <libpldm/instance-id.h> 10 #include <libpldm/transport/af-mctp.h> 11 #include <libpldm/transport/mctp-demux.h> 43 /** @brief OCC instance starts with 0 for example "occ0" */ 68 * @param[in] occActiveCallBack - callBack handler to invoke when the OCC 70 * @param[in] sbeCallBack - callBack handler to invoke when the SBE 72 * @param[in] safeModeCallBack - callBack handler to invoke when the 74 * @param[in] poweredOffCallBack - callBack handler to invoke when the 122 * sensorId to OCC/SBE instance mapping information and the sensor 125 * @param[in] stateSetId - the state set ID to look for [all …]
|
H A D | pldm.cpp | 3 #include "libpldm/instance-id.h" 12 #include <libpldm/transport/af-mctp.h> 13 #include <libpldm/transport/mctp-demux.h> 16 #include <phosphor-logging/lg2.hpp> 60 "fetchSensorInfo: Failed to find stateSetID:{ID} PDR: {ERR}", in fetchSensorInfo() 61 "ID", stateSetId, "ERR", e.what()); in fetchSensorInfo() 70 lg2::error("fetchSensorInfo: state sensor PDRs ({ID}) not present", in fetchSensorInfo() 71 "ID", stateSetId); in fetchSensorInfo() 87 auto possibleStatesPtr = stateSensorPDR->possible_states; in fetchSensorInfo() 88 for (auto offset = 0; offset < stateSensorPDR->composite_sensor_count; in fetchSensorInfo() [all …]
|
H A D | occ_manager.hpp | 69 /** @brief Adds OCC pass-through and status objects on the bus 72 * @param[in] event - Unique ptr reference to sd_event 117 * @param[in] instance - the OCC instance id 119 void sbeTimeout(unsigned int instance); 123 * @param[out] ambientValid - true if ambientTemp is valid 124 * @param[out] ambient - ambient temperature in degrees C 125 * @param[out] altitude - altitude in meters 135 * @param[in] id - Id of the OCC. 137 void setSensorValueToNaN(uint32_t id) const; 141 * @param[in] id - Id of the OCC. [all …]
|
H A D | occ_manager.cpp | 10 #include <phosphor-logging/elog-errors.hpp> 11 #include <phosphor-logging/lg2.hpp> 31 const auto HOST_ON_FILE = "/run/openbmc/host@0-on"; 77 // - create the PowerMode object to control OCC modes 78 // - create statusObjects for each OCC device found 79 // - waits for OCC Active sensors PDRs to become available 80 // - restart discoverTimer if all data is not available yet 110 discoverTimer->restartOnce(10s); in findAndCreateObjects() 122 for (auto id : occs) in findAndCreateObjects() local 124 createObjects(std::string(OCC_NAME) + std::to_string(id)); in findAndCreateObjects() [all …]
|
/openbmc/u-boot/include/ |
H A D | board.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 9 * board or a specific device such as hard-wired GPIOs on GPIO expanders, 10 * read-only data in flash ICs, or similar. 14 * numeric ID (which will usually be defined as a enum in a header file). 16 * If for example the board had a read-only serial number flash IC, we could 36 * detect() - Run the hardware info detection procedure for this 45 * Return: 0 if OK, -ve on error. 50 * get_bool() - Read a specific bool data value that describes the 52 * @dev: The board instance to gather the data. 53 * @id: A unique identifier for the bool value to be read. [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | pldm.cpp | 7 #include <libpldm/transport/af-mctp.h> 8 #include <libpldm/transport/mctp-demux.h> 26 static PLDMInstanceManager instance; in getInstance() local 27 return instance; in getInstance() 36 * @param[in] eid - MCTP endpoint ID 44 * @param[in] eid - MCTP endpoint ID 56 * @param[in] eid - MCTP endpoint ID 75 // Private member for the instance database 78 /** pldm transport instance */ 81 // type of transport implementation instance [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_occ_map.pl | 36 my $targetObj = Targets->new; 39 $targetObj->{debug} = 1; 44 $targetObj->{force} = 1; 47 $targetObj->loadXML($serverwizFile); 51 foreach my $target (sort keys %{$targetObj->getAllTargets()}) 54 if ("OCC" ne $targetObj->getAttribute($target, "TYPE")) 59 # OCC instance and sensor ID to insert into output file 60 my $instance = ""; 63 # Now that we are in OCC target instance, get the instance number 64 $instance = $targetObj->getAttribute($target, "IPMI_INSTANCE"); [all …]
|
/openbmc/phosphor-host-ipmid/libipmid/ |
H A D | entity_map_json.cpp | 18 static std::unique_ptr<EntityInfoMapContainer> instance; in getContainer() local 20 if (!instance) in getContainer() 22 /* TODO: With multi-threading this would all need to be locked so in getContainer() 26 instance = std::unique_ptr<EntityInfoMapContainer>( in getContainer() 30 return instance.get(); in getContainer() 41 "/usr/share/ipmi-providers/entity-map.json"; in buildEntityMapFromFile() 72 /* It's an array entry with the following fields: id, in buildJsonEntityMap() 77 Id recordId = entry.at("id").get<Id>(); in buildJsonEntityMap() 102 jsonEntities[i].at("id").get<uint8_t>(), in buildJsonEntityMap() 103 jsonEntities[i].at("instance").get<uint8_t>()); in buildJsonEntityMap()
|
/openbmc/openbmc-test-automation/ipmi/dcmi/ |
H A D | test_dcmi_get_temperature_reading.robot | 23 ${dcmi_sensors_info_json_file} /usr/share/ipmi-providers/${config_file_name} 75 # Get this file to client machine /usr/share/ipmi-providers/dcmi_sensors.json 84 ${remove_configuration_file}= Catenate rm -rf ${client_config_file_path} 91 ${instance}= Get From Dictionary ${response} instance 92 Set To Dictionary ${tmp} ${instance} ${sensor_dbus} 99 [Arguments] ${ipmi_resp} ${key} ${instance} 103 # key Entity ID description i.e inlet, cpu, baseboard. 104 # instance instance number 1, 2, .. 107 ${dbus_uri}= Get From Dictionary ${dbus_uris} ${instance} 110 ... '${instance}' == '1' ${3} [all …]
|
/openbmc/qemu/util/ |
H A D | yank.c | 7 * See the COPYING file in the top-level directory. 15 #include "qapi/qapi-commands-yank.h" 16 #include "qapi/qapi-visit-yank.h" 17 #include "qapi/clone-visitor.h" 27 YankInstance *instance; member 37 * OOB-capable commands, it must be "fast", i.e. it may only be held for a 38 * bounded, short time. See docs/devel/qapi-code-gen.rst for additional 48 if (a->type != b->type) { in yank_instance_equal() 52 switch (a->type) { in yank_instance_equal() 54 return g_str_equal(a->u.block_node.node_name, in yank_instance_equal() [all …]
|
/openbmc/openbmc-test-automation/redfish/task_service/ |
H A D | test_tasks_service.robot | 19 ${TIME_REGEXP_PATTERN} (.+)[\\-|\\+]\\d\\d\\:\\d\\d 28 # "@odata.id": "/redfish/v1/TaskService", 31 # "DateTime": "2022-08-08T06:04:11+00:00", 32 # "Id": "TaskService", 42 # "@odata.id": "/redfish/v1/TaskService/Tasks" 66 ... date1_format=%m/%d/%Y %H:%M:%S date2_format=%Y-%m-%dT%H:%M:%S 75 Test Generated Task Instance Validity And Task State 76 [Documentation] Trigger a Redfish event that generates task instance and 77 ... verify the values of generated task instance. 81 # "@odata.id": "/redfish/v1/TaskService/Tasks/3", [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | README.md | 1 # phosphor-hwmon 4 [Sensor Architecture](https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.… 11 2. ninja -C build 13 To clean the repository run `rm -rf build`. 15 ## D-Bus bus names 18 control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs 19 class instance. 21 This requires an algorithm for selecting a stable, well-known D-Bus busname. 23 The algorithm is `<PREFIX>-<ID>.Hwmon<N>` where PREFIX is a meson configurable 24 prefix (`BUSNAME_PREFIX=xyz.openbmc_project` by default), ID is either a [all …]
|
H A D | sysfs.hpp | 9 const std::string& path, const std::string& type, const std::string& id, in make_sysfs_path() argument 16 return path + "/"s + type + id; in make_sysfs_path() 19 return path + "/"s + type + id + "_"s + entry; in make_sysfs_path() 22 /** @brief Return the path to the phandle file matching value in io-channels. 25 * One path is used to find the io-channels file. 28 * The 4 byte phandle value and 4 byte index value is read from io-channels. 31 * @param[in] iochanneldir - Path to file for getting phandle from io-channels 32 * @param[in] phandledir - Path to use for reading from phandle file 34 * @return Path to phandle file with value matching that in io-channels 39 /** @brief Find hwmon instances from an open-firmware device tree path [all …]
|
/openbmc/qemu/include/qom/ |
H A D | object_interfaces.h | 5 #include "qapi/qapi-types-qom.h" 8 #define TYPE_USER_CREATABLE "user-creatable" 26 * Interface is designed to work with -object/object-add/object_add 29 * creatable (i.e. -object/object-add/object_add, will accept only 36 * For objects created without using -object/object-add/object_add, 52 * @uc: the user-creatable object whose complete() method is called if defined 75 * @id: the unique ID for the object 80 * Create an instance of the user creatable object @type, placing 81 * it in the object composition tree with name @id, initializing 86 Object *user_creatable_add_type(const char *type, const char *id, [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | yank.h | 7 * See the COPYING file in the top-level directory. 13 #include "qapi/qapi-types-yank.h" 18 * yank_register_instance: Register a new instance. 20 * This registers a new instance for yanking. Must be called before any yank 21 * function is registered for this instance. 23 * This function is thread-safe. 25 * @instance: The instance. 30 bool yank_register_instance(const YankInstance *instance, Error **errp); 33 * yank_unregister_instance: Unregister a instance. 35 * This unregisters a instance. Must be called only after every yank function [all …]
|
/openbmc/u-boot/board/toradex/common/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0+ 8 The Toradex config block stored production data on the on-module 41 int "Toradex config block eMMC device ID" 45 int "Toradex config block eMMC partition ID" 55 int "Toradex config block offset, second instance" 58 Specify the byte offset of the 2nd instance of the Toradex config block 60 Set to 0 on modules which have no 2nd instance.
|