dev, arm: Include PIO size in AmbaDmaDevice constructor

Make it possible to specify the size of the PIO space for an AMBA DMA
device. Maintain backwards compatibility and default to zero.
This commit is contained in:
Andreas Sandberg
2015-06-09 09:21:12 -04:00
parent b29e55d44a
commit a9cad92011
2 changed files with 3 additions and 3 deletions

View File

@@ -62,9 +62,9 @@ AmbaIntDevice::AmbaIntDevice(const Params *p, Addr pio_size)
AmbaDmaDevice::AmbaDmaDevice(const Params *p)
AmbaDmaDevice::AmbaDmaDevice(const Params *p, Addr pio_size)
: DmaDevice(p), ambaId(AmbaVendor | p->amba_id),
pioAddr(p->pio_addr), pioSize(0),
pioAddr(p->pio_addr), pioSize(pio_size),
pioDelay(p->pio_latency),intNum(p->int_num), gic(p->gic)
{
}

View File

@@ -109,7 +109,7 @@ class AmbaDmaDevice : public DmaDevice, public AmbaDevice
public:
typedef AmbaDmaDeviceParams Params;
AmbaDmaDevice(const Params *p);
AmbaDmaDevice(const Params *p, Addr pio_size = 0);
};