summaryrefslogtreecommitdiff
path: root/Platform/AMD/AgesaModulePkg/Library/PcieConfigLib/PcieInputParserLib.c
blob: fa0249aca02de2be725c7b6a1a24de12f1f9072e (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/** @file

  Copyright (C) 2008-2025 Advanced Micro Devices, Inc. All rights reserved.<BR>

  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#include  <GnbDxio.h>

/**
  Get number of complexes in platform topology configuration

  @param[in] ComplexList  First complex configuration in complex configuration array
  @retval                 Number of Complexes

**/
UINTN
PcieInputParserGetNumberOfComplexes (
  IN      PCIE_COMPLEX_DESCRIPTOR  *ComplexList
  )
{
  return 0;
}

/**
  Get number of PCIe engines in given complex

  @param[in] Complex     Complex configuration
  @retval                Number of Engines
**/
UINTN
PcieInputParserGetLengthOfPcieEnginesList (
  IN      PCIE_COMPLEX_DESCRIPTOR  *Complex
  )
{
  return 0;
}

/**
  Get number of DDI engines in given complex

  @param[in] Complex     Complex configuration
  @retval                Number of Engines
**/
UINTN
PcieInputParserGetLengthOfDdiEnginesList (
  IN      PCIE_COMPLEX_DESCRIPTOR  *Complex
  )
{
  return 0;
}

/**
  Get number of engines in given complex



  @param[in] Complex     Complex configuration header
  @retval                Number of Engines
**/
UINTN
PcieInputParserGetNumberOfEngines (
  IN      PCIE_COMPLEX_DESCRIPTOR  *Complex
  )
{
  return 0;
}

/**
  Get Complex descriptor by index from given Platform configuration

  @param[in] ComplexList Platform topology configuration
  @param[in] Index       Complex descriptor Index
  @retval                Pointer to Complex Descriptor
**/
PCIE_COMPLEX_DESCRIPTOR *
PcieInputParserGetComplexDescriptor (
  IN      PCIE_COMPLEX_DESCRIPTOR  *ComplexList,
  IN      UINTN                    Index
  )
{
  return NULL;
}

/**
  Get Complex descriptor by index from given Platform configuration

  @param[in] ComplexList  Platform topology configuration
  @param[in] SocketId     Socket Id
  @retval                Pointer to Complex Descriptor
**/
PCIE_COMPLEX_DESCRIPTOR *
PcieInputParserGetComplexDescriptorOfSocket (
  IN      PCIE_COMPLEX_DESCRIPTOR  *ComplexList,
  IN      UINT32                   SocketId
  )
{
  return NULL;
}

/**
  Get Engine descriptor from given complex by index

  @param[in] Complex     Complex descriptor
  @param[in] Index       Engine descriptor index
  @retval                Pointer to Engine Descriptor
**/
PCIE_ENGINE_DESCRIPTOR *
PcieInputParserGetEngineDescriptor (
  IN      PCIE_COMPLEX_DESCRIPTOR  *Complex,
  IN      UINTN                    Index
  )
{
  return NULL;
}