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
--- 68 unchanged lines hidden (view full) ---
77 if(_slavePort == NULL)
78 panic("Cannot getSlavePort on master port %s that is not connected\n",
79 name());
80
81 return *_slavePort;
82}
83
84void
85MasterPort::bind(SlavePort& slave_port)
86{
87 // master port keeps track of the slave port
88 _slavePort = &slave_port;
89
90 // slave port also keeps track of master port
91 _slavePort->bind(*this);
92}
--- 69 unchanged lines hidden (view full) ---
162{
163}
164
165SlavePort::~SlavePort()
166{
167}
168
169void
170SlavePort::bind(MasterPort& master_port)
171{
172 _masterPort = &master_port;
173}
174
175MasterPort&
176SlavePort::getMasterPort() const
177{
--- 52 unchanged lines hidden ---
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
--- 68 unchanged lines hidden (view full) ---
77 if(_slavePort == NULL)
78 panic("Cannot getSlavePort on master port %s that is not connected\n",
79 name());
80
81 return *_slavePort;
82}
83
84void
85MasterPort::bind(SlavePort& slave_port)
86{
87 // master port keeps track of the slave port
88 _slavePort = &slave_port;
89
90 // slave port also keeps track of master port
91 _slavePort->bind(*this);
92}
--- 69 unchanged lines hidden (view full) ---
162{
163}
164
165SlavePort::~SlavePort()
166{
167}
168
169void
170SlavePort::bind(MasterPort& master_port)
171{
172 _masterPort = &master_port;
173}
174
175MasterPort&
176SlavePort::getMasterPort() const
177{
--- 52 unchanged lines hidden ---