amba_device.cc (10565:23593fdaadcd) amba_device.cc (10867:358e2e77b2c7)
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

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

57AmbaIntDevice::AmbaIntDevice(const Params *p, Addr pio_size)
58 : AmbaPioDevice(p, pio_size),
59 intNum(p->int_num), gic(p->gic), intDelay(p->int_delay)
60{
61}
62
63
64
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

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

57AmbaIntDevice::AmbaIntDevice(const Params *p, Addr pio_size)
58 : AmbaPioDevice(p, pio_size),
59 intNum(p->int_num), gic(p->gic), intDelay(p->int_delay)
60{
61}
62
63
64
65AmbaDmaDevice::AmbaDmaDevice(const Params *p)
65AmbaDmaDevice::AmbaDmaDevice(const Params *p, Addr pio_size)
66 : DmaDevice(p), ambaId(AmbaVendor | p->amba_id),
66 : DmaDevice(p), ambaId(AmbaVendor | p->amba_id),
67 pioAddr(p->pio_addr), pioSize(0),
67 pioAddr(p->pio_addr), pioSize(pio_size),
68 pioDelay(p->pio_latency),intNum(p->int_num), gic(p->gic)
69{
70}
71
72bool
73AmbaDevice::readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
74{
75 Addr daddr = pkt->getAddr() - pio_addr;

--- 12 unchanged lines hidden ---
68 pioDelay(p->pio_latency),intNum(p->int_num), gic(p->gic)
69{
70}
71
72bool
73AmbaDevice::readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
74{
75 Addr daddr = pkt->getAddr() - pio_addr;

--- 12 unchanged lines hidden ---