VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.h@ 80721

最後變更 在這個檔案從80721是 80721,由 vboxsync 提交於 6 年 前

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.3 KB
 
1/** @file
2 Provide common routines used by BasePciSegmentLibSegmentInfo and
3 DxeRuntimePciSegmentLibSegmentInfo libraries.
4
5 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef _PCI_SEGMENT_LIB_COMMON_H_
11#define _PCI_SEGMENT_LIB_COMMON_H_
12
13#include <Base.h>
14#include <IndustryStandard/PciExpress21.h>
15#include <Library/BaseLib.h>
16#include <Library/DebugLib.h>
17#include <Library/IoLib.h>
18#include <Library/PciSegmentLib.h>
19#include <Library/PciSegmentInfoLib.h>
20
21/**
22 Return the linear address for the physical address.
23
24 @param Address The physical address.
25
26 @retval The linear address.
27**/
28UINTN
29PciSegmentLibVirtualAddress (
30 IN UINTN Address
31 );
32
33/**
34 Internal function that converts PciSegmentLib format address that encodes the PCI Bus, Device,
35 Function and Register to ECAM (Enhanced Configuration Access Mechanism) address.
36
37 @param Address The address that encodes the PCI Bus, Device, Function and
38 Register.
39 @param SegmentInfo An array of PCI_SEGMENT_INFO holding the segment information.
40 @param Count Number of segments.
41
42 @retval ECAM address.
43**/
44UINTN
45PciSegmentLibGetEcamAddress (
46 IN UINT64 Address,
47 IN CONST PCI_SEGMENT_INFO *SegmentInfo,
48 IN UINTN Count
49 );
50
51#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette