SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
dmi_transaction_handler.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2013 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_TLM2SIMICS_DMI_TRANSACTION_HANDLER_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_DMI_TRANSACTION_HANDLER_H
18
19#include <simics/model-iface/direct-memory.h>
20
22
23namespace simics {
24namespace systemc {
25namespace tlm2simics {
26
31 : public TransactionHandler,
33 public:
35 iface::ReceiverInterface *ignore_receiver = NULL,
36 InterfaceProvider *dmi_interface_provider = NULL);
38
39 // TransactionHandler
40 bool get_direct_mem_ptr(ConfObjectRef &simics_obj,
41 tlm::tlm_generic_payload &trans,
42 tlm::tlm_dmi& dmi_data) override;
43 void update_dmi_allowed(ConfObjectRef &simics_obj,
44 tlm::tlm_generic_payload *trans) override;
45
46 // TargetUpdateListener
47 void update_target(ConfObjectRef old_target,
48 ConfObjectRef new_target) override;
49
50 protected:
52 ConfObjectRef target);
55
56 private:
57 bool hasDirectMemoryUpdateInterface(ConfObjectRef simics_obj);
58
59 InterfaceProvider direct_memory_provider_;
60 InterfaceProvider direct_memory_lookup_provider_;
61 bool has_direct_memory_update_iface_checked_;
62 bool has_direct_memory_update_iface_;
63};
64
65} // namespace tlm2simics
66} // namespace systemc
67} // namespace simics
68
69#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Definition: simics_target_lock.h:27
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Base class for transaction handlers that support DMI.
Definition: dmi_transaction_handler.h:32
bool get_direct_mem_ptr(ConfObjectRef &simics_obj, tlm::tlm_generic_payload &trans, tlm::tlm_dmi &dmi_data) override
SimicsTargetLock< const direct_memory_lookup_interface_t > direct_memory_lookup()
DmiTransactionHandler(InterfaceProvider *interface_provider, iface::ReceiverInterface *ignore_receiver=NULL, InterfaceProvider *dmi_interface_provider=NULL)
void update_dmi_allowed(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
void update_target(ConfObjectRef old_target, ConfObjectRef new_target) override
SimicsTargetLock< const direct_memory_interface_t > direct_memory(ConfObjectRef target)
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
const InterfaceProvider * interface_provider() const override
Definition: pci_bus_interface.h:24