SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
map_info_extension.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_SYSTEMC_IFACE_MAP_INFO_EXTENSION_H
17#define SIMICS_SYSTEMC_IFACE_MAP_INFO_EXTENSION_H
18
20
21#include <tlm>
22
23namespace simics {
24namespace systemc {
25namespace iface {
26
31class MapInfoExtension: public tlm::tlm_extension<MapInfoExtension> {
32 public:
34
36 : map_info_() {
37 }
38
39 explicit MapInfoExtension(const types::map_info_t &map_info)
40 : map_info_(map_info) {
41 }
42
43 virtual tlm::tlm_extension_base *clone() const {
44 return new MapInfoExtension(*this);
45 }
46
47 virtual void copy_from(const tlm::tlm_extension_base &ext) {
48 *this = static_cast<const MapInfoExtension &>(ext);
49 }
50
51 physical_address_t base() const { return map_info_.base; }
52 physical_address_t start() const { return map_info_.start; }
53 physical_address_t length() const { return map_info_.length; }
54 int function() const { return map_info_.function; }
55
56 private:
57 types::map_info_t map_info_;
58};
59
60} // namespace iface
61} // namespace systemc
62} // namespace simics
63
64#endif
Additional mapping information for the Simics io_memory access.
Definition: map_info_extension.h:31
MapInfoExtension()
Definition: map_info_extension.h:35
physical_address_t length() const
Definition: map_info_extension.h:53
physical_address_t base() const
Definition: map_info_extension.h:51
physical_address_t start() const
Definition: map_info_extension.h:52
int function() const
Definition: map_info_extension.h:54
MapInfoExtension(const types::map_info_t &map_info)
Definition: map_info_extension.h:39
virtual void copy_from(const tlm::tlm_extension_base &ext)
Definition: map_info_extension.h:47
types::map_info_t::physical_address_t physical_address_t
Definition: map_info_extension.h:33
virtual tlm::tlm_extension_base * clone() const
Definition: map_info_extension.h:43
Definition: pci_bus_interface.h:24
Reduced, stand-alone, version of the Simics map_info_t struct.
Definition: map_info.h:25
physical_address_t start
Definition: map_info.h:28
int function
Definition: map_info.h:30
physical_address_t length
Definition: map_info.h:29
physical_address_t base
Definition: map_info.h:27
uint64_t physical_address_t
Definition: map_info.h:26