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