Overview   API Reference  

iospace_default_handler Struct Reference

Default (virtual) handler used for otherwise unassigned ports. More...

#include <iospace_default_handler.hpp>

Inheritance diagram for iospace_default_handler:

Inheritance graph
[legend]
Collaboration diagram for iospace_default_handler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 iospace_default_handler (const machine_config &config)
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.

Public Attributes

const machine_configconfig
 The machine's configuration struct.


Detailed Description

Default (virtual) handler used for otherwise unassigned ports.

Simply prints a warning message and always returns an invalid value (read access) or -L4_ENOTSUPP (write access).


Member Function Documentation

virtual uint32_t iospace_default_handler::read_ioport ( l4_port_t  port,
access_size  access_size 
) [inline, 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 config, resource_descriptor::get(), iospace_handler::INVALID, and resource_descriptor::name.

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

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

This function is intended to be overridden.

Implements iospace_handler.

References config, resource_descriptor::get(), and resource_descriptor::name.


Member Data Documentation

The machine's configuration struct.

Referenced here only.

Referenced by read_ioport(), and write_ioport().


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

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