VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129295
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Protocol/SmmStatusCode.h

    r58466 r77662  
    1818#define _SMM_STATUS_CODE_H__
    1919
     20#include <Protocol/MmStatusCode.h>
    2021
    21 #define EFI_SMM_STATUS_CODE_PROTOCOL_GUID \
    22   { \
    23     0x6afd2b77, 0x98c1, 0x4acd, {0xa6, 0xf9, 0x8a, 0x94, 0x39, 0xde, 0xf, 0xb1} \
    24   }
     22#define EFI_SMM_STATUS_CODE_PROTOCOL_GUID EFI_MM_STATUS_CODE_PROTOCOL_GUID
    2523
    26 typedef struct _EFI_SMM_STATUS_CODE_PROTOCOL  EFI_SMM_STATUS_CODE_PROTOCOL;
     24typedef EFI_MM_STATUS_CODE_PROTOCOL  EFI_SMM_STATUS_CODE_PROTOCOL;
    2725
    28 /**
    29   Service to emit the status code in SMM.
    30 
    31   The EFI_SMM_STATUS_CODE_PROTOCOL.ReportStatusCode() function enables a driver
    32   to emit a status code while in SMM.  The reason that there is a separate protocol definition from the
    33   DXE variant of this service is that the publisher of this protocol will provide a service that is
    34   capability of coexisting with a foreground operational environment, such as an operating system
    35   after the termination of boot services.
    36 
    37   @param[in] This                Points to this instance of the EFI_SMM_STATUS_CODE_PROTOCOL.
    38   @param[in] CodeType            DIndicates the type of status code being reported.
    39   @param[in] Value               Describes the current status of a hardware or software entity.
    40   @param[in] Instance            The enumeration of a hardware or software entity within the system.
    41   @param[in] CallerId            This optional parameter may be used to identify the caller.
    42   @param[in] Data                This optional parameter may be used to pass additional data.
    43 
    44   @retval EFI_SUCCESS            The function completed successfully.
    45   @retval EFI_INVALID_PARAMETER  The function should not be completed due to a device error.
    46 **/
    47 typedef
    48 EFI_STATUS
    49 (EFIAPI *EFI_SMM_REPORT_STATUS_CODE)(
    50   IN CONST EFI_SMM_STATUS_CODE_PROTOCOL  *This,
    51   IN EFI_STATUS_CODE_TYPE                CodeType,
    52   IN EFI_STATUS_CODE_VALUE               Value,
    53   IN UINT32                              Instance,
    54   IN CONST EFI_GUID                      *CallerId,
    55   IN EFI_STATUS_CODE_DATA                *Data OPTIONAL
    56   );
    57 
    58 struct _EFI_SMM_STATUS_CODE_PROTOCOL {
    59   EFI_SMM_REPORT_STATUS_CODE  ReportStatusCode;
    60 };
     26typedef EFI_MM_REPORT_STATUS_CODE EFI_SMM_REPORT_STATUS_CODE;
    6127
    6228extern EFI_GUID gEfiSmmStatusCodeProtocolGuid;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette