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// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2024 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_IFACE_PCIE_MAP_INTERFACE_H
17#define SIMICS_SYSTEMC_IFACE_PCIE_MAP_INTERFACE_H
18
19#include <stdint.h>
20#include <simics/base/conf-object.h>
23
24namespace simics {
25namespace systemc {
26namespace iface {
27
30 public:
31 virtual void add_map(types::map_info_t info, types::pcie_type_t type) = 0;
33 types::pcie_type_t type) = 0;
34 virtual void add_function(conf_object_t *map_obj, uint16_t function_id) = 0;
35 virtual void del_function(conf_object_t *map_obj, uint16_t function_id) = 0;
36 virtual void enable_function(uint16_t function_id) = 0;
37 virtual void disable_function(uint16_t function_id) = 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:29
virtual void add_function(conf_object_t *map_obj, uint16_t function_id)=0
virtual void del_map(types::map_info_t::physical_address_t base, types::pcie_type_t type)=0
virtual void disable_function(uint16_t function_id)=0
virtual void add_map(types::map_info_t info, types::pcie_type_t type)=0
virtual void del_function(conf_object_t *map_obj, uint16_t function_id)=0
virtual uint16_t get_device_id(conf_object_t *dev_obj)=0
virtual void enable_function(uint16_t function_id)=0
virtual ~PcieMapInterface()
Definition: pcie_map_interface.h:39
pcie_type_t
Definition: pcie_type.h:22
Definition: adapter.h:80
Reduced, stand-alone, version of the Simics map_info_t struct.
Definition: map_info.h:25
uint64_t physical_address_t
Definition: map_info.h:26