1 | /** @file
|
---|
2 | Default PCI Segment Information Library that returns one segment whose
|
---|
3 | segment base address equals to PcdPciExpressBaseAddress.
|
---|
4 |
|
---|
5 | Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #include <Base.h>
|
---|
11 | #include <Library/PciSegmentInfoLib.h>
|
---|
12 | #include <Library/DebugLib.h>
|
---|
13 |
|
---|
14 | /**
|
---|
15 | Return an array of PCI_SEGMENT_INFO holding the segment information.
|
---|
16 |
|
---|
17 | Note: The returned array/buffer is owned by callee.
|
---|
18 |
|
---|
19 | @param Count Return the count of segments.
|
---|
20 |
|
---|
21 | @retval A callee owned array holding the segment information.
|
---|
22 | **/
|
---|
23 | PCI_SEGMENT_INFO *
|
---|
24 | EFIAPI
|
---|
25 | GetPciSegmentInfo (
|
---|
26 | UINTN *Count
|
---|
27 | )
|
---|
28 | {
|
---|
29 | ASSERT (FALSE);
|
---|
30 | *Count = 0;
|
---|
31 | return NULL;
|
---|
32 | }
|
---|