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// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2018 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_PCI_EXPRESS_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_PCI_EXPRESS_H
18
19#if defined SIMICS_5_API || defined SIMICS_6_API
20
26
27#include <vector>
28
29namespace simics {
30namespace systemc {
31namespace tlm2simics {
32
33class PciExpress : public InterfaceProvider,
34 public TransactionHandler,
35 public iface::PciExpressInterface {
36 public:
37 PciExpress()
38 : InterfaceProvider("pci_express"),
39 TransactionHandler(
40 this,
41 iface::PciExpressExtension::createIgnoreReceiver()),
42 receiver_(iface::PciExpressExtension::createReceiver(this)),
43 device_(NULL) {
44 }
45 virtual ~PciExpress();
46
47 int send_message(int type, const std::vector<uint8_t> &payload) override;
48 // TransactionHandler
49 iface::ReceiverInterface *receiver() override;
50
51 private:
52 tlm::tlm_response_status simics_transaction(
53 ConfObjectRef &simics_obj,
54 tlm::tlm_generic_payload *trans) override;
55 iface::ReceiverInterface *receiver_;
56
57 conf_object_t *device_;
58};
59
60} // namespace tlm2simics
61} // namespace systemc
62} // namespace simics
63
64#endif
65#endif
Definition: pci_bus_interface.h:24