]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PciPlatform/BoardPciPlatform.c
0372c175a6ca8bf5d7e388fcdf4f23a08892cc7a
[mirror_edk2.git] / Vlv2TbltDevicePkg / PciPlatform / BoardPciPlatform.c
1 /** @file
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
12 BoardPciPlatform.c
13
14 Abstract:
15
16 Revision History:
17 --*/
18
19
20 #include "PciPlatform.h"
21 #include "PchRegs.h"
22 #include "VlvAccess.h"
23
24 #define R_INTEL_LAN_VENDOR_ID 0x00
25 #define V_INTEL_LAN_VENDOR_ID 0x8086 // INTEL 82574 Gbe Controller Vendor ID
26 #define R_INTEL_LAN_DEVICE_ID 0x02
27 #define V_INTEL_LAN_DEVICE_ID 0x153E // INTEL 82574 Gbe Controller Device ID
28
29 //
30 // Global variables for Option ROMs
31 //
32
33 #define ONBOARD_VIDEO_OPTION_ROM_FILE_GUID \
34 { 0xF2FE1FAA, 0xF04A, 0x4ba1, 0xAE, 0x73, 0xD1, 0x84, 0x6A, 0x6C, 0xD6, 0xD8 }
35
36 #define PXE_UNDI_OPTION_ROM_INTELPXE_GUID \
37 {0x49F2C48B, 0x4D8E, 0x4238, 0x8D, 0x82, 0x9B, 0x27, 0xF4, 0x38, 0x44, 0xB0}
38
39 #define SATA_AHCI_ROM_GUID \
40 {0x592bfc62, 0xd817, 0x4d1a, 0x86, 0xf8, 0x33, 0x33, 0x4c, 0x9e, 0x90, 0xd8}
41
42 #define NULL_ROM_FILE_GUID \
43 { 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
44
45 PCI_OPTION_ROM_TABLE mPciOptionRomTable[] = {
46 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_VLV_A0, 0},
47 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID, 0}, // Desktop/Mobile IGD
48 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_II, 0}, // Desktop/Mobile IGD
49 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_QS, 0},
50 { NULL_ROM_FILE_GUID, 0, 0, 0, 0, 0xffff, 0xffff, 0}
51 };
52
53 UINTN mSizeOptionRomTable = sizeof(mPciOptionRomTable)/sizeof(PCI_OPTION_ROM_TABLE);
54
55