coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ipmi_kcs_ops.c File Reference
#include <arch/io.h>
#include <bootstate.h>
#include <console/console.h>
#include <device/device.h>
#include <device/gpio.h>
#include <device/pnp.h>
#include <version.h>
#include <delay.h>
#include <timer.h>
#include "ipmi_kcs.h"
#include "ipmi_supermicro_oem.h"
#include "chip.h"
Include dependency graph for ipmi_kcs_ops.c:

Go to the source code of this file.

Functions

static int ipmi_get_device_id (struct device *dev, struct ipmi_devid_rsp *rsp)
 
static int ipmi_get_bmc_self_test_result (struct device *dev, struct ipmi_selftest_rsp *rsp)
 
static void bmc_set_post_complete_gpio_callback (void *arg)
 
static void ipmi_kcs_init (struct device *dev)
 
void ipmi_bmc_version (uint8_t *ipmi_bmc_major_revision, uint8_t *ipmi_bmc_minor_revision)
 
static void ipmi_set_resources (struct device *dev)
 
static void ipmi_read_resources (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static u8 ipmi_revision_major = 0x1
 
static u8 ipmi_revision_minor = 0x0
 
static u8 bmc_revision_major = 0x0
 
static u8 bmc_revision_minor = 0x0
 
static struct boot_state_callback bscb_post_complete
 
static struct device_operations ops
 
struct chip_operations drivers_ipmi_ops
 

Function Documentation

◆ bmc_set_post_complete_gpio_callback()

static void bmc_set_post_complete_gpio_callback ( void arg)
static

Definition at line 80 of file ipmi_kcs_ops.c.

References arg, BIOS_DEBUG, BIOS_WARNING, dev_get_gpio_ops(), drivers_ipmi_config::gpio_dev, gpio_ops, gpio_operations::output, drivers_ipmi_config::post_complete_gpio, drivers_ipmi_config::post_complete_invert, and printk.

Referenced by ipmi_kcs_init().

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

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 429 of file ipmi_kcs_ops.c.

◆ 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_get_bmc_self_test_result()

static int ipmi_get_bmc_self_test_result ( struct device dev,
struct ipmi_selftest_rsp rsp 
)
static

Definition at line 59 of file ipmi_kcs_ops.c.

References BIOS_ERR, ipmi_rsp::completion_code, IPMI_BMC_GET_SELFTEST_RESULTS, ipmi_kcs_message(), IPMI_NETFN_APPLICATION, NULL, device::path, device_path::pnp, pnp_path::port, printk, and ipmi_selftest_rsp::resp.

Referenced by ipmi_kcs_init().

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

◆ ipmi_get_device_id()

static int ipmi_get_device_id ( struct device dev,
struct ipmi_devid_rsp rsp 
)
static

Definition at line 40 of file ipmi_kcs_ops.c.

References BIOS_ERR, ipmi_rsp::completion_code, IPMI_BMC_GET_DEVICE_ID, ipmi_kcs_message(), IPMI_NETFN_APPLICATION, NULL, device::path, device_path::pnp, pnp_path::port, printk, and ipmi_devid_rsp::resp.

Referenced by ipmi_kcs_init().

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

◆ ipmi_kcs_init()

◆ ipmi_read_resources()

static void ipmi_read_resources ( struct device dev)
static

◆ ipmi_set_resources()

static void ipmi_set_resources ( struct device dev)
static

Definition at line 395 of file ipmi_kcs_ops.c.

References resource::flags, IORESOURCE_ASSIGNED, IORESOURCE_STORED, resource::next, report_resource_stored(), and device::resource_list.

Here is the call graph for this function:

Variable Documentation

◆ bmc_revision_major

u8 bmc_revision_major = 0x0
static

Definition at line 35 of file ipmi_kcs_ops.c.

Referenced by ipmi_bmc_version(), and ipmi_kcs_init().

◆ bmc_revision_minor

u8 bmc_revision_minor = 0x0
static

Definition at line 36 of file ipmi_kcs_ops.c.

Referenced by ipmi_bmc_version(), and ipmi_kcs_init().

◆ bscb_post_complete

struct boot_state_callback bscb_post_complete
static

Definition at line 36 of file ipmi_kcs_ops.c.

Referenced by ipmi_kcs_init().

◆ drivers_ipmi_ops

struct chip_operations drivers_ipmi_ops
Initial value:
= {
.enable_dev = enable_dev,
}
static void enable_dev(struct device *dev)
Definition: ipmi_kcs_ops.c:429

Definition at line 429 of file ipmi_kcs_ops.c.

◆ ipmi_revision_major

u8 ipmi_revision_major = 0x1
static

Definition at line 32 of file ipmi_kcs_ops.c.

Referenced by ipmi_kcs_init().

◆ ipmi_revision_minor

u8 ipmi_revision_minor = 0x0
static

Definition at line 33 of file ipmi_kcs_ops.c.

Referenced by ipmi_kcs_init().

◆ ops