]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmRealViewEbPkg/Library/SysConfigArmRealViewEbLib/SysConfigArmRealViewEb.c
ArmPlatformPkg/ArmPlatformSysConfigLib: Removed dependency on Uefi.h since it is...
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / Library / SysConfigArmRealViewEbLib / SysConfigArmRealViewEb.c
CommitLineData
af0283b8 1/** @file SysConfigArmRealViewEb.c\r
d355ba48 2\r
af0283b8 3 Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>\r
d355ba48 4 This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
af0283b8 14#include <Base.h>\r
d355ba48 15#include <Library/IoLib.h>\r
16#include <Library/DebugLib.h>\r
17\r
18#include <Library/ArmPlatformSysConfigLib.h>\r
19#include <ArmPlatform.h>\r
20\r
21/****************************************************************************\r
22 *\r
23 * This file makes it easier to access the System Configuration Registers\r
24 * in the ARM Versatile Express motherboard.\r
25 *\r
26 ****************************************************************************/\r
27\r
af0283b8 28RETURN_STATUS\r
d355ba48 29ArmPlatformSysConfigInitialize (\r
30 VOID\r
31 )\r
32{\r
af0283b8 33 return RETURN_SUCCESS;\r
d355ba48 34}\r
35\r
af0283b8 36RETURN_STATUS\r
d355ba48 37ArmPlatformSysConfigGet (\r
38 IN SYS_CONFIG_FUNCTION Function,\r
39 OUT UINT32* Value\r
40 )\r
41{\r
af0283b8 42 RETURN_STATUS Status;\r
d355ba48 43\r
af0283b8 44 Status = RETURN_SUCCESS;\r
d355ba48 45\r
46 // Intercept some functions\r
47 switch(Function) {\r
48\r
49 default:\r
af0283b8 50 Status = RETURN_UNSUPPORTED;\r
d355ba48 51 }\r
52\r
53 return Status;\r
54}\r
55\r
af0283b8 56RETURN_STATUS\r
d355ba48 57ArmPlatformSysConfigSet (\r
58 IN SYS_CONFIG_FUNCTION Function,\r
59 IN UINT32 Value\r
60 )\r
61{\r
af0283b8 62 RETURN_STATUS Status;\r
d355ba48 63\r
af0283b8 64 Status = RETURN_SUCCESS;\r
d355ba48 65\r
66 // Intercept some functions\r
67 switch(Function) {\r
68\r
69 default:\r
af0283b8 70 Status = RETURN_UNSUPPORTED;\r
d355ba48 71 }\r
72\r
73 return Status;\r
74}\r
75\r
af0283b8 76RETURN_STATUS\r
d355ba48 77ArmPlatformSysConfigSetDevice (\r
78 IN SYS_CONFIG_FUNCTION Function,\r
79 IN UINT32 Device,\r
80 IN UINT32 Value\r
81 )\r
82{\r
af0283b8 83 RETURN_STATUS Status;\r
d355ba48 84\r
af0283b8 85 Status = RETURN_SUCCESS;\r
d355ba48 86\r
87 // Intercept some functions\r
88 switch(Function) {\r
89\r
90 default:\r
af0283b8 91 Status = RETURN_UNSUPPORTED;\r
d355ba48 92 }\r
93\r
94 return Status;\r
95}\r