OpenBIC
OpenSource Bridge-IC
plat_ipmi.c File Reference
#include "plat_ipmi.h"
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include <drivers/flash.h>
#include "libutil.h"
#include "ipmi.h"
#include "eeprom.h"
#include "hal_gpio.h"
#include "oem_1s_handler.h"
#include "plat_fru.h"
#include "plat_class.h"
#include "plat_spi.h"
#include "util_spi.h"
Include dependency graph for plat_ipmi.c:

Macros

#define WORK_AROUND_BIOS_DEBUG_PIN_IDX   62
 
#define WORK_AROUND_BIOS_DEBUG_PIN_IDX_REAL   23
 
#define VIRTUAL_E1S_PRSNT_PIN_IDX   63
 
#define VIRTUAL_E1S_PRSNT_PIN_IDX_REAL   55
 
#define VIRTUAL_RETIMER_PRSNT_PIN_IDX   64
 
#define VIRTUAL_RETIMER_PRSNT_PIN_IDX_REAL   58
 
#define VIRTUAL_SATMC_READY_PIN_IDX   65
 
#define VIRTUAL_SATMC_READY_PIN_IDX_REAL   59
 
#define CMET_INFO_OFFSET_1   0xc0000
 
#define CMET_INFO_OFFSET_2   0xd0000
 
#define CLEAR_BYTE_START_OFFSET_NUM   2
 
#define CLEAR_BYTE_TOTAL_NUM   4
 

Functions

 LOG_MODULE_REGISTER (plat_ipmi)
 
bool pal_request_msg_to_BIC_from_HOST (uint8_t netfn, uint8_t cmd)
 
bool pal_immediate_respond_from_HOST (uint8_t netfn, uint8_t cmd)
 
int pal_record_bios_fw_version (uint8_t *buf, uint8_t size)
 
void OEM_1S_GET_CARD_TYPE (ipmi_msg *msg)
 
void OEM_1S_GET_BIOS_VERSION (ipmi_msg *msg)
 
void OEM_1S_GET_GPIO (ipmi_msg *msg)
 
uint8_t gpio_idx_exchange (ipmi_msg *msg)
 
void OEM_1S_CLEAR_CMET (ipmi_msg *msg)
 

Macro Definition Documentation

◆ CLEAR_BYTE_START_OFFSET_NUM

#define CLEAR_BYTE_START_OFFSET_NUM   2

◆ CLEAR_BYTE_TOTAL_NUM

#define CLEAR_BYTE_TOTAL_NUM   4

◆ CMET_INFO_OFFSET_1

#define CMET_INFO_OFFSET_1   0xc0000

◆ CMET_INFO_OFFSET_2

#define CMET_INFO_OFFSET_2   0xd0000

◆ VIRTUAL_E1S_PRSNT_PIN_IDX

#define VIRTUAL_E1S_PRSNT_PIN_IDX   63

◆ VIRTUAL_E1S_PRSNT_PIN_IDX_REAL

#define VIRTUAL_E1S_PRSNT_PIN_IDX_REAL   55

◆ VIRTUAL_RETIMER_PRSNT_PIN_IDX

#define VIRTUAL_RETIMER_PRSNT_PIN_IDX   64

◆ VIRTUAL_RETIMER_PRSNT_PIN_IDX_REAL

#define VIRTUAL_RETIMER_PRSNT_PIN_IDX_REAL   58

◆ VIRTUAL_SATMC_READY_PIN_IDX

#define VIRTUAL_SATMC_READY_PIN_IDX   65

◆ VIRTUAL_SATMC_READY_PIN_IDX_REAL

#define VIRTUAL_SATMC_READY_PIN_IDX_REAL   59

◆ WORK_AROUND_BIOS_DEBUG_PIN_IDX

#define WORK_AROUND_BIOS_DEBUG_PIN_IDX   62

◆ WORK_AROUND_BIOS_DEBUG_PIN_IDX_REAL

#define WORK_AROUND_BIOS_DEBUG_PIN_IDX_REAL   23

Function Documentation

◆ gpio_idx_exchange()

uint8_t gpio_idx_exchange ( ipmi_msg msg)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_ipmi  )

◆ OEM_1S_CLEAR_CMET()

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

◆ OEM_1S_GET_BIOS_VERSION()

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

◆ OEM_1S_GET_CARD_TYPE()

void OEM_1S_GET_CARD_TYPE ( ipmi_msg msg)

◆ OEM_1S_GET_GPIO()

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

◆ pal_immediate_respond_from_HOST()

bool pal_immediate_respond_from_HOST ( uint8_t  netfn,
uint8_t  cmd 
)

◆ pal_record_bios_fw_version()

int pal_record_bios_fw_version ( uint8_t *  buf,
uint8_t  size 
)
Here is the call graph for this function:

◆ pal_request_msg_to_BIC_from_HOST()

bool pal_request_msg_to_BIC_from_HOST ( uint8_t  netfn,
uint8_t  cmd 
)