]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PciPlatform/PciPlatform.h
Vlv2TbltDevicePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2TbltDevicePkg / PciPlatform / PciPlatform.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7
8
9 Module Name:
10
11 PciPlatform.h
12
13 Abstract:
14
15 --*/
16 #ifndef PCI_PLATFORM_H_
17 #define PCI_PLATFORM_H_
18
19
20 #include <PiDxe.h>
21 #include "Platform.h"
22
23 //
24 // Produced Protocols
25 //
26 #include <Protocol/PciPlatform.h>
27
28 #define IGD_DID_II 0x0BE1
29 #define IGD_DID_0BE4 0x0BE4
30 #define IGD_DID_VLV_A0 0x0F31
31 #define OPROM_DID_OFFSET 0x46
32
33 typedef struct {
34 EFI_GUID FileName;
35 UINTN Segment;
36 UINTN Bus;
37 UINTN Device;
38 UINTN Function;
39 UINT16 VendorId;
40 UINT16 DeviceId;
41 UINT8 Flag;
42 } PCI_OPTION_ROM_TABLE;
43
44 EFI_STATUS
45 EFIAPI
46 PhaseNotify (
47 IN EFI_PCI_PLATFORM_PROTOCOL *This,
48 IN EFI_HANDLE HostBridge,
49 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase,
50 IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
51 );
52
53
54 EFI_STATUS
55 EFIAPI
56 PlatformPrepController (
57 IN EFI_PCI_PLATFORM_PROTOCOL *This,
58 IN EFI_HANDLE HostBridge,
59 IN EFI_HANDLE RootBridge,
60 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS PciAddress,
61 IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase,
62 IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
63 );
64
65 EFI_STATUS
66 EFIAPI
67 GetPlatformPolicy (
68 IN CONST EFI_PCI_PLATFORM_PROTOCOL *This,
69 OUT EFI_PCI_PLATFORM_POLICY *PciPolicy
70 );
71
72 EFI_STATUS
73 EFIAPI
74 GetPciRom (
75 IN CONST EFI_PCI_PLATFORM_PROTOCOL *This,
76 IN EFI_HANDLE PciHandle,
77 OUT VOID **RomImage,
78 OUT UINTN *RomSize
79 );
80
81 #endif
82
83