SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
pci_express.h
Go to the documentation of this file.
1/*
2 © 2018 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_TLM2SIMICS_PCI_EXPRESS_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_PCI_EXPRESS_H
16
17#if defined SIMICS_6_API || defined SHOW_OBSOLETE_API
18
24
25#include <vector>
26
27namespace simics {
28namespace systemc {
29namespace tlm2simics {
30
31class PciExpress : public InterfaceProvider,
32 public TransactionHandler,
33 public iface::PciExpressInterface {
34 public:
35 PciExpress()
36 : InterfaceProvider("pci_express"),
37 TransactionHandler(
38 this,
39 iface::PciExpressExtension::createIgnoreReceiver()),
40 receiver_(iface::PciExpressExtension::createReceiver(this)),
41 device_(NULL) {
42 }
43 virtual ~PciExpress();
44
45 int send_message(int type, const std::vector<uint8_t> &payload) override;
46 // TransactionHandler
47 iface::ReceiverInterface *receiver() override;
48
49 private:
50 tlm::tlm_response_status simics_transaction(
51 ConfObjectRef &simics_obj,
52 tlm::tlm_generic_payload *trans) override;
53 iface::ReceiverInterface *receiver_;
54
55 conf_object_t *device_;
56};
57
58} // namespace tlm2simics
59} // namespace systemc
60} // namespace simics
61
62#endif
63#endif
Definition: adapter.h:79