Deleted Added
sdiff udiff text old ( 7587:177151a54462 ) new ( 7753:d3e613312953 )
full compact
1/*
2 * Copyright (c) 2010 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

--- 28 unchanged lines hidden (view full) ---

37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
40 * Authors: Ali Saidi
41 */
42
43#include "base/trace.hh"
44#include "dev/arm/amba_fake.hh"
45#include "mem/packet.hh"
46#include "mem/packet_access.hh"
47
48AmbaDevice::AmbaDevice(const Params *p)
49 : BasicPioDevice(p), ambaId(ULL(0xb105f00d00000000) | p->amba_id)
50{
51}
52
53AmbaDmaDevice::AmbaDmaDevice(const Params *p)
54 : DmaDevice(p), ambaId(ULL(0xb105f00d00000000) | p->amba_id)
55{
56}
57
58
59namespace AmbaDev {
60bool
61readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
62{
63 Addr daddr = pkt->getAddr() - pio_addr;
64 if (daddr < AMBA_PER_ID0 || daddr > AMBA_CEL_ID3)
65 return false;
66

--- 12 unchanged lines hidden ---