summaryrefslogtreecommitdiff
path: root/EDK/Foundation/Framework/Ppi/Variable/Variable.h
blob: 90965cb0b03b8c3004efb4e6f48ab90581fea6dd (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
58
59
60
61
62
63
64
65
66
67
68
69
/*++

Copyright (c) 2004, Intel Corporation                                                         
All rights reserved. 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.             

Module Name:

  Variable.h
    
Abstract:

  Read-only Variable Service PPI as defined in Tiano

--*/

#ifndef _PEI_READ_ONLY_VARIABLE_PPI_H
#define _PEI_READ_ONLY_VARIABLE_PPI_H

#include "EfiVariable.h" //;;## ...AMI_OVERRIDE... Support PI1.x 

#define PEI_READ_ONLY_VARIABLE_ACCESS_PPI_GUID \
  { \
    0x3cdc90c6, 0x13fb, 0x4a75, 0x9e, 0x79, 0x59, 0xe9, 0xdd, 0x78, 0xb9, 0xfa \
  }

//
// Variable attributes
//
//;;## ...AMI_OVERRIDE... Support PI1.x #define EFI_VARIABLE_NON_VOLATILE       0x00000001
//;;## ...AMI_OVERRIDE... Support PI1.x #define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002
//;;## ...AMI_OVERRIDE... Support PI1.x #define EFI_VARIABLE_RUNTIME_ACCESS     0x00000004
//;;## ...AMI_OVERRIDE... Support PI1.x #define EFI_VARIABLE_READ_ONLY          0x00000008

typedef
EFI_STATUS
(EFIAPI *PEI_GET_VARIABLE) (
  IN EFI_PEI_SERVICES             **PeiServices,
  IN CHAR16                       *VariableName,
  IN EFI_GUID                     * VendorGuid,
  OUT UINT32                      *Attributes OPTIONAL,
  IN OUT UINTN                    *DataSize,
  OUT VOID                        *Data
  );

typedef
EFI_STATUS
(EFIAPI *PEI_GET_NEXT_VARIABLE_NAME) (
  IN EFI_PEI_SERVICES             **PeiServices,
  IN OUT UINTN                    *VariableNameSize,
  IN OUT CHAR16                   *VariableName,
  IN OUT EFI_GUID                 * VendorGuid
  );

typedef struct PEI_READ_ONLY_VARIABLE_PPI {
  PEI_GET_VARIABLE            PeiGetVariable;
  PEI_GET_NEXT_VARIABLE_NAME  PeiGetNextVariableName;
} PEI_READ_ONLY_VARIABLE_PPI;

EFI_FORWARD_DECLARATION (PEI_MASTER_BOOT_MODE_PPI);

extern EFI_GUID gPeiReadOnlyVariablePpiGuid;

#endif