SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
cci_attribute.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2020 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_AWARENESS_CCI_ATTRIBUTE_H
17#define SIMICS_SYSTEMC_AWARENESS_CCI_ATTRIBUTE_H
18
19#include <simics/base/attr-value.h>
20#include <simics/base/conf-object.h>
21
22#if INTC_EXT && USE_SIMICS_CCI
23#include <cci_configuration>
24#endif
25
27
28#include <string>
29
30namespace simics {
31namespace systemc {
32namespace awareness {
33
34class CciAttribute : public Attribute {
35 public:
36 explicit CciAttribute(int key);
37 virtual ~CciAttribute();
39 virtual Attribute *create();
40 virtual attr_value_t get() const;
41 virtual set_error_t set(attr_value_t *val);
42 static int define(std::string parameter_name);
43
45
46 private:
47 std::string parameter_name_;
48#if INTC_EXT && USE_SIMICS_CCI
49 cci::cci_param_handle *parameter_;
50#endif
51};
52
53} // namespace awareness
54} // namespace systemc
55} // namespace simics
56
57#endif
Definition: attribute.h:26
int key() const
Definition: attribute.h:31
Definition: cci_attribute.h:34
virtual set_error_t set(attr_value_t *val)
CciAttribute & operator=(const CciAttribute &)=delete
static int define(std::string parameter_name)
CciAttribute(const CciAttribute &copy)
virtual attr_value_t get() const
Definition: pci_bus_interface.h:24