coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ipmi_ocp.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pnp.h>
#include <drivers/ipmi/ipmi_kcs.h>
#include <drivers/ocp/dmi/ocp_dmi.h>
#include <types.h>
#include "ipmi_ocp.h"
Include dependency graph for ipmi_ocp.c:

Go to the source code of this file.

Functions

static enum cb_err ipmi_set_ppin (struct device *dev)
 
static void ipmi_ocp_init (struct device *dev)
 
static void ipmi_ocp_final (struct device *dev)
 
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 struct device_operations ops
 
struct chip_operations drivers_ipmi_ocp_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 84 of file ipmi_ocp.c.

◆ ipmi_ocp_final()

static void ipmi_ocp_final ( struct device dev)
static

Definition at line 48 of file ipmi_ocp.c.

References CONFIG, and ipmi_set_ppin().

Here is the call graph for this function:

◆ ipmi_ocp_init()

static void ipmi_ocp_init ( struct device dev)
static

Definition at line 43 of file ipmi_ocp.c.

◆ ipmi_read_resources()

static void ipmi_read_resources ( struct device dev)
static

Definition at line 69 of file ipmi_ocp.c.

References resource::base, resource::flags, IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_IO, new_resource(), device::path, device_path::pnp, pnp_path::port, and resource::size.

Here is the call graph for this function:

◆ ipmi_set_ppin()

static enum cb_err ipmi_set_ppin ( struct device dev)
static

◆ ipmi_set_resources()

static void ipmi_set_resources ( struct device dev)
static

Definition at line 56 of file ipmi_ocp.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

◆ drivers_ipmi_ocp_ops

struct chip_operations drivers_ipmi_ocp_ops
Initial value:
= {
.enable_dev = enable_dev,
}
static void enable_dev(struct device *dev)
Definition: ipmi_ocp.c:84

Definition at line 84 of file ipmi_ocp.c.

◆ ops

struct device_operations ops
static
Initial value:
= {
.read_resources = ipmi_read_resources,
.set_resources = ipmi_set_resources,
.init = ipmi_ocp_init,
.final = ipmi_ocp_final,
}
static void ipmi_read_resources(struct device *dev)
Definition: ipmi_ocp.c:69
static void ipmi_ocp_final(struct device *dev)
Definition: ipmi_ocp.c:48
static void ipmi_set_resources(struct device *dev)
Definition: ipmi_ocp.c:56
static void ipmi_ocp_init(struct device *dev)
Definition: ipmi_ocp.c:43

Definition at line 69 of file ipmi_ocp.c.