io_device.hh (9342:6fec8f26e56d) io_device.hh (9808:13ffc0066b76)
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

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

143 /** Size that the device's address range. */
144 Addr pioSize;
145
146 /** Delay that the device experinces on an access. */
147 Tick pioDelay;
148
149 public:
150 typedef BasicPioDeviceParams Params;
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

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

143 /** Size that the device's address range. */
144 Addr pioSize;
145
146 /** Delay that the device experinces on an access. */
147 Tick pioDelay;
148
149 public:
150 typedef BasicPioDeviceParams Params;
151 BasicPioDevice(const Params *p);
151 BasicPioDevice(const Params *p, Addr size);
152
153 const Params *
154 params() const
155 {
156 return dynamic_cast<const Params *>(_params);
157 }
158
159 /**
160 * Determine the address ranges that this device responds to.
161 *
162 * @return a list of non-overlapping address ranges
163 */
164 virtual AddrRangeList getAddrRanges() const;
165
166};
167
168#endif // __DEV_IO_DEVICE_HH__
152
153 const Params *
154 params() const
155 {
156 return dynamic_cast<const Params *>(_params);
157 }
158
159 /**
160 * Determine the address ranges that this device responds to.
161 *
162 * @return a list of non-overlapping address ranges
163 */
164 virtual AddrRangeList getAddrRanges() const;
165
166};
167
168#endif // __DEV_IO_DEVICE_HH__