]>
Commit | Line | Data |
---|---|---|
e457c1f6 RN |
1 | /** @file\r |
2 | Provides services to return segment information on a platform with multiple PCI segments.\r | |
3 | \r | |
4 | This library is consumed by PciSegmentLib to support multiple segment PCI configuration access.\r | |
5 | \r | |
6 | Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r | |
9344f092 | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e457c1f6 RN |
8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef __PCI_SEGMENT_INFO_LIB__\r | |
12 | #define __PCI_SEGMENT_INFO_LIB__\r | |
13 | \r | |
14 | typedef struct {\r | |
15 | UINT16 SegmentNumber; ///< Segment number.\r | |
16 | UINT64 BaseAddress; ///< ECAM Base address.\r | |
17 | UINT8 StartBusNumber; ///< Start BUS number, for verifying the PCI Segment address.\r | |
18 | UINT8 EndBusNumber; ///< End BUS number, for verifying the PCI Segment address.\r | |
19 | } PCI_SEGMENT_INFO;\r | |
20 | \r | |
21 | /**\r | |
22 | Return an array of PCI_SEGMENT_INFO holding the segment information.\r | |
23 | \r | |
24 | Note: The returned array/buffer is owned by callee.\r | |
25 | \r | |
26 | @param Count Return the count of segments.\r | |
27 | \r | |
28 | @retval A callee owned array holding the segment information.\r | |
29 | **/\r | |
30 | PCI_SEGMENT_INFO *\r | |
31 | GetPciSegmentInfo (\r | |
32 | UINTN *Count\r | |
33 | );\r | |
34 | \r | |
35 | #endif\r |