summaryrefslogtreecommitdiff
path: root/ReferenceCode/ME/SampleCode/Protocol/MePlatformGetResetType/MePlatformGetResetType.h
blob: 5134b55ecebf29a6c68a5181c13e5f9213a20463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/** @file
  Interface definition Me Platform Get Reset Type.

@copyright
  Copyright (c) 2011 - 2012 Intel Corporation. All rights reserved
  This software and associated documentation (if any) is furnished
  under a license and may only be used or copied in accordance
  with the terms of the license. Except as permitted by such
  license, no part of this software or documentation may be
  reproduced, stored in a retrieval system, or transmitted in any
  form or by any means without the express written consent of
  Intel Corporation.

  This file contains a 'Sample Driver' and is licensed as such
  under the terms of your license agreement with Intel or your
  vendor.  This file may be modified by the user, subject to
  the additional terms of the license agreement
**/
#ifndef _ME_PLATFORM_GET_RESET_TYPE_H_
#define _ME_PLATFORM_GET_RESET_TYPE_H_

#define ME_PLATFORM_GET_RESET_TYPE_GUID \
  { \
    0xb8cdced7, 0xbdc4, 0x4464, 0x9a, 0x1a, 0xff, 0x3f, 0xbd, 0xf7, 0x48, 0x69 \
  }

#define ME_PLATFORM_GET_RESET_TYPE_PROTOCOL_REVISION  1
extern EFI_GUID gMePlatformGetResetTypeGuid;

///
/// ME_SPEICAL_RESET_TYPES must be aligned with PCH_EXTENDED_RESET_TYPES
///
typedef enum {
  PowerCycleResetReq  = 3,
  GlobalResetReq,
  GlobalResetWithEcReq,
  MaxRestReq
} ME_SPEICAL_RESET_TYPES;

/**
  Get Platform requested reset type

  @param[in] Type                 UEFI defined reset type

  @retval ME_SPEICAL_RESET_TYPES  ME reset type aligned with PCH_EXTENDED_RESET_TYPES
**/
typedef
ME_SPEICAL_RESET_TYPES
(EFIAPI *GET_RESET_TYPE) (
  IN EFI_RESET_TYPE               Type
  );

typedef struct _ME_PLATFORM_GET_RESET_TYPE_PROTOCOL {
  GET_RESET_TYPE                  GetResetType;
} ME_PLATFORM_GET_RESET_TYPE_PROTOCOL;

#endif