SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
Loading...
Searching...
No Matches
mii_management.h
Go to the documentation of this file.
1
// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3
/*
4
© 2021 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_SIMICS2TLM_MII_MANAGEMENT_H
17
#define SIMICS_SYSTEMC_SIMICS2TLM_MII_MANAGEMENT_H
18
19
#include <
simics/systemc/simics2tlm/gasket_owner.h
>
20
#include <
simics/systemc/simics2tlm/extension_sender.h
>
21
#include <
simics/systemc/iface/mii_management_extension.h
>
22
#include <
simics/systemc/iface/mii_management_interface.h
>
23
24
#include <stdint.h>
25
26
namespace
simics
{
27
namespace
systemc {
28
namespace
simics2tlm {
29
35
class
MiiManagement
:
public
iface::MiiManagementInterface
,
36
public
GasketOwner
{
37
public
:
38
// GasketOwner
39
void
gasketUpdated
()
override
;
40
41
// MiiManagementInterface
42
int
serial_access
(
int
data_in,
int
clock)
override
;
43
uint16
read_register
(
int
phy,
int
reg)
override
;
44
void
write_register
(
int
phy,
int
reg, uint16 value)
override
;
45
46
private
:
47
ExtensionSender
sender_;
48
iface::MiiManagementExtension
extension_;
49
};
50
51
}
// namespace simics2tlm
52
}
// namespace systemc
53
}
// namespace simics
54
55
#endif
simics::systemc::iface::MiiManagementExtension
Definition:
mii_management_extension.h:28
simics::systemc::iface::MiiManagementInterface
Definition:
mii_management_interface.h:25
simics::systemc::simics2tlm::ExtensionSender
Specialized extension sender for simics2tlm gaskets.
Definition:
extension_sender.h:31
simics::systemc::simics2tlm::GasketOwner
Base class, responsible for handling a gasket.
Definition:
gasket_owner.h:32
simics::systemc::simics2tlm::MiiManagement
Class that implements the Simics C++ MiiManagementInterface and translates it into a TLM transaction ...
Definition:
mii_management.h:36
simics::systemc::simics2tlm::MiiManagement::read_register
uint16 read_register(int phy, int reg) override
simics::systemc::simics2tlm::MiiManagement::serial_access
int serial_access(int data_in, int clock) override
simics::systemc::simics2tlm::MiiManagement::write_register
void write_register(int phy, int reg, uint16 value) override
simics::systemc::simics2tlm::MiiManagement::gasketUpdated
void gasketUpdated() override
mii_management_extension.h
mii_management_interface.h
simics
Definition:
pci_bus_interface.h:24
extension_sender.h
gasket_owner.h