TianoCore EDK2 master
Loading...
Searching...
No Matches
FdtPciPcdProducerLib.c File Reference

Go to the source code of this file.

Data Structures

struct  DTB_PCI_HOST_RANGE_RECORD
 

Macros

#define DTB_PCI_HOST_RANGE_RELOCATABLE   BIT31
 
#define DTB_PCI_HOST_RANGE_PREFETCHABLE   BIT30
 
#define DTB_PCI_HOST_RANGE_ALIASED   BIT29
 
#define DTB_PCI_HOST_RANGE_MMIO32   BIT25
 
#define DTB_PCI_HOST_RANGE_MMIO64   (BIT25 | BIT24)
 
#define DTB_PCI_HOST_RANGE_IO   BIT24
 
#define DTB_PCI_HOST_RANGE_TYPEMASK   (BIT31 | BIT30 | BIT29 | BIT25 | BIT24)
 

Functions

STATIC RETURN_STATUS GetPciIoTranslation (IN FDT_CLIENT_PROTOCOL *FdtClient, IN INT32 Node, OUT UINT64 *IoTranslation)
 
RETURN_STATUS EFIAPI FdtPciPcdProducerLibConstructor (VOID)
 

Detailed Description

FDT client library for consumers of PCI related dynamic PCDs

Copyright (c) 2016, Linaro Ltd. All rights reserved.

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

Definition in file FdtPciPcdProducerLib.c.

Macro Definition Documentation

◆ DTB_PCI_HOST_RANGE_ALIASED

#define DTB_PCI_HOST_RANGE_ALIASED   BIT29

Definition at line 34 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_IO

#define DTB_PCI_HOST_RANGE_IO   BIT24

Definition at line 37 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_MMIO32

#define DTB_PCI_HOST_RANGE_MMIO32   BIT25

Definition at line 35 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_MMIO64

#define DTB_PCI_HOST_RANGE_MMIO64   (BIT25 | BIT24)

Definition at line 36 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_PREFETCHABLE

#define DTB_PCI_HOST_RANGE_PREFETCHABLE   BIT30

Definition at line 33 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_RELOCATABLE

#define DTB_PCI_HOST_RANGE_RELOCATABLE   BIT31

Definition at line 32 of file FdtPciPcdProducerLib.c.

◆ DTB_PCI_HOST_RANGE_TYPEMASK

#define DTB_PCI_HOST_RANGE_TYPEMASK   (BIT31 | BIT30 | BIT29 | BIT25 | BIT24)

Definition at line 38 of file FdtPciPcdProducerLib.c.

Function Documentation

◆ FdtPciPcdProducerLibConstructor()

RETURN_STATUS EFIAPI FdtPciPcdProducerLibConstructor ( VOID  )

Definition at line 86 of file FdtPciPcdProducerLib.c.

◆ GetPciIoTranslation()

STATIC RETURN_STATUS GetPciIoTranslation ( IN FDT_CLIENT_PROTOCOL FdtClient,
IN INT32  Node,
OUT UINT64 *  IoTranslation 
)

Definition at line 42 of file FdtPciPcdProducerLib.c.