VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/PciSegmentInfoLib.h@ 77662

Last change on this file since 77662 was 77662, checked in by vboxsync, 6 years ago

EFI: First step in UDK2018 merge. Does not build yet.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1/** @file
2 Provides services to return segment information on a platform with multiple PCI segments.
3
4 This library is consumed by PciSegmentLib to support multiple segment PCI configuration access.
5
6 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15**/
16
17#ifndef __PCI_SEGMENT_INFO_LIB__
18#define __PCI_SEGMENT_INFO_LIB__
19
20typedef struct {
21 UINT16 SegmentNumber; ///< Segment number.
22 UINT64 BaseAddress; ///< ECAM Base address.
23 UINT8 StartBusNumber; ///< Start BUS number, for verifying the PCI Segment address.
24 UINT8 EndBusNumber; ///< End BUS number, for verifying the PCI Segment address.
25} PCI_SEGMENT_INFO;
26
27/**
28 Return an array of PCI_SEGMENT_INFO holding the segment information.
29
30 Note: The returned array/buffer is owned by callee.
31
32 @param Count Return the count of segments.
33
34 @retval A callee owned array holding the segment information.
35**/
36PCI_SEGMENT_INFO *
37GetPciSegmentInfo (
38 UINTN *Count
39 );
40
41#endif
Note: See TracBrowser for help on using the repository browser.

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