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/*
2 © 2015 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_SIMICS2TLM_DMI_DATA_TABLE_H
15#define SIMICS_SYSTEMC_SIMICS2TLM_DMI_DATA_TABLE_H
16
17#include <systemc>
18#include <tlm>
19#include <set>
20#include <string>
21
22namespace simics {
23namespace systemc {
24namespace simics2tlm {
25
28 public:
29 unsigned char *dmiPointer(sc_dt::uint64 start, sc_dt::uint64 range,
30 bool is_read);
31 void add(const tlm::tlm_dmi &dmi_data);
32 void remove(sc_dt::uint64 start_range, sc_dt::uint64 end_range);
33 std::string print() const;
34 private:
35 struct Comparator {
36 bool operator()(const tlm::tlm_dmi &a, const tlm::tlm_dmi &b) const;
37 };
38 std::set<tlm::tlm_dmi, Comparator> table_;
39};
40
41} // namespace simics2tlm
42} // namespace systemc
43} // namespace simics
44
45#endif
Definition: dmi_data_table.h:27
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:79