2021-09-22 23:31:29 +02:00
|
|
|
/** @file
|
|
|
|
This file defines the hob structure for the SPI flash variable info.
|
|
|
|
|
|
|
|
Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef SPI_FLASH_INFO_GUID_H_
|
|
|
|
#define SPI_FLASH_INFO_GUID_H_
|
|
|
|
|
|
|
|
#include <IndustryStandard/Acpi.h>
|
|
|
|
//
|
|
|
|
// SPI Flash infor hob GUID
|
|
|
|
//
|
2021-12-05 23:54:18 +01:00
|
|
|
extern EFI_GUID gSpiFlashInfoGuid;
|
2021-09-22 23:31:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Set this bit if platform need disable SMM write protection when writing flash
|
|
|
|
// in SMM mode using this method: -- AsmWriteMsr32 (0x1FE, MmioRead32 (0xFED30880) | BIT0);
|
|
|
|
//
|
2021-12-05 23:54:18 +01:00
|
|
|
#define FLAGS_SPI_DISABLE_SMM_WRITE_PROTECT BIT0
|
2021-09-22 23:31:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Reuse ACPI definition
|
|
|
|
//
|
|
|
|
typedef EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE PLD_GENERIC_ADDRESS;
|
2021-12-05 23:54:18 +01:00
|
|
|
#define SPACE_ID_PCI_CONFIGURATION EFI_ACPI_3_0_PCI_CONFIGURATION_SPACE
|
|
|
|
#define REGISTER_BIT_WIDTH_DWORD EFI_ACPI_3_0_DWORD
|
2021-09-22 23:31:29 +02:00
|
|
|
|
|
|
|
typedef struct {
|
2021-12-05 23:54:18 +01:00
|
|
|
UINT8 Revision;
|
|
|
|
UINT8 Reserved;
|
|
|
|
UINT16 Flags;
|
|
|
|
PLD_GENERIC_ADDRESS SpiAddress;
|
2021-09-22 23:31:29 +02:00
|
|
|
} SPI_FLASH_INFO;
|
|
|
|
|
|
|
|
#endif
|