port.cc (8975:7f36d4436074) | port.cc (9031:32ecc0217c5e) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 36 unchanged lines hidden (view full) --- 45/** 46 * @file 47 * Port object definitions. 48 */ 49#include "base/trace.hh" 50#include "mem/mem_object.hh" 51#include "mem/port.hh" 52 | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 36 unchanged lines hidden (view full) --- 45/** 46 * @file 47 * Port object definitions. 48 */ 49#include "base/trace.hh" 50#include "mem/mem_object.hh" 51#include "mem/port.hh" 52 |
53Port::Port(const std::string &_name, MemObject& _owner, PortId _id) | 53Port::Port(const std::string &_name, MemObject& _owner, PortID _id) |
54 : portName(_name), id(_id), peer(NULL), owner(_owner) 55{ 56} 57 58Port::~Port() 59{ 60} 61 62/** 63 * Master port 64 */ | 54 : portName(_name), id(_id), peer(NULL), owner(_owner) 55{ 56} 57 58Port::~Port() 59{ 60} 61 62/** 63 * Master port 64 */ |
65MasterPort::MasterPort(const std::string& name, MemObject* owner, PortId _id) | 65MasterPort::MasterPort(const std::string& name, MemObject* owner, PortID _id) |
66 : Port(name, *owner, _id), _slavePort(NULL) 67{ 68} 69 70MasterPort::~MasterPort() 71{ 72} 73 --- 67 unchanged lines hidden (view full) --- 141 pkt.senderState = &prs; 142 143 sendFunctional(&pkt); 144} 145 146/** 147 * Slave port 148 */ | 66 : Port(name, *owner, _id), _slavePort(NULL) 67{ 68} 69 70MasterPort::~MasterPort() 71{ 72} 73 --- 67 unchanged lines hidden (view full) --- 141 pkt.senderState = &prs; 142 143 sendFunctional(&pkt); 144} 145 146/** 147 * Slave port 148 */ |
149SlavePort::SlavePort(const std::string& name, MemObject* owner, PortId id) | 149SlavePort::SlavePort(const std::string& name, MemObject* owner, PortID id) |
150 : Port(name, *owner, id), _masterPort(NULL) 151{ 152} 153 154SlavePort::~SlavePort() 155{ 156} 157 --- 56 unchanged lines hidden --- | 150 : Port(name, *owner, id), _masterPort(NULL) 151{ 152} 153 154SlavePort::~SlavePort() 155{ 156} 157 --- 56 unchanged lines hidden --- |