coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ipmi_ocp.h File Reference
Include dependency graph for ipmi_ocp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ppin_req
 
struct  boot_order
 

Macros

#define IPMI_NETFN_OEM   0x30
 
#define IPMI_OEM_SET_PPIN   0x77
 
#define IPMI_BMC_SET_POST_START   0x73
 
#define IPMI_OEM_SET_BIOS_BOOT_ORDER   0x52
 
#define IPMI_OEM_GET_BIOS_BOOT_ORDER   0x53
 
#define CMOS_BIT   (1 << 1)
 
#define VALID_BIT   (1 << 7)
 
#define CLEAR_CMOS_AND_VALID_BIT(x)   ((x) &= ~(CMOS_BIT | VALID_BIT))
 
#define SET_CMOS_AND_VALID_BIT(x)   ((x) |= (CMOS_BIT | VALID_BIT))
 
#define IS_CMOS_AND_VALID_BIT(x)   ((x)&CMOS_BIT && (x)&VALID_BIT)
 

Functions

enum cb_err ipmi_set_post_start (const int port)
 
enum cb_err ipmi_set_cmos_clear (void)
 

Variables

struct ppin_req __packed
 

Macro Definition Documentation

◆ CLEAR_CMOS_AND_VALID_BIT

#define CLEAR_CMOS_AND_VALID_BIT (   x)    ((x) &= ~(CMOS_BIT | VALID_BIT))

Definition at line 16 of file ipmi_ocp.h.

◆ CMOS_BIT

#define CMOS_BIT   (1 << 1)

Definition at line 14 of file ipmi_ocp.h.

◆ IPMI_BMC_SET_POST_START

#define IPMI_BMC_SET_POST_START   0x73

Definition at line 10 of file ipmi_ocp.h.

◆ IPMI_NETFN_OEM

#define IPMI_NETFN_OEM   0x30

Definition at line 8 of file ipmi_ocp.h.

◆ IPMI_OEM_GET_BIOS_BOOT_ORDER

#define IPMI_OEM_GET_BIOS_BOOT_ORDER   0x53

Definition at line 12 of file ipmi_ocp.h.

◆ IPMI_OEM_SET_BIOS_BOOT_ORDER

#define IPMI_OEM_SET_BIOS_BOOT_ORDER   0x52

Definition at line 11 of file ipmi_ocp.h.

◆ IPMI_OEM_SET_PPIN

#define IPMI_OEM_SET_PPIN   0x77

Definition at line 9 of file ipmi_ocp.h.

◆ IS_CMOS_AND_VALID_BIT

#define IS_CMOS_AND_VALID_BIT (   x)    ((x)&CMOS_BIT && (x)&VALID_BIT)

Definition at line 18 of file ipmi_ocp.h.

◆ SET_CMOS_AND_VALID_BIT

#define SET_CMOS_AND_VALID_BIT (   x)    ((x) |= (CMOS_BIT | VALID_BIT))

Definition at line 17 of file ipmi_ocp.h.

◆ VALID_BIT

#define VALID_BIT   (1 << 7)

Definition at line 15 of file ipmi_ocp.h.

Function Documentation

◆ ipmi_set_cmos_clear()

enum cb_err ipmi_set_cmos_clear ( void  )

Definition at line 1 of file ipmi_ocp_romstage.c.

References BIOS_DEBUG, BIOS_ERR, CB_ERR, CB_SUCCESS, ipmi_rsp::completion_code, IPMI_BMC_SET_POST_START, ipmi_kcs_message(), IPMI_NETFN_OEM, NULL, and printk.

Referenced by mainboard_rtc_failed().

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

◆ ipmi_set_post_start()

enum cb_err ipmi_set_post_start ( const int  port)

Definition at line 1 of file ipmi_ocp_romstage.c.

Referenced by mainboard_memory_init_params().

Here is the caller graph for this function:

Variable Documentation

◆ __packed