amba_device.hh (9235:5aa4896ed55a) amba_device.hh (9525:0587c8983d47)
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

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

44/** @file
45 * This is a base class for AMBA devices that have to respond to Device and
46 * Implementer ID calls.
47 */
48
49#ifndef __DEV_ARM_AMBA_DEVICE_HH__
50#define __DEV_ARM_AMBA_DEVICE_HH__
51
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

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

44/** @file
45 * This is a base class for AMBA devices that have to respond to Device and
46 * Implementer ID calls.
47 */
48
49#ifndef __DEV_ARM_AMBA_DEVICE_HH__
50#define __DEV_ARM_AMBA_DEVICE_HH__
51
52#include "dev/arm/gic.hh"
52#include "dev/arm/base_gic.hh"
53#include "dev/dma_device.hh"
54#include "dev/io_device.hh"
55#include "mem/packet.hh"
56#include "mem/packet_access.hh"
57#include "params/AmbaDevice.hh"
58#include "params/AmbaDmaDevice.hh"
59#include "params/AmbaIntDevice.hh"
60

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

81 typedef AmbaDeviceParams Params;
82 AmbaDevice(const Params *p);
83};
84
85class AmbaIntDevice : public AmbaDevice
86{
87 protected:
88 int intNum;
53#include "dev/dma_device.hh"
54#include "dev/io_device.hh"
55#include "mem/packet.hh"
56#include "mem/packet_access.hh"
57#include "params/AmbaDevice.hh"
58#include "params/AmbaDmaDevice.hh"
59#include "params/AmbaIntDevice.hh"
60

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

81 typedef AmbaDeviceParams Params;
82 AmbaDevice(const Params *p);
83};
84
85class AmbaIntDevice : public AmbaDevice
86{
87 protected:
88 int intNum;
89 Gic *gic;
89 BaseGic *gic;
90 Tick intDelay;
91
92 public:
93 typedef AmbaIntDeviceParams Params;
94 AmbaIntDevice(const Params *p);
95};
96
97class AmbaDmaDevice : public DmaDevice
98{
99 protected:
100 uint64_t ambaId;
101 Addr pioAddr;
102 Addr pioSize;
103 Tick pioDelay;
104 int intNum;
90 Tick intDelay;
91
92 public:
93 typedef AmbaIntDeviceParams Params;
94 AmbaIntDevice(const Params *p);
95};
96
97class AmbaDmaDevice : public DmaDevice
98{
99 protected:
100 uint64_t ambaId;
101 Addr pioAddr;
102 Addr pioSize;
103 Tick pioDelay;
104 int intNum;
105 Gic *gic;
105 BaseGic *gic;
106
107 public:
108 typedef AmbaDmaDeviceParams Params;
109 AmbaDmaDevice(const Params *p);
110};
111
112
113#endif //__DEV_ARM_AMBA_DEVICE_HH__
106
107 public:
108 typedef AmbaDmaDeviceParams Params;
109 AmbaDmaDevice(const Params *p);
110};
111
112
113#endif //__DEV_ARM_AMBA_DEVICE_HH__