coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPIROM_BASE_ADDRESS_REGISTER   0xA0
 
#define SPI_ROM_ENABLE   0x02
 
#define SPI_BASE_ADDRESS   0xFEC10000
 

Functions

void lpc_read_resources (struct device *dev)
 
void lpc_set_resources (struct device *dev)
 
void lpc_enable_childrens_resources (struct device *dev)
 Enable resources for children devices. More...
 

Macro Definition Documentation

◆ SPI_BASE_ADDRESS

#define SPI_BASE_ADDRESS   0xFEC10000

Definition at line 8 of file lpc.h.

◆ SPI_ROM_ENABLE

#define SPI_ROM_ENABLE   0x02

Definition at line 7 of file lpc.h.

◆ SPIROM_BASE_ADDRESS_REGISTER

#define SPIROM_BASE_ADDRESS_REGISTER   0xA0

Definition at line 6 of file lpc.h.

Function Documentation

◆ lpc_enable_childrens_resources()

void lpc_enable_childrens_resources ( struct device dev)

Enable resources for children devices.

Parameters
devthe device whose children's resources are to be enabled

Definition at line 64 of file lpc.c.

References __fallthrough, resource::base, base, BIOS_DEBUG, bus::children, bus::dev, DEVICE_PATH_PNP, device::enabled, resource::flags, IORESOURCE_IO, device::link_list, bus::next, resource::next, device::path, pci_read_config32(), pci_write_config16(), pci_write_config32(), printk, device::resource_list, device::sibling, and device_path::type.

Here is the call graph for this function:

◆ lpc_read_resources()

◆ lpc_set_resources()

void lpc_set_resources ( struct device dev)

Definition at line 43 of file lpc.c.

References resource::base, BIOS_DEBUG, find_resource(), pci_dev_set_resources(), pci_write_config32(), printk, SPI_ROM_ENABLE, and SPIROM_BASE_ADDRESS_REGISTER.

Here is the call graph for this function: