SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
transaction_handler_interface.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_TRANSACTION_HANDLER_INTERFACE_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_TRANSACTION_HANDLER_INTERFACE_H
18
19#include <simics/conf-object.h>
21#include <tlm>
22
23namespace simics {
24namespace systemc {
25
26class InterfaceProvider;
27
28namespace tlm2simics {
29
30class GasketOwner;
31
37 public:
38 virtual bool get_direct_mem_ptr(ConfObjectRef &simics_obj, // NOLINT
39 tlm::tlm_generic_payload &trans, // NOLINT
40 tlm::tlm_dmi& dmi_data) = 0; // NOLINT
41 virtual tlm::tlm_response_status simics_transaction(
42 ConfObjectRef &simics_obj, // NOLINT
43 tlm::tlm_generic_payload *trans) = 0;
44 virtual unsigned int debug_transaction(ConfObjectRef &simics_obj, // NOLINT
45 tlm::tlm_generic_payload *trans) = 0;
46 virtual void update_dmi_allowed(ConfObjectRef &simics_obj, // NOLINT
47 tlm::tlm_generic_payload *trans) = 0;
48 virtual bool byte_enable_supported(ConfObjectRef &simics_obj, // NOLINT
49 tlm::tlm_generic_payload *trans) = 0;
50 virtual const GasketOwner *gasket_owner() const = 0;
51 virtual const InterfaceProvider *interface_provider() const = 0;
52 virtual iface::ReceiverInterface *receiver() {return NULL;}
54 }
55};
56
57} // namespace tlm2simics
58} // namespace systemc
59} // namespace simics
60
61#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:31
Interface used by Gasket, implemented by protocol specific transaction handlers.
Definition: transaction_handler_interface.h:36
virtual unsigned int debug_transaction(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans)=0
virtual const InterfaceProvider * interface_provider() const =0
virtual void update_dmi_allowed(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans)=0
virtual const GasketOwner * gasket_owner() const =0
virtual ~TransactionHandlerInterface()
Definition: transaction_handler_interface.h:53
virtual bool byte_enable_supported(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans)=0
virtual iface::ReceiverInterface * receiver()
Definition: transaction_handler_interface.h:52
virtual bool get_direct_mem_ptr(ConfObjectRef &simics_obj, tlm::tlm_generic_payload &trans, tlm::tlm_dmi &dmi_data)=0
virtual tlm::tlm_response_status simics_transaction(ConfObjectRef &simics_obj, tlm::tlm_generic_payload *trans)=0
Definition: pci_bus_interface.h:24