![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include "device.h"
#include "compat/rtas.h"
#include <string.h>
#include "debug.h"
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/resource.h>
Go to the source code of this file.
Data Structures | |
struct | __packed |
Functions | |
void | translate_address_dev (u64 *, phandle_t) |
u64 | get_puid (phandle_t node) |
void | biosemu_dev_get_addr_info (void) |
void | biosemu_add_special_memory (u32 start, u32 size) |
static void | biosemu_dev_find_vmem_addr (void) |
void | biosemu_dev_get_puid (void) |
static void | biosemu_dev_get_device_vendor_id (void) |
u8 | biosemu_dev_check_exprom (unsigned long rom_base_addr) |
u8 | biosemu_dev_init (struct device *device) |
u8 | biosemu_dev_translate_address (int type, unsigned long *addr) |
Variables | |
biosemu_device_t | bios_device |
translate_address_t | translate_address_array [13] |
u8 | taa_last_entry |
Definition at line 235 of file device.c.
References IORESOURCE_FIXED, IORESOURCE_MEM, resource::size, taa_last_entry, and translate_address_array.
Referenced by biosemu().
Definition at line 331 of file device.c.
References bios_device, clr_ci(), DEBUG_PRINTF, dump, biosemu_device_t::img_addr, biosemu_device_t::img_size, in16le(), memcpy(), biosemu_device_t::pci_device_id, biosemu_device_t::pci_vendor_id, printf, set_ci(), strncmp(), taa_last_entry, and translate_address_array.
Referenced by biosemu().
Definition at line 254 of file device.c.
References bios_device, DEBUG_PRINTF, taa_last_entry, translate_address_array, biosemu_device_t::vmem_addr, and biosemu_device_t::vmem_size.
Referenced by biosemu_dev_init().
Definition at line 155 of file device.c.
References bios_device, buf, biosemu_device_t::bus, DEBUG_PRINTF, biosemu_device_t::devfn, of_getprop(), biosemu_device_t::phandle, printf, resource::size, taa_last_entry, translate_address_array, and translate_address_dev().
Referenced by biosemu_dev_init().
Definition at line 306 of file device.c.
References bios_device, biosemu_device_t::bus, DEBUG_PRINTF, biosemu_device_t::dev, biosemu_device_t::devfn, biosemu_device_t::pci_device_id, pci_read_config32(), biosemu_device_t::pci_vendor_id, biosemu_device_t::puid, and rtas_pci_config_read().
Referenced by biosemu_dev_init().
Definition at line 297 of file device.c.
References bios_device, DEBUG_PRINTF, get_puid(), biosemu_device_t::phandle, and biosemu_device_t::puid.
Referenced by biosemu_dev_init().
Definition at line 429 of file device.c.
References bios_device, biosemu_dev_find_vmem_addr(), biosemu_dev_get_addr_info(), biosemu_dev_get_device_vendor_id(), biosemu_dev_get_puid(), DEBUG_PRINTF, biosemu_device_t::dev, device, biosemu_device_t::ihandle, memset(), of_finddevice(), of_open(), and biosemu_device_t::phandle.
Referenced by biosemu().
Definition at line 460 of file device.c.
References addr, bios_device, taa_last_entry, translate_address_array, type, biosemu_device_t::vmem_addr, and biosemu_device_t::vmem_size.
Referenced by my_inb(), my_inl(), my_inw(), my_outb(), my_outl(), my_outw(), my_rdb(), my_rdl(), my_rdw(), my_wrb(), my_wrl(), and my_wrw().
biosemu_device_t bios_device |
Definition at line 46 of file device.c.
Referenced by biosemu(), biosemu_dev_check_exprom(), biosemu_dev_find_vmem_addr(), biosemu_dev_get_addr_info(), biosemu_dev_get_device_vendor_id(), biosemu_dev_get_puid(), biosemu_dev_init(), biosemu_dev_translate_address(), handle_port_61h(), handleInt1a(), my_inb(), my_inl(), my_inw(), my_outb(), my_outl(), my_outw(), pci_cfg_read(), and pci_cfg_write().
u8 taa_last_entry |
Definition at line 49 of file device.c.
Referenced by biosemu_add_special_memory(), biosemu_dev_check_exprom(), biosemu_dev_find_vmem_addr(), biosemu_dev_get_addr_info(), and biosemu_dev_translate_address().
translate_address_t translate_address_array[13] |
Definition at line 48 of file device.c.
Referenced by biosemu_add_special_memory(), biosemu_dev_check_exprom(), biosemu_dev_find_vmem_addr(), biosemu_dev_get_addr_info(), and biosemu_dev_translate_address().