1 /** @file 2 3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> 4 5 6 This program and the accompanying materials are licensed and made available under 7 8 the terms and conditions of the BSD License that accompanies this distribution. 9 10 The full text of the license may be found at 11 12 http://opensource.org/licenses/bsd-license.php. 13 14 15 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 19 20 21 22 23 Module Name: 24 25 26 BoardPciPlatform.c 27 28 Abstract: 29 30 Revision History: 31 --*/ 32 33 34 #include "PciPlatform.h" 35 #include "PchRegs.h" 36 #include "VlvAccess.h" 37 38 #define R_INTEL_LAN_VENDOR_ID 0x00 39 #define V_INTEL_LAN_VENDOR_ID 0x8086 // INTEL 82574 Gbe Controller Vendor ID 40 #define R_INTEL_LAN_DEVICE_ID 0x02 41 #define V_INTEL_LAN_DEVICE_ID 0x153E // INTEL 82574 Gbe Controller Device ID 42 43 // 44 // Global variables for Option ROMs 45 // 46 47 #define ONBOARD_VIDEO_OPTION_ROM_FILE_GUID \ 48 { 0xF2FE1FAA, 0xF04A, 0x4ba1, 0xAE, 0x73, 0xD1, 0x84, 0x6A, 0x6C, 0xD6, 0xD8 } 49 50 #define PXE_UNDI_OPTION_ROM_INTELPXE_GUID \ 51 {0x49F2C48B, 0x4D8E, 0x4238, 0x8D, 0x82, 0x9B, 0x27, 0xF4, 0x38, 0x44, 0xB0} 52 53 #define SATA_AHCI_ROM_GUID \ 54 {0x592bfc62, 0xd817, 0x4d1a, 0x86, 0xf8, 0x33, 0x33, 0x4c, 0x9e, 0x90, 0xd8} 55 56 #define NULL_ROM_FILE_GUID \ 57 { 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } 58 59 PCI_OPTION_ROM_TABLE mPciOptionRomTable[] = { 60 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_VLV_A0, 0}, 61 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID, 0}, // Desktop/Mobile IGD 62 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_II, 0}, // Desktop/Mobile IGD 63 { ONBOARD_VIDEO_OPTION_ROM_FILE_GUID, 0, 0, 0x02, 0, IGD_VID, IGD_DID_QS, 0}, 64 { NULL_ROM_FILE_GUID, 0, 0, 0, 0, 0xffff, 0xffff, 0} 65 }; 66 67 UINTN mSizeOptionRomTable = sizeof(mPciOptionRomTable)/sizeof(PCI_OPTION_ROM_TABLE); 68 69 70