blob: 29eca2cc40fd0167e6713d9c1a6a4c9164aff11b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/**
* @file fapiSystemConfig.H
*
* @brief Defines the System Config query functions that platform code must
* implement. It is an eCMD requirement that these be "C" functions.
*/
#ifndef FAPISYSTEMCONFIG_H_
#define FAPISYSTEMCONFIG_H_
#include <stdint.h>
#include <vector>
#include <fapiReturnCode.H>
#include <fapiTarget.H>
extern "C"
{
/**
* @brief Gets the functional chiplets that are children of the supplied target
*
* @param[in] i_target Parent target
* @param[in] i_targetType Type of chiplet required
* @param[out] o_chiplets Reference to vector that is filled in with the
* result chiplets
*
* @return ReturnCode. Zero on success, else error
*/
fapi::ReturnCode GetFunctionalChiplets(const fapi::Target& i_target,
const fapi::TargetType i_chipletType,
std::vector<fapi::Target> & o_chiplets);
/**
* @brief Gets the existing chiplets that are children of the supplied target
*
* @param[in] i_target Parent target
* @param[in] i_targetType Type of chiplet required
* @param[out] o_chiplets Reference to vector that is filled in with the
* result chiplets
*
* @return ReturnCode. Zero on success, else error
*/
fapi::ReturnCode GetExistingChiplets(const fapi::Target& i_target,
const fapi::TargetType i_chipletType,
std::vector<fapi::Target> & o_chiplets);
/**
* @brief Gets the functional DIMMs that are children of the supplied target
*
* @param[in] i_target Parent target
* @param[out] o_dimms Reference to vector that is filled in with the result
* DIMMs
*
* @return ReturnCode. Zero on success, else error
*/
fapi::ReturnCode GetFunctionalDimms(const fapi::Target& i_target,
std::vector<fapi::Target> & o_dimms);
/**
* @brief Gets the existing DIMMs that are children of the supplied target
*
* @param[in] i_target Parent target
* @param[out] o_dimms Reference to vector that is filled in with the result
* DIMMs
*
* @return ReturnCode. Zero on success, else error
*/
fapi::ReturnCode GetExistingDimms(const fapi::Target& i_target,
std::vector<fapi::Target> & o_dimms);
} // extern "C"
#endif // FAPISYSTEMCONFIG_H_
|