• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2 *
3 *  Copyright (c) 2011-2015, ARM Limited. All rights reserved.
4 *  Copyright (c) 2015, Hisilicon Limited. All rights reserved.
5 *  Copyright (c) 2015, Linaro Limited. All rights reserved.
6 *
7 *  This program and the accompanying materials
8 *  are licensed and made available under the terms and conditions of the BSD License
9 *  which accompanies this distribution.  The full text of the license may be found at
10 *  http://opensource.org/licenses/bsd-license.php
11 *
12 *  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 *
15 *  Based on the files under ArmPlatformPkg/ArmJunoPkg/AcpiTables/
16 *
17 **/
18 
19 
20 #ifndef _HI1610_PLATFORM_H_
21 #define _HI1610_PLATFORM_H_
22 
23 //
24 // ACPI table information used to initialize tables.
25 //
26 #define EFI_ACPI_ARM_OEM_ID           'H','I','S','I',' ',' '   // OEMID 6 bytes long
27 #define EFI_ACPI_ARM_OEM_TABLE_ID     SIGNATURE_64('H','I','P','0','6',' ',' ',' ') // OEM table id 8 bytes long
28 #define EFI_ACPI_ARM_OEM_REVISION     0x00000000
29 #define EFI_ACPI_ARM_CREATOR_ID       SIGNATURE_32('I','N','T','L')
30 #define EFI_ACPI_ARM_CREATOR_REVISION 0x20151124
31 
32 // A macro to initialise the common header part of EFI ACPI tables as defined by
33 // EFI_ACPI_DESCRIPTION_HEADER structure.
34 #define ARM_ACPI_HEADER(Signature, Type, Revision) {              \
35     Signature,                      /* UINT32  Signature */       \
36     sizeof (Type),                  /* UINT32  Length */          \
37     Revision,                       /* UINT8   Revision */        \
38     0,                              /* UINT8   Checksum */        \
39     { EFI_ACPI_ARM_OEM_ID },        /* UINT8   OemId[6] */        \
40     EFI_ACPI_ARM_OEM_TABLE_ID,      /* UINT64  OemTableId */      \
41     EFI_ACPI_ARM_OEM_REVISION,      /* UINT32  OemRevision */     \
42     EFI_ACPI_ARM_CREATOR_ID,        /* UINT32  CreatorId */       \
43     EFI_ACPI_ARM_CREATOR_REVISION   /* UINT32  CreatorRevision */ \
44   }
45 
46 #define HI1610_WATCHDOG_COUNT  2
47 
48 #endif
49