Go to the documentation of this file.
58 #ifndef __MEM_EXTERNAL_SLAVE_HH__
59 #define __MEM_EXTERNAL_SLAVE_HH__
62 #include "params/ExternalSlave.hh"
99 const std::string &port_data) = 0;
137 void init()
override;
141 #endif //__MEM_EXTERNAL_SLAVE_HH__
ExternalPort(const std::string &name_, ExternalSlave &owner_)
const PortID InvalidPortID
virtual ExternalPort * getExternalPort(const std::string &name, ExternalSlave &owner, const std::string &port_data)=0
Create or find an external port which can be bound.
std::string portName
Name of the bound port.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
ExternalPort * externalPort
The peer port for the gem5 port "port".
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Port interface.
Derive from this class to create an external port interface.
Ports are used to interface objects to each other.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
const Params * params() const
virtual const std::string name() const
static std::map< std::string, Handler * > portHandlers
Registered handlers.
std::string portData
Handler-specific port configuration.
AddrRangeList addrRanges
The Range of addresses supported by the devices on the external side of this port.
AddrRangeList getAddrRanges() const
Any or all of recv...
std::string portType
Key to select a port handler.
ExternalSlave(ExternalSlaveParams *params)
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17