SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
ethernet_common.h
Go to the documentation of this file.
1/*
2 © 2016 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_ETHERNET_COMMON_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_ETHERNET_COMMON_H
16
22
23namespace simics {
24namespace systemc {
25namespace tlm2simics {
26
31 public TransactionHandler,
33 public:
35 : InterfaceProvider("ethernet_common"),
37 iface::EthernetCommonExtension::createIgnoreReceiver()),
38 receiver_(
39 iface::EthernetCommonExtension::createReceiver(this)) {
40 }
41 virtual ~EthernetCommon();
42
43 // EthernetCommonInterface
44 void frame(const types::frags_t *frame, int crc) override;
45 // TransactionHandler
47
48 private:
49 tlm::tlm_response_status simics_transaction(
50 ConfObjectRef &simics_obj,
51 tlm::tlm_generic_payload *trans) override;
52 iface::ReceiverInterface *receiver_;
53};
54
55} // namespace tlm2simics
56} // namespace systemc
57} // namespace simics
58
59#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:30
Simics ethernet_common interface.
Definition: ethernet_common_interface.h:24
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:27
Protocol specific transaction handler for Simics ethernet_common interface.
Definition: ethernet_common.h:32
void frame(const types::frags_t *frame, int crc) override
EthernetCommon()
Definition: ethernet_common.h:34
iface::ReceiverInterface * receiver() override
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:34
Definition: adapter.h:79
Definition: frags.h:36