summaryrefslogtreecommitdiff
path: root/Platform/AMD/AgesaModulePkg/Library/NbioHandleLib/NbioHandleLib.c
blob: 352ae3f3c0e3c6b23582640d1d9dd6bd2f2d038a (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
/** @file

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

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

**/
#include  <GnbDxio.h>
#include  <Library/NbioHandleLib.h>
#include  <Library/AmdBaseLib.h>

/**
  Get GNB handle

 @param[in]       Pcie           Pointer to global PCIe configuration

**/
GNB_HANDLE *
NbioGetHandle (
  IN PCIE_PLATFORM_CONFIG  *Pcie
  )
{
  return NULL;
}

/**
  Get GNB handle of alternate host bridge (e.g. MI200)

  @param[in]       Pcie           Pointer to global PCIe configuration
**/
GNB_HANDLE *
NbioGetAltHandle (
  IN PCIE_PLATFORM_CONFIG  *Pcie
  )
{
  return NULL;
}

/**
  Get GNB handle of next socket

  @param[in]       NbioHandle        Pointer to current GnbHandle
**/
GNB_HANDLE *
NbioGetNextSocket (
  IN GNB_HANDLE  *NbioHandle
  )
{
  return NULL;
}

/**
  Get PCI_ADDR of GNB

  @param[in]  Handle           Pointer to GNB_HANDLE
**/
PCI_ADDR
NbioGetHostPciAddress (
  IN      GNB_HANDLE  *Handle
  )
{
  PCI_ADDR  PciAddr;

  PciAddr.AddressValue = 0;
  return PciAddr;
}