pl011.cc (9806:3f262c18ad5d) | pl011.cc (9808:13ffc0066b76) |
---|---|
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 --- 38 unchanged lines hidden (view full) --- 47#include "dev/arm/base_gic.hh" 48#include "dev/arm/pl011.hh" 49#include "dev/terminal.hh" 50#include "mem/packet.hh" 51#include "mem/packet_access.hh" 52#include "sim/sim_exit.hh" 53 54Pl011::Pl011(const Params *p) | 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 --- 38 unchanged lines hidden (view full) --- 47#include "dev/arm/base_gic.hh" 48#include "dev/arm/pl011.hh" 49#include "dev/terminal.hh" 50#include "mem/packet.hh" 51#include "mem/packet_access.hh" 52#include "sim/sim_exit.hh" 53 54Pl011::Pl011(const Params *p) |
55 : Uart(p), control(0x300), fbrd(0), ibrd(0), lcrh(0), ifls(0x12), imsc(0), 56 rawInt(0), maskInt(0), intNum(p->int_num), gic(p->gic), | 55 : Uart(p, 0xfff), control(0x300), fbrd(0), ibrd(0), lcrh(0), ifls(0x12), 56 imsc(0), rawInt(0), maskInt(0), intNum(p->int_num), gic(p->gic), |
57 endOnEOT(p->end_on_eot), intDelay(p->int_delay), intEvent(this) 58{ | 57 endOnEOT(p->end_on_eot), intDelay(p->int_delay), intEvent(this) 58{ |
59 pioSize = 0xfff; | |
60} 61 62Tick 63Pl011::read(PacketPtr pkt) 64{ 65 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 66 67 Addr daddr = pkt->getAddr() - pioAddr; --- 264 unchanged lines hidden --- | 59} 60 61Tick 62Pl011::read(PacketPtr pkt) 63{ 64 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 65 66 Addr daddr = pkt->getAddr() - pioAddr; --- 264 unchanged lines hidden --- |