coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
device.h File Reference
#include <types.h>
#include <endian.h>
#include "compat/of.h"
#include "debug.h"
Include dependency graph for device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __packed
 
struct  biosemu_device_t
 

Functions

void biosemu_add_special_memory (u32 start, u32 size)
 
u8 biosemu_dev_init (struct device *device)
 
u8 biosemu_dev_check_exprom (unsigned long rom_base_addr)
 
u8 biosemu_dev_translate_address (int type, unsigned long *addr)
 
static void out32le (void *addr, u32 val)
 
static u32 in32le (void *addr)
 
static void out16le (void *addr, u16 val)
 
static u16 in16le (void *addr)
 
static void dumpHID (void)
 

Variables

translate_address_t translate_address_array [13]
 
u8 taa_last_entry
 
biosemu_device_t bios_device
 

Function Documentation

◆ biosemu_add_special_memory()

void biosemu_add_special_memory ( u32  start,
u32  size 
)

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().

Here is the caller graph for this function:

◆ biosemu_dev_check_exprom()

u8 biosemu_dev_check_exprom ( unsigned long  rom_base_addr)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ biosemu_dev_init()

u8 biosemu_dev_init ( struct device device)

◆ biosemu_dev_translate_address()

u8 biosemu_dev_translate_address ( int  type,
unsigned long *  addr 
)

◆ dumpHID()

static void dumpHID ( void  )
inlinestatic

Definition at line 196 of file device.h.

References printf.

◆ in16le()

static u16 in16le ( void addr)
inlinestatic

Definition at line 183 of file device.h.

References addr, and val.

Referenced by biosemu_dev_check_exprom(), my_inw(), my_outw(), and my_rdw().

Here is the caller graph for this function:

◆ in32le()

static u32 in32le ( void addr)
inlinestatic

Definition at line 161 of file device.h.

References addr, and val.

Referenced by my_inl(), my_outl(), and my_rdl().

Here is the caller graph for this function:

◆ out16le()

static void out16le ( void addr,
u16  val 
)
inlinestatic

Definition at line 173 of file device.h.

References addr, and val.

Referenced by my_outw(), and my_wrw().

Here is the caller graph for this function:

◆ out32le()

static void out32le ( void addr,
u32  val 
)
inlinestatic

Definition at line 151 of file device.h.

References addr, and val.

Referenced by my_outl(), my_wrl(), and pmm_setup().

Here is the caller graph for this function:

Variable Documentation

◆ bios_device

◆ taa_last_entry

◆ translate_address_array

translate_address_t translate_address_array[13]
extern