1 
2 /*++
3 
4 Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
5 
6 
7   This program and the accompanying materials are licensed and made available under
8 
9   the terms and conditions of the BSD License that accompanies this distribution.
10 
11   The full text of the license may be found at
12 
13   http://opensource.org/licenses/bsd-license.php.
14 
15 
16 
17   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
18 
19   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 
21 
22 
23 
24 
25 Module Name:
26 
27   VlvPlatformInit.h
28 
29 Abstract:
30 
31   Header file for SA Initialization Driver.
32 
33 --*/
34 
35 #ifndef _VLV_PLATFORM_INIT_DXE_H_
36 #define _VLV_PLATFORM_INIT_DXE_H_
37 #include "PiDxe.h"
38 
39 #include <Protocol/VlvPlatformPolicy.h>
40 
41 #include "IgdOpRegion.h"
42 
43 #include <Library/DxeServicesTableLib.h>
44 #include <Library/UefiBootServicesTableLib.h>
45 #include <Library/UefiLib.h>
46 #include "Library/DebugLib.h"
47 #include "Library/S3IoLib.h"
48 #include "Library/S3PciLib.h"
49 #include "Library/IoLib.h"
50 #include "Library/PciLib.h"
51 #include "Library/S3BootScriptLib.h"
52 
53 //
54 // GT RELATED EQUATES
55 //
56 #define GTT_MEM_ALIGN        22
57 #define GTTMMADR_SIZE_4MB    0x400000
58 
59 #define IGD_BUS             0x00
60 #define IGD_DEV                  0x02
61 #define IGD_FUN_0                0x00
62 
63 #define IGD_R_VID                0x00
64 #define IGD_R_CMD                0x04
65 #define IGD_R_GTTMMADR           0x10
66 
67 #define IGD_R_BGSM               0x70
68 #define LockBit                  BIT0
69 
70 #define IGD_VID             0x8086
71 #define IGD_DID             0xA001
72 #define IGD_MGGC_OFFSET     0x0050      //GMCH Graphics Control Register 0x50
73 #define IGD_BSM_OFFSET      0x005C      //Base of Stolen Memory
74 #define IGD_SWSCI_OFFSET    0x00E0      //Software SCI 0xE0 2
75 #define IGD_ASLE_OFFSET     0x00E4      //System Display Event Register 0xE4 4
76 #define IGD_ASLS_OFFSET     0x00FC      // ASL Storage
77 
78 #endif
79 
80