• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2 *
3 *  Copyright (c) 2015, Linaro Ltd. All rights reserved.
4 *  Copyright (c) 2015, Hisilicon Ltd. All rights reserved.
5 *
6 *  This program and the accompanying materials
7 *  are licensed and made available under the terms and conditions of the BSD License
8 *  which accompanies this distribution.  The full text of the license may be found at
9 *  http://opensource.org/licenses/bsd-license.php
10 *
11 *  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 *  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 *
14 **/
15 
16 #ifndef __HIKEY_DXE_INTERNAL_H__
17 #define __HIKEY_DXE_INTERNAL_H__
18 
19 #include <Uefi.h>
20 
21 #include <Library/DebugLib.h>
22 #include <Library/DxeServicesTableLib.h>
23 #include <Library/UefiBootServicesTableLib.h>
24 
25 #define BOOT_DEVICE_LENGTH       16
26 #define USB_TYPE_LENGTH          16
27 
28 EFI_STATUS
29 HiKeyFdtInstall (
30   IN EFI_HANDLE                            ImageHandle
31   );
32 
33 EFI_STATUS
34 HiKeyBootMenuInstall (
35   IN VOID
36   );
37 
38 EFI_STATUS
39 HiKeyInitPeripherals (
40   IN VOID
41   );
42 
43 EFI_STATUS
44 HiKeyUsbPhyInit (
45   IN UINT8           Mode
46   );
47 
48 UINTN
49 HiKeyGetUsbMode (
50   IN VOID
51   );
52 #endif // __HIKEY_DXE_INTERNAL_H__
53