amba_device.hh (7587:177151a54462) | amba_device.hh (7753:d3e613312953) |
---|---|
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 --- 32 unchanged lines hidden (view full) --- 41 */ 42 43 44/** @file 45 * This is a base class for AMBA devices that have to respond to Device and 46 * Implementer ID calls. 47 */ 48 | 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 --- 32 unchanged lines hidden (view full) --- 41 */ 42 43 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_H__ 50#define __DEV_ARM_AMBA_DEVICE_H__ | 49#ifndef __DEV_ARM_AMBA_DEVICE_HH__ 50#define __DEV_ARM_AMBA_DEVICE_HH__ |
51 52#include "base/range.hh" | 51 52#include "base/range.hh" |
53#include "dev/io_device.hh" 54#include "dev/arm/gic.hh" |
|
53#include "mem/packet.hh" 54#include "mem/packet_access.hh" | 55#include "mem/packet.hh" 56#include "mem/packet_access.hh" |
55#include "dev/io_device.hh" | |
56#include "params/AmbaDevice.hh" 57#include "params/AmbaDmaDevice.hh" 58 59namespace AmbaDev { 60 61const int AMBA_PER_ID0 = 0xFE0; 62const int AMBA_PER_ID1 = 0xFE4; 63const int AMBA_PER_ID2 = 0xFE8; --- 15 unchanged lines hidden (view full) --- 79 typedef AmbaDeviceParams Params; 80 AmbaDevice(const Params *p); 81}; 82 83class AmbaDmaDevice : public DmaDevice 84{ 85 protected: 86 uint64_t ambaId; | 57#include "params/AmbaDevice.hh" 58#include "params/AmbaDmaDevice.hh" 59 60namespace AmbaDev { 61 62const int AMBA_PER_ID0 = 0xFE0; 63const int AMBA_PER_ID1 = 0xFE4; 64const int AMBA_PER_ID2 = 0xFE8; --- 15 unchanged lines hidden (view full) --- 80 typedef AmbaDeviceParams Params; 81 AmbaDevice(const Params *p); 82}; 83 84class AmbaDmaDevice : public DmaDevice 85{ 86 protected: 87 uint64_t ambaId; |
88 Addr pioAddr; 89 Addr pioSize; 90 Tick pioDelay; 91 int intNum; 92 Gic *gic; |
|
87 88 public: 89 typedef AmbaDmaDeviceParams Params; 90 AmbaDmaDevice(const Params *p); 91}; 92 93 | 93 94 public: 95 typedef AmbaDmaDeviceParams Params; 96 AmbaDmaDevice(const Params *p); 97}; 98 99 |
94#endif //__DEV_ARM_AMBA_DEVICE_H__ | 100#endif //__DEV_ARM_AMBA_DEVICE_HH__ |