Overview   API Reference  

i440fx_host_bridge Struct Reference

Intel i440FX host-to-PCI bridge. More...

#include <i440fx_host_bridge.hpp>

Inheritance diagram for i440fx_host_bridge:

Inheritance graph
[legend]
Collaboration diagram for i440fx_host_bridge:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 i440fx_host_bridge (machine_base &machine)
virtual uint32_t read_ioport (l4_port_t port, access_size access_size)
 Emulate a device's I/O space read access and return the value that should have been read.
virtual int write_ioport (l4_port_t port, uint32_t data, access_size access_size)
 Emulate a device's I/O space write access.
virtual const char * name (void) const
 Returns the device's name.
virtual int reset (void)
 Resets the bridge and all registered PCI devices as when powering up the machine.
virtual const pci_config_header64 & get_config_space (void) const
 Returns a device's PCI configuration space.
virtual l4_umword_t read_config_space (pci_config_header16::offset_t offset, access_size access_size)
 Emulates a device's PCI configuration space read access and returns the value that should have been read.
virtual int write_config_space (pci_config_header16::offset_t offset, l4_umword_t data, access_size access_size)
 Emulates a device's PCI configuration space write access.

Static Public Attributes

static const l4_port_t CONFIG_ADDRESS = 0x0cf8
static const l4_port_t CONFIG_DATA = 0x0cfc

Protected Attributes

i440fx_config_space config_space
i440fx_config_address config_address


Detailed Description

Intel i440FX host-to-PCI bridge.

Inherits from pci_bridge_base to provide the PCI bridge interface and implements functions to emulate Intel's i440FX host-to-PCI bridge.


Member Function Documentation

uint32_t i440fx_host_bridge::read_ioport ( l4_port_t  port,
access_size  access_size 
) [virtual]

Emulate a device's I/O space read access and return the value that should have been read.

This function is intended to be overridden.

Implements iospace_handler.

References pci_bridge_base::get_device(), and read_config_space().

int i440fx_host_bridge::write_ioport ( l4_port_t  port,
uint32_t  data,
access_size  access_size 
) [virtual]

Emulate a device's I/O space write access.

This function is intended to be overridden.

Implements iospace_handler.

References pci_bridge_base::get_device(), and write_config_space().

l4_umword_t i440fx_host_bridge::read_config_space ( pci_config_header16::offset_t  offset,
access_size  access_size 
) [virtual]

Emulates a device's PCI configuration space read access and returns the value that should have been read.

This function is intended to be overridden.

Implements pci_device.

References name().

Referenced by read_ioport().

int i440fx_host_bridge::write_config_space ( pci_config_header16::offset_t  offset,
l4_umword_t  data,
access_size  access_size 
) [virtual]

Emulates a device's PCI configuration space write access.

This function is intended to be overridden.

Implements pci_device.

References name().

Referenced by write_ioport().


The documentation for this struct was generated from the following files:

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008