Set Commands Enables 命令详情
更新时间:2025/06/26
在Gitcode上查看源码修订记录
| openUBMC版本号 | 修订日期 | 修订人 | 修订内容 |
|---|---|---|---|
| 25.06 | 2025/06/26 | pengqiang-gs | 初稿,新增命令详情 |
基本信息
功能说明
标准命令,在给定的通道和 NetFn 上指定使能命令。 This command enables software to enable/disable commands for a given channel/netFn/LUN.
权限
UserMgmt
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Channel Number [7:4] - reserved [3:0] - channel number. 0h-Bh, Fh = channel numbers Eh = retrieve information for channel this request was issued on. |
| 2 | [7:6] - Operation. The enable/disable settings are non-volatile. The management controller must reject all new settings (must not change present settings) if there is any error in the command (non-zero completion code returned). 00b = Set enable/disables for commands 00h through 7Fh. 01b = Set enables/disables for commands 80h through FFh. 10b, 11b = reserved. [5:0] - NetFn. Network function code to set command support for. The management controller will set the same values for odd or even NetFn values. I.e. the value for bit [0] is ignored. |
| 3 | [7:2] - reserved [1:0] - LUN |
| 4:19 | Enable/Disable Mask These sixteen bytes form a 128-bit bitfield where each bit controls the enable/disable of a particular command value under the given NetFn. For each bit in the bitfield: 0b = disables the command 1b = enables the command Note that if a bit position corresponds to a command that is not configurable, the BMC will return an error if an attempt is made to change the enabled/disabled state for that command. I.e. if the bit is fixed at 0b, and error will be generated if an attempt is made to set it to 1b, and vice versa. Software can use the Get Configurable Commands command and the Get Command Enables command together to process the bits for this command to ensure setting the correct state. Depending on the value of the “Operation” parameter passed in the request: byte 1, bit 0 corresponds to command 00h or command 80h byte 1, bit 7 corresponds to command 07h or command 87h … byte 16, bit 0 correspond to command 78h or command F8h byte 16, bit 7 corresponds to command 7Fh or command FFh |
| (20:22) | For Network Function = 2Ch: 只有一个字节有效。 Defining body code (See description for Network Function 2Ch/2Dh in Network Function Codes) For Network Function = 2Eh: 有三个字节。 OEM or group IANA supported for given Network Function code on returned LUNs. LS byte first. (See description for Network Function 2Eh/2Fh in Network Function Codes) |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code Generic codes, plus following command-specific completion code(s): 80h = attempt to enable an unsupported or un-configurable command. |
命令样例
样例1:通道1上使能 NetFn 为 06h 的所有命令
- 请求:
- 响应: