]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInit.h
5caf54bb8af1ac7216891238ea8f819239506488
[mirror_edk2.git] / Vlv2TbltDevicePkg / VlvPlatformInitDxe / VlvPlatformInit.h
1
2 /*++
3
4 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8
9
10
11 Module Name:
12
13 VlvPlatformInit.h
14
15 Abstract:
16
17 Header file for SA Initialization Driver.
18
19 --*/
20
21 #ifndef _VLV_PLATFORM_INIT_DXE_H_
22 #define _VLV_PLATFORM_INIT_DXE_H_
23 #include "PiDxe.h"
24
25 #include <Protocol/VlvPlatformPolicy.h>
26
27 #include "IgdOpRegion.h"
28
29 #include <Library/DxeServicesTableLib.h>
30 #include <Library/UefiBootServicesTableLib.h>
31 #include <Library/UefiLib.h>
32 #include "Library/DebugLib.h"
33 #include "Library/S3IoLib.h"
34 #include "Library/S3PciLib.h"
35 #include "Library/IoLib.h"
36 #include "Library/PciLib.h"
37 #include "Library/S3BootScriptLib.h"
38
39 //
40 // GT RELATED EQUATES
41 //
42 #define GTT_MEM_ALIGN 22
43 #define GTTMMADR_SIZE_4MB 0x400000
44
45 #define IGD_BUS 0x00
46 #define IGD_DEV 0x02
47 #define IGD_FUN_0 0x00
48
49 #define IGD_R_VID 0x00
50 #define IGD_R_CMD 0x04
51 #define IGD_R_GTTMMADR 0x10
52
53 #define IGD_R_BGSM 0x70
54 #define LockBit BIT0
55
56 #define IGD_VID 0x8086
57 #define IGD_DID 0xA001
58 #define IGD_MGGC_OFFSET 0x0050 //GMCH Graphics Control Register 0x50
59 #define IGD_BSM_OFFSET 0x005C //Base of Stolen Memory
60 #define IGD_SWSCI_OFFSET 0x00E0 //Software SCI 0xE0 2
61 #define IGD_ASLE_OFFSET 0x00E4 //System Display Event Register 0xE4 4
62 #define IGD_ASLS_OFFSET 0x00FC // ASL Storage
63
64 #endif
65