]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxeInternal.h
ArmPlatformPkg: eliminate Juno gcc build warning
[mirror_edk2.git] / ArmPlatformPkg / ArmJunoPkg / Drivers / ArmJunoDxe / ArmJunoDxeInternal.h
1 /** @file
2 *
3 * Copyright (c) 2013-2015, ARM Limited. All rights reserved.
4 *
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_JUNO_DXE_INTERNAL_H__
16 #define __ARM_JUNO_DXE_INTERNAL_H__
17
18 #include <Uefi.h>
19
20 #include <Library/BaseLib.h>
21 #include <Library/ArmLib.h>
22 #include <Library/AcpiLib.h>
23 #include <Library/DebugLib.h>
24 #include <Library/DxeServicesTableLib.h>
25 #include <Library/UefiBootServicesTableLib.h>
26 #include <Library/UefiLib.h>
27
28 #include <Protocol/AcpiTable.h>
29
30 #include <IndustryStandard/Acpi.h>
31
32 #define ACPI_SPECFLAG_PREFETCHABLE 0x06
33 #define JUNO_MARVELL_YUKON_ID 0x438011AB /* Juno Marvell PCI Dev ID */
34 #define TST_CFG_WRITE_ENABLE 0x02 /* Enable Config Write */
35 #define TST_CFG_WRITE_DISABLE 0x00 /* Disable Config Write */
36 #define CS_RESET_CLR 0x02 /* SW Reset Clear */
37 #define CS_RESET_SET 0x00 /* SW Reset Set */
38 #define R_CONTROL_STATUS 0x0004 /* Control/Status Register */
39 #define R_MAC 0x0100 /* MAC Address */
40 #define R_MAC_MAINT 0x0110 /* MAC Address Maintenance */
41 #define R_MAC_LOW 0x04 /* MAC Address Low Register Offset */
42 #define R_TST_CTRL_1 0x0158 /* Test Control Register 1 */
43
44
45 /**
46 * Callback called when ACPI Protocol is installed
47 */
48 VOID
49 AcpiPciNotificationEvent (
50 IN EFI_EVENT Event,
51 IN VOID *Context
52 );
53
54 #endif // __ARM_JUNO_DXE_INTERNAL_H__