Overview   API Reference  

iospace_handler Struct Reference

Interface for I/O space access handlers. More...

#include <iospace_handler.hpp>

Inheritance diagram for iospace_handler:

Inheritance graph
[legend]
Collaboration diagram for iospace_handler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~iospace_handler (void)
 Empty virtual destructor to enforce derived virtual destructors.
virtual uint32_t read_ioport (l4_port_t port, access_size access_size)=0
 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)=0
 Emulate a device's I/O space write access.

Static Public Attributes

static const uint32_t INVALID = ~0u
 The invalid value to be returned on invalid read accesses.


Detailed Description

Interface for I/O space access handlers.

These functions are called whenever the iospace_manager detects accesses to I/O ports claimed by this handler.


Member Function Documentation

virtual uint32_t iospace_handler::read_ioport ( l4_port_t  port,
access_size  access_size 
) [pure 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.

Implemented in i440fx_host_bridge, device_base, host_resource_owner, iospace_default_handler, ata_channel, uart, l4io_device, and piix_ide.

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

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

This function is intended to be overridden.

Implemented in i440fx_host_bridge, device_base, host_resource_owner, iospace_default_handler, ata_channel, uart, l4io_device, and piix_ide.


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

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