Deleted Added
sdiff udiff text old ( 9806:3f262c18ad5d ) new ( 10905:a6ca6831e775 )
full compact
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 * This implements the dual Sp804 timer block
48 */
49
50class BaseGic;
51
52class Sp804 : public AmbaPioDevice
53{
54 protected:
55 class Timer
56 {
57
58 public:
59 enum {
60 LoadReg = 0x00,
61 CurrentReg = 0x04,
62 ControlReg = 0x08,
63 IntClear = 0x0C,

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

116 std::string name() const { return _name; }
117
118 /** Handle read for a single timer */
119 void read(PacketPtr pkt, Addr daddr);
120
121 /** Handle write for a single timer */
122 void write(PacketPtr pkt, Addr daddr);
123
124 void serialize(std::ostream &os);
125 void unserialize(Checkpoint *cp, const std::string &section);
126
127 };
128
129 /** Pointer to the GIC for causing an interrupt */
130 BaseGic *gic;
131
132 /** Timers that do the actual work */
133 Timer timer0;
134 Timer timer1;

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

156 /**
157 * All writes are simply ignored.
158 * @param pkt The memory request.
159 * @param data the data
160 */
161 virtual Tick write(PacketPtr pkt);
162
163
164 virtual void serialize(std::ostream &os);
165 virtual void unserialize(Checkpoint *cp, const std::string &section);
166};
167
168
169#endif // __DEV_ARM_SP804_HH__
170