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