OpenBIC
OpenSource Bridge-IC
plat_ipmi.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "ipmi.h"
#include "libutil.h"
#include "plat_class.h"
#include "plat_m2.h"
#include "plat_led.h"
#include "plat_power_seq.h"
#include <logging/log.h>
Include dependency graph for plat_ipmi.c:

Macros

#define DRIVE_PWR_OFF   0 /* normal device power off/on */
 
#define DRIVE_PWR_ON   1
 
#define DRIVE_GET_STATE   3
 
#define DRIVE_PWR_OFF_BY_PWRDIS   4 /* power off/on device by PWRDIS pin */
 
#define DRIVE_PWR_ON_BY_PWRDIS   5
 
#define DRIVE_PWR_OFF_ALL   6 /* power off/on device by PWRDIS/12V/3V3 */
 
#define DRIVE_PWR_ON_ALL   7
 
#define DRIVE_PWR_OFF_BY_12V_3V3   8 /* power off/on device by 12V/3V3 */
 
#define DRIVE_PWR_ON_BY_12V_3V3   9
 

Functions

 LOG_MODULE_REGISTER (plat_ipmi)
 
uint32_t get_iana (uint8_t *iana_buf)
 
void OEM_1S_GET_BOARD_ID (ipmi_msg *msg)
 
void OEM_1S_SET_SSD_LED (ipmi_msg *msg)
 
void OEM_1S_GET_SSD_STATUS (ipmi_msg *msg)
 
void OEM_1S_GET_SET_M2 (ipmi_msg *msg)
 

Macro Definition Documentation

◆ DRIVE_GET_STATE

#define DRIVE_GET_STATE   3

◆ DRIVE_PWR_OFF

#define DRIVE_PWR_OFF   0 /* normal device power off/on */

◆ DRIVE_PWR_OFF_ALL

#define DRIVE_PWR_OFF_ALL   6 /* power off/on device by PWRDIS/12V/3V3 */

◆ DRIVE_PWR_OFF_BY_12V_3V3

#define DRIVE_PWR_OFF_BY_12V_3V3   8 /* power off/on device by 12V/3V3 */

◆ DRIVE_PWR_OFF_BY_PWRDIS

#define DRIVE_PWR_OFF_BY_PWRDIS   4 /* power off/on device by PWRDIS pin */

◆ DRIVE_PWR_ON

#define DRIVE_PWR_ON   1

◆ DRIVE_PWR_ON_ALL

#define DRIVE_PWR_ON_ALL   7

◆ DRIVE_PWR_ON_BY_12V_3V3

#define DRIVE_PWR_ON_BY_12V_3V3   9

◆ DRIVE_PWR_ON_BY_PWRDIS

#define DRIVE_PWR_ON_BY_PWRDIS   5

Function Documentation

◆ get_iana()

uint32_t get_iana ( uint8_t *  iana_buf)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_ipmi  )

◆ OEM_1S_GET_BOARD_ID()

void OEM_1S_GET_BOARD_ID ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_SET_M2()

void OEM_1S_GET_SET_M2 ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_SSD_STATUS()

void OEM_1S_GET_SSD_STATUS ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_SET_SSD_LED()

void OEM_1S_SET_SSD_LED ( ipmi_msg msg)
Here is the call graph for this function: