![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <superio/common/ssdt.h>
#include <device/device.h>
#include <device/pnp.h>
#include <acpi/acpigen.h>
#include <acpi/acpi.h>
#include <console/console.h>
#include <types.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | superio_dev |
Functions | |
static const struct superio_dev * | superio_guess_function (const struct device *dev) |
static bool | has_resources (const struct device *dev) |
static void | ldn_gen_resources (const struct device *dev) |
static void | ldn_gen_resources_use (const struct device *dev) |
const char * | superio_common_ldn_acpi_name (const struct device *dev) |
static const char * | name_from_hid (const char *hid) |
void | superio_common_fill_ssdt_generator (const struct device *dev) |
Variables | |
static const struct superio_dev | superio_devs [] |
static const u8 | io_idx [] = {PNP_IDX_IO0, PNP_IDX_IO1, PNP_IDX_IO2, PNP_IDX_IO3} |
static const u8 | irq_idx [] = {PNP_IDX_IRQ0, PNP_IDX_IRQ1} |
Definition at line 63 of file ssdt.c.
References ARRAY_SIZE, resource::base, io_idx, irq_idx, probe_resource(), and resource::size.
Referenced by superio_common_fill_ssdt_generator().
Definition at line 81 of file ssdt.c.
References acpigen_write_io16(), acpigen_write_irq(), ARRAY_SIZE, resource::base, base, io_idx, irq_idx, probe_resource(), and resource::size.
Referenced by superio_common_fill_ssdt_generator().
Definition at line 110 of file ssdt.c.
References acpigen_write_name_integer(), ARRAY_SIZE, resource::base, io_idx, name, probe_resource(), resource::size, and snprintf().
Referenced by superio_common_fill_ssdt_generator().
|
static |
Definition at line 141 of file ssdt.c.
References ACPI_HID_COM, ACPI_HID_FDC, ACPI_HID_KEYBOARD, ACPI_HID_LPT, ACPI_HID_MOUSE, ACPI_HID_PNP, ARRAY_SIZE, name, and strcmp().
Referenced by superio_common_fill_ssdt_generator().
Definition at line 162 of file ssdt.c.
References acpi_device_hid(), acpi_device_name(), acpi_device_scope(), acpi_device_write_uid(), superio_dev::acpi_hid, ACPI_HID_PNP, acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_pop_len(), acpigen_write_device(), acpigen_write_integer(), acpigen_write_method(), acpigen_write_name(), acpigen_write_name_byte(), acpigen_write_name_string(), acpigen_write_resourcetemplate_footer(), acpigen_write_resourcetemplate_header(), acpigen_write_scope(), acpigen_write_store(), BIOS_CRIT, BIOS_DEBUG, BIOS_ERR, BIOS_WARNING, device::bus, bus::dev, dev_path(), pnp_path::device, DEVICE_PATH_PNP, device::enabled, has_resources(), ldn_gen_resources(), ldn_gen_resources_use(), LOCAL0_OP, MULTIPLY_OP, name, name_from_hid(), device::path, device_path::pnp, pnp_path::port, printk, RETURN_OP, superio_guess_function(), and device_path::type.
const char* superio_common_ldn_acpi_name | ( | const struct device * | dev | ) |
Definition at line 128 of file ssdt.c.
References pnp_path::device, name, device::path, device_path::pnp, and snprintf().
|
static |
Definition at line 30 of file ssdt.c.
References ARRAY_SIZE, resource::base, io_idx, irq_idx, NULL, probe_resource(), resource::size, and superio_devs.
Referenced by superio_common_fill_ssdt_generator().
|
static |
Definition at line 27 of file ssdt.c.
Referenced by has_resources(), ldn_gen_resources(), ldn_gen_resources_use(), and superio_guess_function().
|
static |
Definition at line 28 of file ssdt.c.
Referenced by has_resources(), ldn_gen_resources(), and superio_guess_function().
|
static |
Definition at line 1 of file ssdt.c.
Referenced by superio_guess_function().