SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
transaction_handler.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_TLM2SIMICS_TRANSACTION_HANDLER_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_TRANSACTION_HANDLER_H
18
25
26namespace simics {
27namespace systemc {
28namespace tlm2simics {
29
35 : public GasketOwner,
36 public virtual Registrant<TransactionHandlerInterface> {
37 public:
39 iface::ReceiverInterface *ignore_receiver = NULL,
40 InterfaceProvider *error_interface_provider = NULL);
42
43 // GasketOwner
44 void set_gasket(GasketInterface::Ptr gasketInterface) override;
45
46 // TransactionHandlerInterface
47 bool get_direct_mem_ptr(ConfObjectRef &simics_obj,
48 tlm::tlm_generic_payload &trans,
49 tlm::tlm_dmi& dmi_data) override;
50 unsigned int debug_transaction(ConfObjectRef &simics_obj,
51 tlm::tlm_generic_payload *trans) override;
52 void update_dmi_allowed(ConfObjectRef &simics_obj,
53 tlm::tlm_generic_payload *trans) override;
54 bool byte_enable_supported(ConfObjectRef &simics_obj,
55 tlm::tlm_generic_payload *trans) override;
56 const GasketOwner *gasket_owner() const override;
57 const InterfaceProvider *interface_provider() const override;
58
59 protected:
62};
63
64} // namespace tlm2simics
65} // namespace systemc
66} // namespace simics
67
68#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Definition: registry.h:88
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Definition: error_transaction_handler.h:28
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:32
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:31
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
void set_gasket(GasketInterface::Ptr gasketInterface) override
TransactionHandler(InterfaceProvider *interface_provider, iface::ReceiverInterface *ignore_receiver=NULL, InterfaceProvider *error_interface_provider=NULL)
ErrorTransactionHandler error_transaction_handler_
Definition: transaction_handler.h:61
const InterfaceProvider * interface_provider() const override
unsigned int debug_transaction(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
const GasketOwner * gasket_owner() const override
void update_dmi_allowed(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
bool get_direct_mem_ptr(ConfObjectRef &simics_obj, tlm::tlm_generic_payload &trans, tlm::tlm_dmi &dmi_data) override
InterfaceProvider * interface_provider_
Definition: transaction_handler.h:60
bool byte_enable_supported(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans) override
Definition: pci_bus_interface.h:24