]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PciPlatform/PciPlatform.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / PciPlatform / PciPlatform.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13
14 Module Name:
15
16 PciPlatform.h
17
18 Abstract:
19
20 --*/
21 #ifndef PCI_PLATFORM_H_
22 #define PCI_PLATFORM_H_
23
24
25 #include <PiDxe.h>
26 #include "Platform.h"
27
28 //
29 // Produced Protocols
30 //
31 #include <Protocol/PciPlatform.h>
32
33 #define IGD_DID_II 0x0BE1
34 #define IGD_DID_0BE4 0x0BE4
35 #define IGD_DID_VLV_A0 0x0F31
36 #define OPROM_DID_OFFSET 0x46
37
38 typedef struct {
39 EFI_GUID FileName;
40 UINTN Segment;
41 UINTN Bus;
42 UINTN Device;
43 UINTN Function;
44 UINT16 VendorId;
45 UINT16 DeviceId;
46 UINT8 Flag;
47 } PCI_OPTION_ROM_TABLE;
48
49 EFI_STATUS
50 EFIAPI
51 PhaseNotify (
52 IN EFI_PCI_PLATFORM_PROTOCOL *This,
53 IN EFI_HANDLE HostBridge,
54 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase,
55 IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
56 );
57
58
59 EFI_STATUS
60 EFIAPI
61 PlatformPrepController (
62 IN EFI_PCI_PLATFORM_PROTOCOL *This,
63 IN EFI_HANDLE HostBridge,
64 IN EFI_HANDLE RootBridge,
65 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS PciAddress,
66 IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase,
67 IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
68 );
69
70 EFI_STATUS
71 EFIAPI
72 GetPlatformPolicy (
73 IN CONST EFI_PCI_PLATFORM_PROTOCOL *This,
74 OUT EFI_PCI_PLATFORM_POLICY *PciPolicy
75 );
76
77 EFI_STATUS
78 EFIAPI
79 GetPciRom (
80 IN CONST EFI_PCI_PLATFORM_PROTOCOL *This,
81 IN EFI_HANDLE PciHandle,
82 OUT VOID **RomImage,
83 OUT UINTN *RomSize
84 );
85
86 #endif
87
88