Get Hardware Registers Information
更新时间: 2026/08/06
在Gitcode上查看源码

Get Hardware Registers Information

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Query the hardware register information.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFn30h
CMD92h
1:3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, subcommand = 22h
5Type (hardware protocol type)
1: CPLD
2: GPIO
3: I2C
4: EDMA
5: CPLD-I2C
Other: reserved
6Chip ID
When Byte5 is 1 (CPLD), the default value is 1. When there are multiple CPLDs, the value can be changed as required.
When Byte 5 is set to 2 (GPIO), the default value is 1.
When Byte 5 is 3 (I2C), it indicates the bus ID. That is, if I2C_1 is used, this field is filled with 1.
When Byte5 is set to 4 (EDMA), this field is set to 0.
When Byte5 is 5 (CPLD-I2C), this field indicates slot_id.
7:8Addr (component address), LS-byte first
This field is valid only when BYTE5 is set to 3. In other cases, the default value 0 is used.
9:10Offset (offset), LS-byte first
01 00: indicates one byte offset.
When Byte 5 is 5 (CPLD-I2C), this field indicates the CMD issued to the chip.
11Length (length of the data to be read, 1-32 bytes)
(12)Total length of the extended byte
(13)Bus ID of the level-1 PCA9545 input connection. This field is valid when Byte5 is 3.
(14:15)Level-1 PCA9545 Addr (component address). This field is valid when LS-byte first Byte5 is 3.
(16)Bus ID of the level-2 PCA9545 input connection. This field is valid when Byte5 is 3.
(17:18)Level-2 PCA9545 Addr (component address). This field is valid when LS-byte first Byte5 is 3.
(19)Bus ID of the level-3 PCA9545 input connection. This field is valid when Byte5 is 3.
(20:21)Level-3 PCA9545 Addr (component address). This field is valid when LS-byte first Byte5 is 3.
...... (Currently, a maximum of eight levels are supported.)

Response Information

ByteData Field
1Completion Code
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
5:NData. The length of the returned data may be less than or equal to the length of the read data.

Command Example

Query CPLD register configurations.

Request:

bash
ipmicmd -k "0f 00 30 92 DB 07 00 22 01 01 00 00 32 00 01" smi 0

Response:

text
0f 31 00 92 00 db 07 00 02

Back to Index