|
gem5
v21.1.0.2
|
Callback interface from PCI devices to the host. More...
#include <host.hh>
Public Member Functions | |
| DeviceInterface ()=delete | |
| void | operator= (const DeviceInterface &)=delete |
| const std::string | name () const |
| void | postInt () |
| Post a PCI interrupt to the CPU. More... | |
| void | clearInt () |
| Clear a posted PCI interrupt. More... | |
| Addr | pioAddr (Addr addr) const |
| Calculate the physical address of an IO location on the PCI bus. More... | |
| Addr | memAddr (Addr addr) const |
| Calculate the physical address of a non-prefetchable memory location in the PCI address space. More... | |
| Addr | dmaAddr (Addr addr) const |
| Calculate the physical address of a prefetchable memory location in the PCI address space. More... | |
Protected Member Functions | |
| DeviceInterface (PciHost &host, PciBusAddr &bus_addr, PciIntPin pin) | |
| Instantiate a device interface. More... | |
Protected Attributes | |
| PciHost & | host |
| const PciBusAddr | busAddr |
| const PciIntPin | interruptPin |
Friends | |
| class | gem5::PciHost |
Callback interface from PCI devices to the host.
Devices get an instance of this object when they register themselves with the host using the PciHost::registerDevice() call.
|
protected |
|
delete |
| void gem5::PciHost::DeviceInterface::clearInt | ( | ) |
Clear a posted PCI interrupt.
Definition at line 113 of file host.cc.
References DPRINTF.
Referenced by gem5::PciDevice::intrClear().
Calculate the physical address of a prefetchable memory location in the PCI address space.
| addr | Address in the PCI DMA memory address space |
Definition at line 149 of file host.hh.
References gem5::X86ISA::addr, busAddr, gem5::PciHost::dmaAddr(), and host.
Referenced by gem5::PciDevice::pciToDma().
Calculate the physical address of a non-prefetchable memory location in the PCI address space.
| addr | Address in the PCI memory address space |
Definition at line 140 of file host.hh.
References gem5::X86ISA::addr, busAddr, host, and gem5::PciHost::memAddr().
Referenced by gem5::PciMemBar::upper(), and gem5::PciMemBar::write().
| const std::string gem5::PciHost::DeviceInterface::name | ( | ) | const |
Definition at line 98 of file host.cc.
References gem5::csprintf().
|
delete |
Calculate the physical address of an IO location on the PCI bus.
| addr | Address in the PCI IO address space |
Definition at line 131 of file host.hh.
References gem5::X86ISA::addr, busAddr, host, and gem5::PciHost::pioAddr().
Referenced by gem5::PciIoBar::write(), and gem5::PciLegacyIoBar::write().
| void gem5::PciHost::DeviceInterface::postInt | ( | ) |
Post a PCI interrupt to the CPU.
Definition at line 105 of file host.cc.
References DPRINTF.
Referenced by gem5::PciDevice::intrPost().
|
friend |
|
protected |
|
protected |
|
protected |