coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
generic.c File Reference
#include <device/device.h>
#include <device/pnp.h>
#include <acpi/acpigen.h>
#include <console/console.h>
Include dependency graph for generic.c:

Go to the source code of this file.

Functions

static void generic_set_resources (struct device *dev)
 
static void generic_read_resources (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static struct device_operations ops
 
struct chip_operations superio_common_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 309 of file generic.c.

References BIOS_ERR, dev_path(), DEVICE_PATH_PNP, device::ops, ops, device::path, device_path::pnp, pnp_path::port, printk, and device_path::type.

Here is the call graph for this function:

◆ generic_read_resources()

static void generic_read_resources ( struct device dev)
static

Definition at line 27 of file generic.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:

◆ generic_set_resources()

static void generic_set_resources ( struct device dev)
static

Definition at line 8 of file generic.c.

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

Here is the call graph for this function:

Variable Documentation

◆ ops

struct device_operations ops
static
Initial value:
= {
.read_resources = generic_read_resources,
.set_resources = generic_set_resources,
.scan_bus = scan_static_bus,
}
void scan_static_bus(struct device *bus)
Definition: root_device.c:89
static void generic_set_resources(struct device *dev)
Definition: generic.c:8
static void generic_read_resources(struct device *dev)
Definition: generic.c:27

Definition at line 27 of file generic.c.

Referenced by enable_dev().

◆ superio_common_ops

struct chip_operations superio_common_ops
Initial value:
= {
.enable_dev = enable_dev,
}
static void enable_dev(struct device *dev)
Definition: generic.c:309

Definition at line 309 of file generic.c.