build: Migrate to meson and add clang-format

Removed the Cmake files and cleanup formatting errors.

Change-Id: I787041507d3ff6afc6b4a3af3930e8d8363c9570
Signed-off-by: Willy Tu <wltu@google.com>
12 files changed
tree: f450e30af160587a39a17f1f3204994839293a78
  1. include/
  2. src/
  3. .clang-format
  4. generate-whitelist.py
  5. ipmi-whitelist.conf
  6. LICENSE
  7. MAINTAINERS
  8. meson.build
  9. OWNERS
  10. README.md
README.md

Fii IPMI OEM Commands (0x34)

There are and will be a variety of sys specific commands.

System Commands (0x h)

PCIe Bifurcation Command 0x03

The PCIe bifurcation command checks the type of pcei adapter instailled in each slot.

Request

Byte(s)ValueData
0x000x03Subcommand

Response

Byte(s)ValueData
0x000x03Subcommand
0x010x--Bifurcation each bit identified the slot support x16(1b) or x8(0b)
0x020x--Present bit each bit identified PCIe adapter installed(0b) or not(1b)

Example

#CommandExample
1Read the informationipmitool 0x34 0x03

BIOS Related Commands (0x7X)

BIOS Boot Count 0x71

This is a 32 bits register that provides bios pushs the boot counter to BMC, or get the boot counter from BMC.

Request

Byte(s)ValueDescription
0x000x71Subcommand
0x01Op valueOperation to be performed
0x02-0x05byte0 byte1 byte2 byte332-bit Count value for set operation
Op valueOperation to be performed
0x00Read boot count value
0x01Increment boot count value.
0x02Clear boot count value
0x03Set the boot count with given 4 byte value

Response

Byte(s)ValueDescription
0x00CCCompletion code returned
0x01--Byte 0 of boot count
0x02--Byte 1 of boot count
0x03--Byte 2 of boot count
0x04--Byte 3 of boot count

Completion Codes (CC)

CCDescription
0xC1Invalid Command
0x00Command Success
0xC7Data length Invalid

Example

#CommandExample
1Read the boot countipmitool raw 0x34 0x71 0x00
2Increment the boot count by 1ipmitool raw 0x34 0x71 0x01
3Clear the boot count to all 0'sipmitool raw 0x34 0x71 0x02
4Set the boot count to given valueipmitool raw 0x34 0x71 0x03 byte0 byte1 byte2 byte3