Deleted Added
sdiff udiff text old ( 10249:6bbb7ae309ac ) new ( 10395:77b9f96786c1 )
full compact
1/*
2 * Copyright (c) 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

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

55 */
56class VoltageDomain : public SimObject
57{
58 public:
59
60 typedef VoltageDomainParams Params;
61 VoltageDomain(const Params *p);
62
63 /**
64 * Get the current voltage.
65 *
66 * @return Voltage of the domain
67 */
68 double voltage() const { return voltageOpPoints[_perfLevel]; }
69
70 uint32_t numVoltages() const { return (uint32_t)voltageOpPoints.size(); }
71
72 typedef SrcClockDomain::PerfLevel PerfLevel;
73
74 /**
75 * Set the voltage point of the domain.
76 * @param Voltage value to be set
77 */
78 void perfLevel(PerfLevel perf_level);
79
80 /**
81 * Get the voltage point of the domain.

--- 62 unchanged lines hidden ---