1/* 2 * Copyright (c) 2010-2012 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#include "debug/Timer.hh" 45#include "dev/arm/amba_device.hh" 46#include "dev/arm/rtc_pl031.hh" 47#include "dev/mc146818.hh" 48#include "mem/packet.hh" 49#include "mem/packet_access.hh" 50 51PL031::PL031(Params *p) |
52 : AmbaIntDevice(p, 0xfff), timeVal(mkutctime(&p->time)), 53 lastWrittenTick(0), loadVal(0), matchVal(0), 54 rawInt(false), maskInt(false), pendingInt(false), matchEvent(this) |
55{ |
56} 57 58 59Tick 60PL031::read(PacketPtr pkt) 61{ 62 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 63 assert(pkt->getSize() == 4); --- 185 unchanged lines hidden --- |