Deleted Added
sdiff udiff text old ( 10905:a6ca6831e775 ) new ( 11011:2ca6c68fdd6c )
full compact
1/*
2 * Copyright (c) 2010,2013 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

38 */
39
40#ifndef __DEV_ARM_RV_HH__
41#define __DEV_ARM_RV_HH__
42
43#include "base/bitunion.hh"
44#include "dev/io_device.hh"
45#include "params/RealViewCtrl.hh"
46
47/** @file
48 * This implements the simple real view registers on a PBXA9
49 */
50
51class RealViewCtrl : public BasicPioDevice
52{
53 protected:
54 enum {
55 IdReg = 0x00,
56 SwReg = 0x04,
57 Led = 0x08,
58 Osc0 = 0x0C,
59 Osc1 = 0x10,
60 Osc2 = 0x14,

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

91 };
92
93 // system lock value
94 BitUnion32(SysLockReg)
95 Bitfield<15,0> lockVal;
96 Bitfield<16> locked;
97 EndBitUnion(SysLockReg)
98
99 SysLockReg sysLock;
100
101 /** This register is used for smp booting.
102 * The primary cpu writes the secondary start address here before
103 * sends it a soft interrupt. The secondary cpu reads this register and if
104 * it's non-zero it jumps to the address
105 */
106 uint32_t flags;

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

122 */
123 RealViewCtrl(Params *p);
124
125 /**
126 * Handle a read to the device
127 * @param pkt The memory request.
128 * @param data Where to put the data.
129 */
130 virtual Tick read(PacketPtr pkt);
131
132 /**
133 * All writes are simply ignored.
134 * @param pkt The memory request.
135 * @param data the data
136 */
137 virtual Tick write(PacketPtr pkt);
138
139 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
140 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
141};
142
143
144#endif // __DEV_ARM_RV_HH__