SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
pcie_map_interface.h
Go to the documentation of this file.
1/*
2 © 2024 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_IFACE_PCIE_MAP_INTERFACE_H
15#define SIMICS_SYSTEMC_IFACE_PCIE_MAP_INTERFACE_H
16
17#include <stdint.h>
18#include <simics/base/conf-object.h>
21
22namespace simics {
23namespace systemc {
24namespace iface {
25
28 public:
29 virtual void add_map(types::map_info_t info, types::pcie_type_t type) = 0;
31 types::pcie_type_t type) = 0;
32 virtual void add_function(conf_object_t *map_obj,
33 uint16_t device_and_function) = 0;
34 virtual void del_function(conf_object_t *map_obj,
35 uint16_t device_and_function) = 0;
36 virtual void enable_function(uint16_t device_and_function) = 0;
37 virtual void disable_function(uint16_t device_and_function) = 0;
38 virtual uint16_t get_device_id(conf_object_t *dev_obj) = 0;
39 virtual ~PcieMapInterface() {}
40};
41
42} // namespace iface
43} // namespace systemc
44} // namespace simics
45
46#endif
Simics pcie_map interface.
Definition: pcie_map_interface.h:27
virtual void del_map(types::map_info_t::physical_address_t base, types::pcie_type_t type)=0
virtual void disable_function(uint16_t device_and_function)=0
virtual void add_map(types::map_info_t info, types::pcie_type_t type)=0
virtual uint16_t get_device_id(conf_object_t *dev_obj)=0
virtual void add_function(conf_object_t *map_obj, uint16_t device_and_function)=0
virtual void enable_function(uint16_t device_and_function)=0
virtual ~PcieMapInterface()
Definition: pcie_map_interface.h:39
virtual void del_function(conf_object_t *map_obj, uint16_t device_and_function)=0
pcie_type_t
Definition: pcie_type.h:20
Definition: adapter.h:79
Reduced, stand-alone, version of the Simics map_info_t struct.
Definition: map_info.h:23
uint64_t physical_address_t
Definition: map_info.h:24