This commit adds header files for the SPI protocols introduced in the UEFI PI 1.6 specification, as well as their GUIDs to MdePkg.dec. EFI_SPI_TRANSACTION_TYPE assumes an enum with its members ordered the way they are listed in the specification, as there are no values given explicitely. EFI_LEGACY_SPI_CONTROLLER_GUID assumes the character 'l' used in the specification was meant to be '1'. V2: - Fixed LegacySpiFlash.h's header guard. - Fixed LegacySpiSmmController's GUID name. - Removed EFI_SPI_NOR_FLASH_PROTOCOL_LF_READ_DATA as it's unused. - Added the missing SpiSmmNorFlash header. - Fixed all file endings to be CRLF. - Removed trailing whitespaces. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/** @file
|
|
This file defines the SPI SMM Host Controller Protocol.
|
|
|
|
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
|
This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD
|
|
License which accompanies this distribution. The full text of the license may
|
|
be found at http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
@par Revision Reference:
|
|
This Protocol was introduced in UEFI PI Specification 1.6.
|
|
|
|
**/
|
|
|
|
#ifndef __SPI_SMM_HC_H__
|
|
#define __SPI_SMM_HC_H__
|
|
|
|
#include <Protocol/SpiHc.h>
|
|
|
|
///
|
|
/// Global ID for the SPI SMM Host Controller Protocol
|
|
///
|
|
#define EFI_SPI_SMM_HC_PROTOCOL_GUID \
|
|
{ 0xe9f02217, 0x2093, 0x4470, \
|
|
{ 0x8a, 0x54, 0x5c, 0x2c, 0xff, 0xe7, 0x3e, 0xcb }}
|
|
|
|
typedef
|
|
struct _EFI_SPI_HC_PROTOCOL
|
|
EFI_SPI_SMM_HC_PROTOCOL;
|
|
|
|
extern EFI_GUID gEfiSpiSmmHcProtocolGuid;
|
|
|
|
#endif // __SPI_SMM_HC_H__
|