1 /** @file
2   File to contain all the hardware specific stuff for the Smm Gpi dispatch protocol.
3 
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6 
7 **/
8 #include "PchSmmHelpers.h"
9 
10 //
11 // Structure for GPI SMI is a template which needs to have
12 // GPI Smi bit offset and Smi Status & Enable registers updated (accordingly
13 // to choosen group and pad number) after adding it to SMM Callback database
14 //
15 
16 GLOBAL_REMOVE_IF_UNREFERENCED CONST PCH_SMM_SOURCE_DESC PCH_GPI_SOURCE_DESC_TEMPLATE = {
17   PCH_SMM_NO_FLAGS,
18   {
19     {
20       {
21         GPIO_ADDR_TYPE, {0x0}
22       },
23       S_PCH_GPIO_GP_SMI_EN, 0x0,
24     },
25     NULL_BIT_DESC_INITIALIZER
26   },
27   {
28     {
29       {
30         GPIO_ADDR_TYPE, {0x0}
31       },
32       S_PCH_GPIO_GP_SMI_STS, 0x0,
33     }
34   },
35   {
36     {
37       ACPI_ADDR_TYPE,
38       {R_PCH_SMI_STS}
39     },
40     S_PCH_SMI_STS,
41     N_PCH_SMI_STS_GPIO_SMI
42   }
43 };
44