PciPlatform.h 2.1 KB

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