SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
pcie_atom.h
Go to the documentation of this file.
1/*
2 © 2026 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_PCIE_ATOM_H
15#define SIMICS_SYSTEMC_PCIE_ATOM_H
16
17#include <simics/devs/pci.h>
19
20#include <cstring>
21#include <type_traits>
22
23namespace simics {
24namespace systemc {
25
26static_assert(std::is_trivially_copyable<::pcie_ide_secured_t>::value
27 && std::is_trivially_copyable<
28 types::pcie_ide_secured_t>::value,
29 "PCIe IDE secured types must be trivially copyable");
30static_assert(sizeof(::pcie_ide_secured_t)
31 == sizeof(types::pcie_ide_secured_t),
32 "PCIe IDE secured types must have the same size");
33
35 const ::pcie_ide_secured_t &src) {
37 std::memcpy(&dst, &src, sizeof(dst));
38 return dst;
39}
40
41inline ::pcie_ide_secured_t toSimicsIdeSecured(
42 const types::pcie_ide_secured_t &src) {
43 ::pcie_ide_secured_t dst;
44 std::memcpy(&dst, &src, sizeof(dst));
45 return dst;
46}
47
48} // namespace systemc
49} // namespace simics
50
51#endif
types::pcie_ide_secured_t toSystemCIdeSecured(const ::pcie_ide_secured_t &src)
Definition: pcie_atom.h:34
inline ::pcie_ide_secured_t toSimicsIdeSecured(const types::pcie_ide_secured_t &src)
Definition: pcie_atom.h:41
Definition: adapter.h:79
Definition: pcie_type.h:102