2017-08-04 07:10:59 +02:00
|
|
|
/** @file
|
|
|
|
Provides services to return segment information on a platform with multiple PCI segments.
|
|
|
|
|
|
|
|
This library is consumed by PciSegmentLib to support multiple segment PCI configuration access.
|
|
|
|
|
2020-06-03 11:42:23 +02:00
|
|
|
Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2017-08-04 07:10:59 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __PCI_SEGMENT_INFO_LIB__
|
|
|
|
#define __PCI_SEGMENT_INFO_LIB__
|
|
|
|
|
|
|
|
typedef struct {
|
2021-12-05 23:54:05 +01:00
|
|
|
UINT16 SegmentNumber; ///< Segment number.
|
|
|
|
UINT64 BaseAddress; ///< ECAM Base address.
|
|
|
|
UINT8 StartBusNumber; ///< Start BUS number, for verifying the PCI Segment address.
|
|
|
|
UINT8 EndBusNumber; ///< End BUS number, for verifying the PCI Segment address.
|
2017-08-04 07:10:59 +02:00
|
|
|
} PCI_SEGMENT_INFO;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Return an array of PCI_SEGMENT_INFO holding the segment information.
|
|
|
|
|
|
|
|
Note: The returned array/buffer is owned by callee.
|
|
|
|
|
|
|
|
@param Count Return the count of segments.
|
|
|
|
|
|
|
|
@retval A callee owned array holding the segment information.
|
|
|
|
**/
|
|
|
|
PCI_SEGMENT_INFO *
|
2020-06-03 11:42:23 +02:00
|
|
|
EFIAPI
|
2017-08-04 07:10:59 +02:00
|
|
|
GetPciSegmentInfo (
|
|
|
|
UINTN *Count
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|