summaryrefslogtreecommitdiff
path: root/EDK/Foundation/Library/Dxe/Include/Ia32EfiRuntimeDriverLib.h
blob: df833c42feaf3f910cb9d1dc276bfb96274ce03b (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*++

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:

  Ia32EfiRuntimeDriverLib.h

Abstract:

  Light weight lib to support IA32 EFI Libraries.

--*/

#ifndef _IA32_EFI_RUNTIME_LIB_H_
#define _IA32_EFI_RUNTIME_LIB_H_

#include "Tiano.h"
#include "EfiRuntimeLib.h"
#include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid)

typedef
EFI_STATUS
(EFIAPI *COMMON_PROC_ENTRY) (
  IN  UINTN                      FunctionId,
  IN  UINTN                      Arg2,
  IN  UINTN                      Arg3,
  IN  UINTN                      Arg4,
  IN  UINTN                      Arg5,
  IN  UINTN                      Arg6,
  IN  UINTN                      Arg7,
  IN  UINTN                      Arg8
  );

typedef struct {
  COMMON_PROC_ENTRY CommonProcEntry;
} COMMON_PROC_ENTRY_STRUCT;

EFI_STATUS
InstallPlatformRuntimeLib (
  IN  EFI_GUID                      *Guid,
  IN  COMMON_PROC_ENTRY_STRUCT      *CommonEntry
  )
/*++

Routine Description:

  Install platform runtime lib.

Arguments:

  Guid                  - Guid for runtime lib
  CommonEntry           - Common entry

Returns: 

  Status code

--*/
;

EFI_STATUS
GetPlatformRuntimeLib (
  IN EFI_SYSTEM_TABLE     *SystemTable
  )
/*++

Routine Description:

  Get platform runtime lib.

Arguments:

  SystemTable           - Pointer to system table

Returns: 

  Status code

--*/
;

EFI_STATUS
ConvertPlatformRuntimeLibPtr (
  IN EFI_RUNTIME_SERVICES  *mRT
  )
/*++

Routine Description:

  Convert platform runtime lib pointer.  

Arguments:

  mRT                   - Pointer to runtime service table.

Returns: 

  Status code

--*/
;

#endif