openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
ipmi_oem.c File Reference
#include "ipmi_oem.h"
#include "port.h"
#include "i2c.h"
Include dependency graph for ipmi_oem.c:

Functions

 IPMI_HANDLER (ipmi_oem_cmd_i2c_transfer, NETFN_CUSTOM_OEM, IPMI_OEM_CMD_I2C_TRANSFER, ipmi_msg *req, ipmi_msg *rsp)
 Handler for IPMI_OEM_CMD_I2C_TRANSFER IPMI command.
 
 IPMI_HANDLER (ipmi_oem_cmd_gpio_pin, NETFN_CUSTOM_OEM, IPMI_OEM_CMD_GPIO_PIN, ipmi_msg *req, ipmi_msg *rsp)
 Handler for IPMI_OEM_CMD_GPIO IPMI command.
 

Function Documentation

◆ IPMI_HANDLER() [1/2]

IPMI_HANDLER ( ipmi_oem_cmd_gpio_pin ,
NETFN_CUSTOM_OEM ,
IPMI_OEM_CMD_GPIO_PIN ,
ipmi_msg * req,
ipmi_msg * rsp )

Handler for IPMI_OEM_CMD_GPIO IPMI command.

Access and configure the controller's GPIO

Req data: [0] - Mode - (0) = Read port status (direction and value) (1) = Set pin as input (2) = Set pin as output (pin value is on byte 3) [1] - GPIO Port number [2] - GPIO Pin number [3] - Output pin value (optional)

Parameters
req[in]
rsp[out]
Returns

◆ IPMI_HANDLER() [2/2]

IPMI_HANDLER ( ipmi_oem_cmd_i2c_transfer ,
NETFN_CUSTOM_OEM ,
IPMI_OEM_CMD_I2C_TRANSFER ,
ipmi_msg * req,
ipmi_msg * rsp )

Handler for IPMI_OEM_CMD_I2C_TRANSFER IPMI command.

Performs a raw I2C master read on the selected bus and return the data Req data: [0] - Bus ID

See also
i2c_mapping.h [1] - #Chip/Address identification - (0) = ChipID identification on byte 2 (1) = I2C Address identification on byte 2 [2] - ChipID/I2C_Address - 8 bit address [3] - Data Write len (n) [4] - Data to Write [4+n] - Data Read len (m)
Parameters
req[in]
rsp[out]
Returns