![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <commonlib/bsd/helpers.h>
#include <device/device.h>
#include <device/pnp.h>
#include <superio/conf_mode.h>
#include <console/console.h>
#include <pc80/keyboard.h>
#include <stdint.h>
#include "sch5545.h"
Go to the source code of this file.
Functions | |
int | sch5545_get_gpio (uint8_t sio_port, uint8_t gpio) |
static void | sch5545_init (struct device *dev) |
static void | sch5545_set_iobase (struct device *dev, u8 index, u16 iobase) |
static void | sch5545_set_irq (struct device *dev, u8 index, u8 irq) |
static void | sch5545_set_drq (struct device *dev, u8 index, u8 drq) |
static void | sch5545_set_resource (struct device *dev, struct resource *resource) |
static void | sch5545_set_resources (struct device *dev) |
static void | enable_dev (struct device *dev) |
Variables | |
static struct device_operations | ops |
static struct pnp_info | pnp_dev_info [] |
struct chip_operations | superio_smsc_sch5545_ops |
Definition at line 300 of file superio.c.
References ARRAY_SIZE, ops, pnp_dev_info, and pnp_enable_devices().
Definition at line 14 of file superio.c.
References BIOS_ERR, dev_find_slot_pnp(), inb(), outb(), PNP_DEV, pnp_enter_conf_mode(), pnp_enter_conf_state(), pnp_exit_conf_mode(), pnp_exit_conf_state(), pnp_read_config(), pnp_set_logical_device(), printk, SCH5545_BAR_RUNTIME_REG, SCH5545_LDN_LPC, SCH5545_RR_GPIO_READ, and SCH5545_RR_GPIO_SEL.
Referenced by mainboard_final().
Definition at line 59 of file superio.c.
References pnp_path::device, device::enabled, NO_AUX_DEVICE, device::path, pc_keyboard_init(), device_path::pnp, pnp_enter_conf_mode(), pnp_exit_conf_mode(), pnp_read_config(), pnp_set_logical_device(), pnp_unset_and_set_config(), pnp_write_config(), SCH5545_KBD_ISOLATION, SCH5545_LDN_KBC, SCH5545_LDN_LPC, and SCH5545_MOUSE_ISOLATION.
Definition at line 191 of file superio.c.
References BIOS_ERR, dev_find_slot_pnp(), dev_path(), pnp_path::device, device::path, device_path::pnp, pnp_set_logical_device(), pnp_write_config(), pnp_path::port, printk, SCH5545_DRQ_BASE, and SCH5545_LDN_LPC.
Referenced by sch5545_set_resource().
Definition at line 84 of file superio.c.
References BIOS_ERR, dev_find_slot_pnp(), dev_path(), pnp_path::device, device::path, device_path::pnp, pnp_read_config(), pnp_set_logical_device(), pnp_write_config(), pnp_path::port, printk, SCH5545_BAR_EM_IF, SCH5545_BAR_FLOPPY, SCH5545_BAR_KBC, SCH5545_BAR_LPC_IF, SCH5545_BAR_PARPORT, SCH5545_BAR_RUNTIME_REG, SCH5545_BAR_UART1, SCH5545_BAR_UART2, SCH5545_LDN_EMI, SCH5545_LDN_FDC, SCH5545_LDN_KBC, SCH5545_LDN_LPC, SCH5545_LDN_PP, SCH5545_LDN_RR, SCH5545_LDN_UART1, SCH5545_LDN_UART2, and val.
Referenced by sch5545_set_resource().
Definition at line 141 of file superio.c.
References BIOS_ERR, dev_find_slot_pnp(), dev_path(), pnp_path::device, device::path, device_path::pnp, PNP_IDX_MSC0, pnp_set_logical_device(), pnp_write_config(), pnp_path::port, printk, SCH5545_IRQ_BASE, SCH5545_LDN_EMI, SCH5545_LDN_KBC, SCH5545_LDN_LPC, and SCH5545_LDN_RR.
Referenced by sch5545_set_resource().
Definition at line 224 of file superio.c.
References resource::base, BIOS_ERR, BIOS_WARNING, dev_path(), resource::flags, resource::index, IORESOURCE_ASSIGNED, IORESOURCE_DRQ, IORESOURCE_IO, IORESOURCE_IRQ, IORESOURCE_STORED, PNP_IDX_IRQ0, PNP_IDX_IRQ1, printk, report_resource_stored(), resource_type(), sch5545_set_drq(), sch5545_set_iobase(), sch5545_set_irq(), and resource::size.
|
static |
Definition at line 264 of file superio.c.
Referenced by enable_dev().
|
static |
struct chip_operations superio_smsc_sch5545_ops |