summaryrefslogtreecommitdiff
path: root/EDK/Foundation/Protocol/Fpdt
diff options
context:
space:
mode:
Diffstat (limited to 'EDK/Foundation/Protocol/Fpdt')
-rw-r--r--EDK/Foundation/Protocol/Fpdt/Fpdt.c31
-rw-r--r--EDK/Foundation/Protocol/Fpdt/Fpdt.h56
2 files changed, 87 insertions, 0 deletions
diff --git a/EDK/Foundation/Protocol/Fpdt/Fpdt.c b/EDK/Foundation/Protocol/Fpdt/Fpdt.c
new file mode 100644
index 0000000..6d4e28d
--- /dev/null
+++ b/EDK/Foundation/Protocol/Fpdt/Fpdt.c
@@ -0,0 +1,31 @@
+/*++
+ 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
+/*++
+
+Copyright (c) 2011, 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:
+
+ Fpdt.c
+
+Abstract:
+
+ Fpdt Performance Protocol
+
+--*/
+
+#include "Tiano.h"
+#include EFI_PROTOCOL_DEFINITION (Fpdt)
+
+EFI_GUID gFpdtPerformanceProtocolGuid = FPDT_PERFORMANCE_PROTOCOL_GUID;
+
+EFI_GUID_STRING(&gFpdtPerformanceProtocolGuid, "FPDT Performance Protocol", "FPDT Performance Protocol");
diff --git a/EDK/Foundation/Protocol/Fpdt/Fpdt.h b/EDK/Foundation/Protocol/Fpdt/Fpdt.h
new file mode 100644
index 0000000..db243c1
--- /dev/null
+++ b/EDK/Foundation/Protocol/Fpdt/Fpdt.h
@@ -0,0 +1,56 @@
+/*++
+
+Copyright (c) 2011, 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:
+
+ Fpdt.h
+
+Abstract:
+
+ Fpdt Performance Protocol
+
+--*/
+
+#ifndef _FPDT_H
+#define _FPDT_H
+
+#define FPDT_PERFORMANCE_PROTOCOL_GUID \
+ { \
+ 0x444c3203, 0xf8b1, 0x42a7, 0xab, 0xe9, 0x2e, 0x58, 0x2, 0x5b, 0xe1, 0x2a \
+ }
+
+EFI_FORWARD_DECLARATION (FPDT_PERFORMANCE_PROTOCOL);
+
+typedef
+EFI_STATUS
+(EFIAPI *FPDT_PERFORMANCE_PROTOCOL_GET_FPDT_ADDRESS) (
+ IN FPDT_PERFORMANCE_PROTOCOL *This,
+ OUT UINT32 *FpdtAddress
+ );
+
+typedef
+EFI_STATUS
+(EFIAPI *FPDT_PERFORMANCE_PROTOCOL_UPDATE_RECORD) (
+ IN FPDT_PERFORMANCE_PROTOCOL *This,
+ IN EFI_HANDLE Handle OPTIONAL,
+ IN UINT16 Recordtype,
+ IN UINT64 Data,
+ IN UINT16 Identifier OPTIONAL
+ );
+
+typedef struct _FPDT_PERFORMANCE_PROTOCOL {
+ FPDT_PERFORMANCE_PROTOCOL_GET_FPDT_ADDRESS GetFpdtAddress;
+ FPDT_PERFORMANCE_PROTOCOL_UPDATE_RECORD UpdateRecord;
+} FPDT_PERFORMANCE_PROTOCOL;
+
+extern EFI_GUID gFpdtPerformanceProtocolGuid;
+
+#endif \ No newline at end of file