#include <iospace_default_handler.hpp>


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_config & | config |
| The machine's configuration struct. | |
Simply prints a warning message and always returns an invalid value (read access) or -L4_ENOTSUPP (write access).
| 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.
The machine's configuration struct.
Referenced here only.
Referenced by read_ioport(), and write_ioport().