16#ifndef SIMICS_SYSTEMC_IFACE_PCI_DEVICE_SIMICS_ADAPTER_H
17#define SIMICS_SYSTEMC_IFACE_PCI_DEVICE_SIMICS_ADAPTER_H
19#include <simics/devs/pci.h>
30#if defined SIMICS_5_API
31#define DEPRECATED_FUNC(f) f
33#define DEPRECATED_FUNC(f) _deprecated_ ## f
37template<
typename TBase,
typename TInterface = PciDeviceInterface>
42 PCI_DEVICE_INTERFACE, init_iface()) {
47 adapter<TBase, TInterface>(obj)->bus_reset();
50 adapter<TBase, TInterface>(obj)->system_error();
53 adapter<TBase, TInterface>(obj)->interrupt_raised(pin);
56 adapter<TBase, TInterface>(obj)->interrupt_lowered(pin);
60 std::vector<std::string> description(conf_object_t *obj,
62 return descriptionBase<TBase, TInterface>(obj, type);
64 pci_device_interface_t init_iface() {
65 pci_device_interface_t iface = {};
67 iface.DEPRECATED_FUNC(interrupt_acknowledge) = NULL;
68 iface.DEPRECATED_FUNC(special_cycle) = NULL;
Adapter for Simics pci_device interface.
Definition: pci_device_simics_adapter.h:38
static void system_error(conf_object_t *obj)
Definition: pci_device_simics_adapter.h:49
static void interrupt_raised(conf_object_t *obj, int pin)
Definition: pci_device_simics_adapter.h:52
static void interrupt_lowered(conf_object_t *obj, int pin)
Definition: pci_device_simics_adapter.h:55
static void bus_reset(conf_object_t *obj)
Definition: pci_device_simics_adapter.h:46
PciDeviceSimicsAdapter()
Definition: pci_device_simics_adapter.h:40
Base class for mapping Simics interface to a C++ interface.
Definition: simics_adapter.h:47
DescriptionType
Definition: description_interface.h:25
Definition: pci_bus_interface.h:24