mirror of https://github.com/acidanthera/audk.git
37 lines
977 B
C
37 lines
977 B
C
/** @file
|
|
The header file for SMM SwDispatch2 module.
|
|
|
|
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef SMM_SW_DISPATCH2_H_
|
|
#define SMM_SW_DISPATCH2_H_
|
|
|
|
#include <PiDxe.h>
|
|
#include <Protocol/SmmSwDispatch2.h>
|
|
#include <Protocol/SmmCpu.h>
|
|
#include <Library/UefiDriverEntryPoint.h>
|
|
#include <Library/SmmServicesTableLib.h>
|
|
#include <Library/BaseLib.h>
|
|
#include <Library/IoLib.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Guid/SmmRegisterInfoGuid.h>
|
|
#include <Library/HobLib.h>
|
|
|
|
#define SMI_SW_HANDLER_SIGNATURE SIGNATURE_32('s','s','w','h')
|
|
#define MAXIMUM_SWI_VALUE 0xFF
|
|
#define SMM_CONTROL_PORT 0xB2
|
|
#define SMM_DATA_PORT 0xB3
|
|
|
|
typedef struct {
|
|
UINTN Signature;
|
|
LIST_ENTRY Link;
|
|
EFI_HANDLE DispatchHandle;
|
|
UINTN SwSmiInputValue;
|
|
UINTN DispatchFunction;
|
|
} EFI_SMM_SW_DISPATCH2_CONTEXT;
|
|
|
|
#endif
|