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

Go to the source code of this file.

Data Structures

struct  ipmi_rsp
 
struct  ipmi_devid_rsp
 
struct  ipmi_selftest_rsp
 

Macros

#define IPMI_NETFN_CHASSIS   0x00
 
#define IPMI_NETFN_BRIDGE   0x02
 
#define IPMI_NETFN_SENSOREVENT   0x04
 
#define IPMI_NETFN_APPLICATION   0x06
 
#define IPMI_BMC_GET_DEVICE_ID   0x01
 
#define IPMI_IPMI_VERSION_MINOR(x)   ((x) >> 4)
 
#define IPMI_IPMI_VERSION_MAJOR(x)   ((x) & 0xf)
 
#define IPMI_BMC_GET_SELFTEST_RESULTS   0x04
 
#define IPMI_APP_SELFTEST_RESERVED   0xFF
 
#define IPMI_APP_SELFTEST_NO_ERROR   0x55
 
#define IPMI_APP_SELFTEST_NOT_IMPLEMENTED   0x56
 
#define IPMI_APP_SELFTEST_ERROR   0x57
 
#define IPMI_APP_SELFTEST_FATAL_HW_ERROR   0x58
 
#define IPMI_NETFN_FIRMWARE   0x08
 
#define IPMI_NETFN_STORAGE   0x0a
 
#define IPMI_READ_FRU_DATA   0x11
 
#define IPMI_ADD_SEL_ENTRY   0x44
 
#define IPMI_NETFN_TRANSPORT   0x0c
 
#define IPMI_CMD_ACPI_POWERON   0x06
 

Functions

int ipmi_kcs_message (int port, int netfn, int lun, int cmd, const unsigned char *inmsg, int inlen, unsigned char *outmsg, int outlen)
 
enum cb_err ipmi_kcs_premem_init (const u16 port, const u16 device)
 
void ipmi_bmc_version (uint8_t *ipmi_bmc_major_revision, uint8_t *ipmi_bmc_minor_revision)
 

Variables

struct ipmi_rsp __packed
 

Macro Definition Documentation

◆ IPMI_ADD_SEL_ENTRY

#define IPMI_ADD_SEL_ENTRY   0x44

Definition at line 23 of file ipmi_kcs.h.

◆ IPMI_APP_SELFTEST_ERROR

#define IPMI_APP_SELFTEST_ERROR   0x57

Definition at line 17 of file ipmi_kcs.h.

◆ IPMI_APP_SELFTEST_FATAL_HW_ERROR

#define IPMI_APP_SELFTEST_FATAL_HW_ERROR   0x58

Definition at line 18 of file ipmi_kcs.h.

◆ IPMI_APP_SELFTEST_NO_ERROR

#define IPMI_APP_SELFTEST_NO_ERROR   0x55

Definition at line 15 of file ipmi_kcs.h.

◆ IPMI_APP_SELFTEST_NOT_IMPLEMENTED

#define IPMI_APP_SELFTEST_NOT_IMPLEMENTED   0x56

Definition at line 16 of file ipmi_kcs.h.

◆ IPMI_APP_SELFTEST_RESERVED

#define IPMI_APP_SELFTEST_RESERVED   0xFF

Definition at line 14 of file ipmi_kcs.h.

◆ IPMI_BMC_GET_DEVICE_ID

#define IPMI_BMC_GET_DEVICE_ID   0x01

Definition at line 10 of file ipmi_kcs.h.

◆ IPMI_BMC_GET_SELFTEST_RESULTS

#define IPMI_BMC_GET_SELFTEST_RESULTS   0x04

Definition at line 13 of file ipmi_kcs.h.

◆ IPMI_CMD_ACPI_POWERON

#define IPMI_CMD_ACPI_POWERON   0x06

Definition at line 26 of file ipmi_kcs.h.

◆ IPMI_IPMI_VERSION_MAJOR

#define IPMI_IPMI_VERSION_MAJOR (   x)    ((x) & 0xf)

Definition at line 12 of file ipmi_kcs.h.

◆ IPMI_IPMI_VERSION_MINOR

#define IPMI_IPMI_VERSION_MINOR (   x)    ((x) >> 4)

Definition at line 11 of file ipmi_kcs.h.

◆ IPMI_NETFN_APPLICATION

#define IPMI_NETFN_APPLICATION   0x06

Definition at line 9 of file ipmi_kcs.h.

◆ IPMI_NETFN_BRIDGE

#define IPMI_NETFN_BRIDGE   0x02

Definition at line 7 of file ipmi_kcs.h.

◆ IPMI_NETFN_CHASSIS

#define IPMI_NETFN_CHASSIS   0x00

Definition at line 6 of file ipmi_kcs.h.

◆ IPMI_NETFN_FIRMWARE

#define IPMI_NETFN_FIRMWARE   0x08

Definition at line 20 of file ipmi_kcs.h.

◆ IPMI_NETFN_SENSOREVENT

#define IPMI_NETFN_SENSOREVENT   0x04

Definition at line 8 of file ipmi_kcs.h.

◆ IPMI_NETFN_STORAGE

#define IPMI_NETFN_STORAGE   0x0a

Definition at line 21 of file ipmi_kcs.h.

◆ IPMI_NETFN_TRANSPORT

#define IPMI_NETFN_TRANSPORT   0x0c

Definition at line 24 of file ipmi_kcs.h.

◆ IPMI_READ_FRU_DATA

#define IPMI_READ_FRU_DATA   0x11

Definition at line 22 of file ipmi_kcs.h.

Function Documentation

◆ ipmi_bmc_version()

void ipmi_bmc_version ( uint8_t ipmi_bmc_major_revision,
uint8_t ipmi_bmc_minor_revision 
)

Definition at line 334 of file ipmi_kcs_ops.c.

References BIOS_ERR, bmc_revision_major, bmc_revision_minor, and printk.

Referenced by smbios_ec_revision().

Here is the caller graph for this function:

◆ ipmi_kcs_message()

int ipmi_kcs_message ( int  port,
int  netfn,
int  lun,
int  cmd,
const unsigned char *  inmsg,
int  inlen,
unsigned char *  outmsg,
int  outlen 
)

Definition at line 222 of file ipmi_kcs.c.

References BIOS_ERR, ipmi_kcs_read_message(), ipmi_kcs_send_message(), and printk.

Referenced by ipmi_add_sel(), ipmi_get_bmc_self_test_result(), ipmi_get_device_id(), ipmi_get_pcie_config(), ipmi_set_cmos_clear(), ipmi_set_ppin(), set_coreboot_date(), and set_coreboot_ver().

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

◆ ipmi_kcs_premem_init()

enum cb_err ipmi_kcs_premem_init ( const u16  port,
const u16  device 
)

Definition at line 12 of file ipmi_kcs_ops_premem.c.

Referenced by mainboard_memory_init_params().

Here is the caller graph for this function:

Variable Documentation

◆ __packed