16#ifndef SIMICS_SYSTEMC_SIMICS2TLM_MII_MANAGEMENT_GASKET_ADAPTER_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_MII_MANAGEMENT_GASKET_ADAPTER_H
35 MiiManagementInterface *mii_management,
37 : mii_management_(mii_management),
38 simulation_(simulation) {
43 return mii_management_->serial_access(data_in, clock);
47 return mii_management_->read_register(phy, reg);
51 mii_management_->write_register(phy, reg, value);
59 MiiManagementInterface *mii_management_;
Utility class that handles the context switching, using RAII methodology.
Definition: context.h:31
Definition: mii_management_interface.h:25
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
Definition: gasket_adapter.h:45
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:32
Definition: mii_management_gasket_adapter.h:32
void write_register(int phy, int reg, uint16_t value) override
Definition: mii_management_gasket_adapter.h:49
uint16_t read_register(int phy, int reg) override
Definition: mii_management_gasket_adapter.h:45
simics2tlm::GasketOwner * gasket_owner() const override
Definition: mii_management_gasket_adapter.h:54
int serial_access(int data_in, int clock) override
Definition: mii_management_gasket_adapter.h:41
MiiManagementGasketAdapter(MiiManagementInterface *mii_management, iface::SimulationInterface *simulation)
Definition: mii_management_gasket_adapter.h:34
Definition: pci_bus_interface.h:24