rv_ctrl.hh (11168:f98eb2da15a4) rv_ctrl.hh (11421:74c1e6513bd0)
1/*
2 * Copyright (c) 2010,2013,2015 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

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

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#include "params/RealViewOsc.hh"
1/*
2 * Copyright (c) 2010,2013,2015 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

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

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#include "params/RealViewOsc.hh"
47#include "params/RealViewTemperatureSensor.hh"
47
48/** @file
49 * This implements the simple real view registers on a PBXA9
50 */
51
52class RealViewCtrl : public BasicPioDevice
53{
54 public:

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

214 public: // RealViewCtrl::Device interface
215 uint32_t read() const override;
216 void write(uint32_t freq) override;
217
218 protected:
219 void clockPeriod(Tick clock_period);
220};
221
48
49/** @file
50 * This implements the simple real view registers on a PBXA9
51 */
52
53class RealViewCtrl : public BasicPioDevice
54{
55 public:

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

215 public: // RealViewCtrl::Device interface
216 uint32_t read() const override;
217 void write(uint32_t freq) override;
218
219 protected:
220 void clockPeriod(Tick clock_period);
221};
222
223/**
224 * This device implements the temperature sensor used in the
225 * RealView/Versatile Express platform.
226 *
227 * See ARM DUI 0447J (ARM Motherboard Express uATX -- V2M-P1).
228 */
229class RealViewTemperatureSensor
230 : public SimObject, RealViewCtrl::Device
231{
232 public:
233 RealViewTemperatureSensor(RealViewTemperatureSensorParams *p)
234 : SimObject(p),
235 RealViewCtrl::Device(*p->parent, RealViewCtrl::FUNC_TEMP,
236 p->site, p->position, p->dcc, p->device),
237 system(p->system)
238 {}
239 virtual ~RealViewTemperatureSensor() {};
222
240
241 public: // RealViewCtrl::Device interface
242 uint32_t read() const override;
243 void write(uint32_t temp) override {}
244
245 protected:
246 /** The system this RV device belongs to */
247 System * system;
248};
249
250
223#endif // __DEV_ARM_RV_HH__
251#endif // __DEV_ARM_RV_HH__