]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Include/Library/ArmPlatformSysConfigLib.h
ArmPlatformPkg/ArmPlatformSysConfigLib: Add function 'ArmPlatformSysConfigGetValues'
[mirror_edk2.git] / ArmPlatformPkg / Include / Library / ArmPlatformSysConfigLib.h
CommitLineData
7b80d1a3 1/** @file ArmPlatformSysConfigLib.h
2
911da886 3 Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
4
7b80d1a3 5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#ifndef __ARM_PLATFORM_SYS_CONFIG_H__
16#define __ARM_PLATFORM_SYS_CONFIG_H__
17
18#include <Base.h>
19
20/* This header file makes it easier to access the System Configuration Registers
21 * in the ARM Versatile Express motherboard.
22 */
23
24//
25// Typedef
26//
27typedef UINT32 SYS_CONFIG_FUNCTION;
28
29//
30// Functions
31//
32EFI_STATUS
33ArmPlatformSysConfigInitialize (
34 VOID
35 );
36
37EFI_STATUS
38ArmPlatformSysConfigGet (
39 IN SYS_CONFIG_FUNCTION Function,
40 OUT UINT32* Value
41 );
42
911da886 43EFI_STATUS
44ArmPlatformSysConfigGetValues (
45 IN SYS_CONFIG_FUNCTION Function,
46 IN UINTN Size,
47 OUT UINT32* Values
48 );
49
7b80d1a3 50EFI_STATUS
51ArmPlatformSysConfigSet (
52 IN SYS_CONFIG_FUNCTION Function,
53 IN UINT32 Value
54 );
55
56EFI_STATUS
57ArmPlatformSysConfigSetDevice (
58 IN SYS_CONFIG_FUNCTION Function,
59 IN UINT32 Device,
60 IN UINT32 Value
61 );
62
63#endif /* __SYS_CFG_REGISTERS_H__ */