60 #ifndef __MEM_EXTERNAL_SLAVE__
61 #define __MEM_EXTERNAL_SLAVE__
64 #include "params/ExternalSlave.hh"
76 Port(
const std::string &name_,
100 const std::string &port_data) = 0;
142 #endif // __MEM_EXTERNAL_SLAVE__
const PortID InvalidPortID
virtual Port * getExternalPort(const std::string &name, ExternalSlave &owner, const std::string &port_data)=0
Create or find an external port which can be bound.
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
AddrRangeList addrRanges
The Range of addresses supported by the devices on the external side of this port.
std::string portData
Handler-specific port configuration.
Port(const std::string &name_, ExternalSlave &owner_)
AddrRangeList getAddrRanges() const
Any or all of recv...
std::string portName
Name of the bound port.
const Params * params() const
A SlavePort is a specialisation of a port.
A BaseSlavePort is a protocol-agnostic slave port, responsible only for the structural connection to ...
~Port()
Virtual destructor due to inheritance.
Port * externalPort
The peer port for the gem5 port "port".
std::string portType
Key to select a port handler.
BaseSlavePort & getSlavePort(const std::string &if_name, PortID idx=InvalidPortID)
SlavePort interface.
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
static std::map< std::string, Handler * > portHandlers
Registered handlers.
virtual const std::string name() const
ExternalSlave(ExternalSlaveParams *params)
The MemObject class extends the ClockedObject with accessor functions to get its master and slave por...
Derive from this class to create an external port interface.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.