]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmVExpressInternal.h
Clean up GCC build.
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpressDxe / ArmVExpressInternal.h
CommitLineData
dff72027
OM
1/** @file\r
2\r
3 Copyright (c) 2014, ARM Ltd. All rights reserved.\r
4\r
5 This program and the accompanying materials are licensed and made available\r
6 under the terms and conditions of the BSD License which accompanies this\r
7 distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
11 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __ARM_VEXPRESS_INTERNAL_H__\r
16#define __ARM_VEXPRESS_INTERNAL_H__\r
17\r
18#include <Uefi.h>\r
19\r
20#include <Library/ArmLib.h>\r
21#include <Library/DebugLib.h>\r
22#include <Library/IoLib.h>\r
23#include <Library/PcdLib.h>\r
24#include <Library/UefiBootServicesTableLib.h>\r
25#include <Library/UefiLib.h>\r
26\r
27#include <VExpressMotherBoard.h>\r
28\r
29// This 'enum' is needed as variations based on existing platform exist\r
30typedef enum {\r
31 ARM_FVP_VEXPRESS_UNKNOWN = 0,\r
32 ARM_FVP_VEXPRESS_A9x4,\r
33 ARM_FVP_VEXPRESS_A15x1,\r
34 ARM_FVP_VEXPRESS_A15x2,\r
35 ARM_FVP_VEXPRESS_A15x4,\r
36 ARM_FVP_VEXPRESS_A15x1_A7x1,\r
37 ARM_FVP_VEXPRESS_A15x4_A7x4,\r
38 ARM_FVP_VEXPRESS_AEMv8x4,\r
d0c1d371
OM
39 ARM_FVP_BASE_AEMv8x4_AEMv8x4_GICV2,\r
40 ARM_FVP_BASE_AEMv8x4_AEMv8x4_GICV2_LEGACY,\r
41 ARM_FVP_BASE_AEMv8x4_AEMv8x4_GICV3,\r
42 ARM_FVP_FOUNDATION_GICV2,\r
43 ARM_FVP_FOUNDATION_GICV2_LEGACY,\r
44 ARM_FVP_FOUNDATION_GICV3,\r
dff72027
OM
45 ARM_HW_A9x4,\r
46 ARM_HW_A15x2_A7x3,\r
47 ARM_HW_A15,\r
48 ARM_HW_A5\r
49} ARM_VEXPRESS_PLATFORM_ID;\r
50\r
51typedef struct {\r
52 ARM_VEXPRESS_PLATFORM_ID Id;\r
53 // Will be extended with platform specific information\r
54} ARM_VEXPRESS_PLATFORM;\r
55\r
56// Array that contains the list of the VExpress based platform supported by this DXE driver\r
57extern CONST ARM_VEXPRESS_PLATFORM ArmVExpressPlatforms[];\r
58\r
59/**\r
60 Get information about the VExpress platform the firmware is running on given its Id.\r
61\r
62 @param[in] PlatformId Id of the VExpress platform.\r
63 @param[out] Platform Address where the pointer to the platform information\r
64 (type ARM_VEXPRESS_PLATFORM*) should be stored.\r
65 The returned pointer does not point to an allocated\r
66 memory area.\r
67\r
68 @retval EFI_SUCCESS The platform information was returned.\r
69 @retval EFI_NOT_FOUND The platform was not recognised.\r
70\r
71**/\r
72EFI_STATUS\r
73ArmVExpressGetPlatformFromId (\r
74 IN CONST ARM_VEXPRESS_PLATFORM_ID PlatformId,\r
75 OUT CONST ARM_VEXPRESS_PLATFORM** Platform\r
76 );\r
77\r
78/**\r
79\r
80 Get information about the VExpress platform the firmware is running on.\r
81\r
82 @param[out] Platform Address where the pointer to the platform information\r
83 (type ARM_VEXPRESS_PLATFORM*) should be stored.\r
84 The returned pointer does not point to an allocated\r
85 memory area.\r
86\r
87 @retval EFI_SUCCESS The platform information was returned.\r
88 @retval EFI_NOT_FOUND The platform was not recognised.\r
89\r
90**/\r
91EFI_STATUS\r
92ArmVExpressGetPlatform (\r
93 OUT CONST ARM_VEXPRESS_PLATFORM** Platform\r
94 );\r
95\r
96#endif // __ARM_VEXPRESS_INTERNAL_H__\r