timer_sp804.cc (9525:0587c8983d47) | timer_sp804.cc (9806:3f262c18ad5d) |
---|---|
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#include "base/trace.hh" 42#include "debug/Checkpoint.hh" 43#include "debug/Timer.hh" 44#include "dev/arm/base_gic.hh" 45#include "dev/arm/timer_sp804.hh" 46#include "mem/packet.hh" 47#include "mem/packet_access.hh" 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#include "base/trace.hh" 42#include "debug/Checkpoint.hh" 43#include "debug/Timer.hh" 44#include "dev/arm/base_gic.hh" 45#include "dev/arm/timer_sp804.hh" 46#include "mem/packet.hh" 47#include "mem/packet_access.hh" 48 |
49using namespace AmbaDev; 50 | |
51Sp804::Sp804(Params *p) | 49Sp804::Sp804(Params *p) |
52 : AmbaDevice(p), gic(p->gic), timer0(name() + ".timer0", this, p->int_num0, p->clock0), | 50 : AmbaPioDevice(p), gic(p->gic), timer0(name() + ".timer0", this, p->int_num0, p->clock0), |
53 timer1(name() + ".timer1", this, p->int_num1, p->clock1) 54{ 55 pioSize = 0xfff; 56} 57 58Sp804::Timer::Timer(std::string __name, Sp804 *_parent, int int_num, Tick _clock) 59 : _name(__name), parent(_parent), intNum(int_num), clock(_clock), control(0x20), 60 rawInt(false), pendingInt(false), loadValue(0xffffffff), zeroEvent(this) --- 230 unchanged lines hidden --- | 51 timer1(name() + ".timer1", this, p->int_num1, p->clock1) 52{ 53 pioSize = 0xfff; 54} 55 56Sp804::Timer::Timer(std::string __name, Sp804 *_parent, int int_num, Tick _clock) 57 : _name(__name), parent(_parent), intNum(int_num), clock(_clock), control(0x20), 58 rawInt(false), pendingInt(false), loadValue(0xffffffff), zeroEvent(this) --- 230 unchanged lines hidden --- |