![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <console/console.h>
#include <post.h>
#include <device/pci.h>
#include <soc/chip_common.h>
#include <soc/soc_util.h>
#include <soc/util.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | pci_resource |
struct | stack_dev_resource |
Enumerations | |
enum | RES_TYPE { RES_TYPE_IO = 0 , RES_TYPE_NONPREF_MEM , RES_TYPE_PREF_MEM , MAX_RES_TYPES } |
enum RES_TYPE |
Enumerator | |
---|---|
RES_TYPE_IO | |
RES_TYPE_NONPREF_MEM | |
RES_TYPE_PREF_MEM | |
MAX_RES_TYPES |
Definition at line 24 of file chip_common.c.
|
static |
Definition at line 169 of file chip_common.c.
References resource::align, stack_dev_resource::align, assert, stack_dev_resource::children, pci_resource::dev, die(), malloc(), memset(), pci_resource::next, stack_dev_resource::next, NULL, and pci_resource::res.
Referenced by assign_stack_resources().
|
static |
Definition at line 303 of file chip_common.c.
References assign_stack_resources(), resource::base, bridge, device::enabled, resource::flags, get_res_type(), IORESOURCE_ASSIGNED, IORESOURCE_BRIDGE, resource::limit, resource::next, and device::resource_list.
Referenced by assign_stack_resources().
|
static |
Definition at line 336 of file chip_common.c.
References add_res_to_stack(), assert, assign_bridge_resources(), BIOS_DEBUG, bridge, bus::children, bus::dev, dev_path(), device::enabled, find_stack_for_bus(), resource::flags, get_res_type(), IORESOURCE_ASSIGNED, IORESOURCE_BRIDGE, device::link_list, MAX_RES_TYPES, need_assignment(), bus::next, resource::next, NULL, printk, reclaim_resource_mem(), RES_TYPE_IO, RES_TYPE_NONPREF_MEM, RES_TYPE_PREF_MEM, reserve_dev_resources(), device::resource_list, bus::secondary, device::sibling, and resource::size.
Referenced by assign_bridge_resources(), and xeonsp_pci_domain_read_resources().
Definition at line 489 of file chip_common.c.
References BIOS_WARNING, device::bus, bus::children, bus::dev, DEV_FUNC_ENTER, DEV_FUNC_EXIT, dev_path(), pci_path::devfn, DEVICE_PATH_PCI, die(), get_iiostack_info(), device::link_list, bus::link_num, malloc(), memcpy(), memset(), bus::next, iiostack_resource::no_of_stacks, NULL, device::path, device_path::pci, pci_read_config32(), PCI_VENDOR_ID, printk, iiostack_resource::res, s, bus::secondary, bus::subordinate, and device_path::type.
Referenced by chip_enable_dev(), and soc_enable_dev().
|
static |
Definition at line 160 of file chip_common.c.
Referenced by assign_stack_resources().
Definition at line 31 of file chip_common.c.
References BIOS_DEBUG, BIOS_ERR, die(), IORESOURCE_IO, IORESOURCE_MEM, IORESOURCE_PREFETCH, printk, RES_TYPE_IO, RES_TYPE_NONPREF_MEM, and RES_TYPE_PREF_MEM.
Referenced by assign_bridge_resources(), and assign_stack_resources().
Definition at line 56 of file chip_common.c.
References assert, RES_TYPE_IO, and RES_TYPE_NONPREF_MEM.
Referenced by reserve_dev_resources().
Definition at line 406 of file chip_common.c.
References get_iio_uds().
Referenced by xeonsp_pci_domain_read_resources().
Definition at line 47 of file chip_common.c.
References IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_RESERVE, and IORESOURCE_STORED.
Referenced by assign_stack_resources().
|
static |
Definition at line 285 of file chip_common.c.
References stack_dev_resource::children, free(), pci_resource::next, and stack_dev_resource::next.
Referenced by assign_stack_resources().
|
static |
Definition at line 228 of file chip_common.c.
References resource::align, ALIGN_UP, resource::base, base, bridge, stack_dev_resource::children, resource::flags, get_resource_base(), IORESOURCE_ASSIGNED, resource::limit, pci_resource::next, stack_dev_resource::next, pci_resource::res, set_resource_base(), and resource::size.
Referenced by assign_stack_resources().
|
static |
Definition at line 457 of file chip_common.c.
References IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_IO, IORESOURCE_MEM, IORESOURCE_RESERVE, and iiostack_resource::res.
Referenced by xeonsp_pci_domain_set_resources().
Definition at line 70 of file chip_common.c.
References assert, base, RES_TYPE_IO, and RES_TYPE_NONPREF_MEM.
Referenced by reserve_dev_resources().
Definition at line 150 of file chip_common.c.
Referenced by xeonsp_reset_pci_op().
|
static |
Definition at line 108 of file chip_common.c.
References BIOS_ERR, bus::children, dev_path(), DEVICE_PATH_APIC, device::enabled, device::link_list, bus::next, resource::next, device::ops, device::path, printk, device_operations::read_resources, device::resource_list, device::sibling, and device_path::type.
Referenced by xeonsp_pci_domain_read_resources(), and xeonsp_pci_domain_set_resources().
Definition at line 144 of file chip_common.c.
References bus::dev, device::ops, post_log_path(), and device_operations::read_resources.
Referenced by xeonsp_pci_domain_read_resources().
Definition at line 413 of file chip_common.c.
References assign_stack_resources(), bus::dev, DEV_FUNC_ENTER, DEV_FUNC_EXIT, get_iiostack_info(), is_pci64bit_alloc(), length, device::link_list, bus::next, iiostack_resource::no_of_stacks, NULL, pci_domain_read_resources(), iiostack_resource::res, s, xeonsp_pci_dev_iterator(), xeonsp_pci_dev_read_resources(), and xeonsp_reset_pci_op().
Referenced by xeonsp_pci_domain_set_resources().
Definition at line 87 of file chip_common.c.
References BIOS_SPEW, bus::children, bus::dev, DEV_FUNC_ENTER, DEV_FUNC_EXIT, dev_path(), pci_path::devfn, device::link_list, bus::next, NULL, device::path, device_path::pci, PCI_DEVFN, pci_probe_dev(), pci_scan_bus(), printk, scan_bridges(), bus::secondary, and device::sibling.
Definition at line 465 of file chip_common.c.
References assign_resources(), BIOS_SPEW, bus::dev, DEV_FUNC_ENTER, DEV_FUNC_EXIT, device::link_list, bus::next, NULL, print_resource_tree(), reset_resource_to_unassigned(), xeonsp_pci_dev_iterator(), and xeonsp_pci_domain_read_resources().
Definition at line 154 of file chip_common.c.
References bus::dev, device::ops, device_operations::read_resources, and xeonsp_pci_dev_dummy_func().
Referenced by xeonsp_pci_domain_read_resources().