3 Copyright (c) 2005 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 PcatPciRootBridgeDevicePath.c
17 EFI PCAT PCI Root Bridge Device Path Protocol
23 #include "PcatPciRootBridge.h"
26 // Static device path declarations for this driver.
30 ACPI_HID_DEVICE_PATH AcpiDevicePath
;
31 EFI_DEVICE_PATH_PROTOCOL EndDevicePath
;
32 } EFI_PCI_ROOT_BRIDGE_DEVICE_PATH
;
34 EFI_PCI_ROOT_BRIDGE_DEVICE_PATH mEfiPciRootBridgeDevicePath
= {
38 (UINT8
) (sizeof(ACPI_HID_DEVICE_PATH
)),
39 (UINT8
) ((sizeof(ACPI_HID_DEVICE_PATH
)) >> 8),
45 END_ENTIRE_DEVICE_PATH_SUBTYPE
,
46 END_DEVICE_PATH_LENGTH
,
52 PcatRootBridgeDevicePathConstructor (
53 IN EFI_DEVICE_PATH_PROTOCOL
**Protocol
,
54 IN UINTN RootBridgeNumber
,
55 IN BOOLEAN IsPciExpress
61 Construct the device path protocol
65 Protocol - protocol to initialize
73 ACPI_HID_DEVICE_PATH
*AcpiDevicePath
;
75 *Protocol
= DuplicateDevicePath((EFI_DEVICE_PATH_PROTOCOL
*)(&mEfiPciRootBridgeDevicePath
));
77 AcpiDevicePath
= (ACPI_HID_DEVICE_PATH
*)(*Protocol
);
79 AcpiDevicePath
->UID
= (UINT32
)RootBridgeNumber
;
82 AcpiDevicePath
->HID
= EISA_PNP_ID(0x0A08);