coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
supermicro_oem.c File Reference
#include <types.h>
#include <console/console.h>
#include <drivers/ipmi/ipmi_kcs.h>
#include <string.h>
#include <build.h>
#include "ipmi_supermicro_oem.h"
Include dependency graph for supermicro_oem.c:

Go to the source code of this file.

Data Structures

struct  ipmi_oem_set_bios_str
 

Macros

#define IPMI_NETFN_OEM   0x30
 
#define IPMI_LUN0_AC_SET_BIOS_VER   0x100
 
#define IPMI_LUN0_AC_SET_BIOS_DATE   0x101
 
#define IPMI_LUN0_SET_BIOS_STRING   0xac
 

Functions

static void set_coreboot_ver (const uint16_t kcs_port)
 
static void set_coreboot_date (const uint16_t kcs_port)
 
void supermicro_ipmi_oem (const uint16_t kcs_port)
 

Variables

struct ipmi_oem_set_bios_str __packed
 

Macro Definition Documentation

◆ IPMI_LUN0_AC_SET_BIOS_DATE

#define IPMI_LUN0_AC_SET_BIOS_DATE   0x101

Definition at line 13 of file supermicro_oem.c.

◆ IPMI_LUN0_AC_SET_BIOS_VER

#define IPMI_LUN0_AC_SET_BIOS_VER   0x100

Definition at line 12 of file supermicro_oem.c.

◆ IPMI_LUN0_SET_BIOS_STRING

#define IPMI_LUN0_SET_BIOS_STRING   0xac

Definition at line 14 of file supermicro_oem.c.

◆ IPMI_NETFN_OEM

#define IPMI_NETFN_OEM   0x30

Definition at line 11 of file supermicro_oem.c.

Function Documentation

◆ set_coreboot_date()

static void set_coreboot_date ( const uint16_t  kcs_port)
static

Definition at line 47 of file supermicro_oem.c.

References BIOS_ERR, ipmi_rsp::completion_code, ipmi_kcs_message(), IPMI_LUN0_AC_SET_BIOS_DATE, IPMI_LUN0_SET_BIOS_STRING, IPMI_NETFN_OEM, printk, ipmi_oem_set_bios_str::str, strncpy(), and ipmi_oem_set_bios_str::ver.

Referenced by supermicro_ipmi_oem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_coreboot_ver()

static void set_coreboot_ver ( const uint16_t  kcs_port)
static

Definition at line 21 of file supermicro_oem.c.

References BIOS_ERR, ipmi_rsp::completion_code, ipmi_kcs_message(), IPMI_LUN0_AC_SET_BIOS_VER, IPMI_LUN0_SET_BIOS_STRING, IPMI_NETFN_OEM, printk, ipmi_oem_set_bios_str::str, and ipmi_oem_set_bios_str::ver.

Referenced by supermicro_ipmi_oem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ supermicro_ipmi_oem()

void supermicro_ipmi_oem ( const uint16_t  kcs_port)

Definition at line 66 of file supermicro_oem.c.

References set_coreboot_date(), and set_coreboot_ver().

Referenced by ipmi_kcs_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __packed