#include <iospace_handler.hpp>


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. | |
These functions are called whenever the iospace_manager detects accesses to I/O ports claimed by this handler.
| 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.