SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
dmi_data_table.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_SIMICS2TLM_DMI_DATA_TABLE_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_DMI_DATA_TABLE_H
18
19#include <systemc>
20#include <tlm>
21#include <set>
22#include <string>
23
24namespace simics {
25namespace systemc {
26namespace simics2tlm {
27
30 public:
31 unsigned char *dmiPointer(sc_dt::uint64 start, sc_dt::uint64 range,
32 bool is_read);
33 void add(const tlm::tlm_dmi &dmi_data);
34 void remove(sc_dt::uint64 start_range, sc_dt::uint64 end_range);
35 std::string print() const;
36 private:
37 struct Comparator {
38 bool operator()(const tlm::tlm_dmi &a, const tlm::tlm_dmi &b) const;
39 };
40 std::set<tlm::tlm_dmi, Comparator> table_;
41};
42
43} // namespace simics2tlm
44} // namespace systemc
45} // namespace simics
46
47#endif
Definition: dmi_data_table.h:29
void add(const tlm::tlm_dmi &dmi_data)
unsigned char * dmiPointer(sc_dt::uint64 start, sc_dt::uint64 range, bool is_read)
void remove(sc_dt::uint64 start_range, sc_dt::uint64 end_range)
Definition: adapter.h:81