diff mbox series

[edk2,edk2-platforms,v2,17/18] Hisilicon/D0x: Delete some header files

Message ID 20190220072837.35058-18-ming.huang@linaro.org
State Superseded
Headers show
Series Fix issues and improve D0x | expand

Commit Message

Ming Huang Feb. 20, 2019, 7:28 a.m. UTC
As some interfaces exposed only by implementations in edk2-non-osi,
so delete corresponding header files and modify code to make build.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <ming.huang@linaro.org>

---
 Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf                  |   1 +
 Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf             |   2 +-
 Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf                  |   1 +
 Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf                 |   1 +
 Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf                  |   1 +
 Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf                 |   1 +
 Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf       |   1 +
 Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf |   1 +
 Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf               |   2 +-
 Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf                |   1 +
 Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf                       |   1 +
 Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf                |   1 +
 Silicon/Hisilicon/Library/I2CLib/I2CLib.inf                                    |   1 +
 Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf                             |   1 +
 Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h                           |  22 ----
 Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h                           |  22 ----
 Silicon/Hisilicon/Include/Library/IpmiCmdLib.h                                 | 110 -------------------
 Silicon/Hisilicon/Include/Library/LpcLib.h                                     | 113 --------------------
 Silicon/Hisilicon/Include/Library/OemAddressMapLib.h                           |  45 --------
 Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h                         | 112 -------------------
 20 files changed, 14 insertions(+), 426 deletions(-)

-- 
2.9.5

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Feb. 20, 2019, 5:24 p.m. UTC | #1
Hi Ming,

Thank you for this rework.

However, can you move it first in the series, so that it's obvious
this series contains no changes to these headers (because they have
all happened in edk2-non-osi)?

Regards,

Leif

On Wed, Feb 20, 2019 at 03:28:36PM +0800, Ming Huang wrote:
> As some interfaces exposed only by implementations in edk2-non-osi,

> so delete corresponding header files and modify code to make build.

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Ming Huang <ming.huang@linaro.org>

> ---

>  Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf                  |   1 +

>  Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf             |   2 +-

>  Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf                  |   1 +

>  Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf                 |   1 +

>  Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf                  |   1 +

>  Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf                 |   1 +

>  Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf       |   1 +

>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf |   1 +

>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf               |   2 +-

>  Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf                |   1 +

>  Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf                       |   1 +

>  Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf                |   1 +

>  Silicon/Hisilicon/Library/I2CLib/I2CLib.inf                                    |   1 +

>  Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf                             |   1 +

>  Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h                           |  22 ----

>  Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h                           |  22 ----

>  Silicon/Hisilicon/Include/Library/IpmiCmdLib.h                                 | 110 -------------------

>  Silicon/Hisilicon/Include/Library/LpcLib.h                                     | 113 --------------------

>  Silicon/Hisilicon/Include/Library/OemAddressMapLib.h                           |  45 --------

>  Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h                         | 112 -------------------

>  20 files changed, 14 insertions(+), 426 deletions(-)

> 

> diff --git a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

> index c65cf7b6dd9f..90e40ae2b393 100644

> --- a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

> +++ b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

> @@ -30,6 +30,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>  

>    ArmPkg/ArmPkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

> index 0fa7fdf80fa8..c0195b2fa9cf 100644

> --- a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

> +++ b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

> @@ -30,7 +30,7 @@ [Packages]

>    MdePkg/MdePkg.dec

>    MdeModulePkg/MdeModulePkg.dec

>    ArmPkg/ArmPkg.dec

> -

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

> index 0f6b68d4c88d..e82c9204d5d6 100644

> --- a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

> +++ b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

> @@ -29,6 +29,7 @@ [Packages]

>    ArmPkg/ArmPkg.dec

>    MdePkg/MdePkg.dec

>    MdeModulePkg/MdeModulePkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

> index 022c3e940a31..7ec577530610 100644

> --- a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

> +++ b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

> @@ -30,6 +30,7 @@ [Packages]

>    ArmPkg/ArmPkg.dec

>    MdeModulePkg/MdeModulePkg.dec

>    MdePkg/MdePkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

> index 8296ee02de4e..715a4efadde8 100644

> --- a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

> +++ b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

> @@ -29,6 +29,7 @@ [Packages]

>    ArmPkg/ArmPkg.dec

>    MdeModulePkg/MdeModulePkg.dec

>    MdePkg/MdePkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

> index 75c5054bbfd1..9bc6eb549c41 100644

> --- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

> +++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

> @@ -31,6 +31,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    MdePkg/MdePkg.dec

>    Platform/Hisilicon/D06/D06.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

> index 93a2bcac3726..94f6fe404c6d 100644

> --- a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

> +++ b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

> @@ -31,6 +31,7 @@ [Packages]

>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>    IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

>  

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

> index 2275586ff324..808da65cd429 100644

> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

> @@ -32,6 +32,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>  

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

> index 669e6a2d52cc..0c37b53af987 100644

> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

> @@ -58,7 +58,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>    IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

> -

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

> index c07a5b8aa250..5b917fd3fdea 100644

> --- a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

> +++ b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

> @@ -30,6 +30,7 @@ [Sources]

>  [Packages]

>    MdePkg/MdePkg.dec

>    MdeModulePkg/MdeModulePkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

> index 89447cc52d76..aa8e3c9c0b63 100644

> --- a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

> +++ b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

> @@ -35,6 +35,7 @@ [Packages]

>    MdePkg/MdePkg.dec

>    MdeModulePkg/MdeModulePkg.dec

>    ArmPkg/ArmPkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

> index b603523100ae..d6b5248fcdbf 100644

> --- a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

> +++ b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

> @@ -27,6 +27,7 @@ [Sources.common]

>  [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    MdePkg/MdePkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  [LibraryClasses]

> diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

> index 9bca88fe8702..e9520b39530e 100644

> --- a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

> +++ b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

> @@ -31,6 +31,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    ArmPkg/ArmPkg.dec

>    ArmPlatformPkg/ArmPlatformPkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  

> diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

> index 1bb4f5c703bb..6211373ce7ba 100644

> --- a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

> +++ b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

> @@ -31,6 +31,7 @@ [Packages]

>    MdeModulePkg/MdeModulePkg.dec

>    ArmPkg/ArmPkg.dec

>    ArmPlatformPkg/ArmPlatformPkg.dec

> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>    Silicon/Hisilicon/HisiPkg.dec

>  

>  

> diff --git a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h

> deleted file mode 100755

> index b493dd9ac090..000000000000

> --- a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h

> +++ /dev/null

> @@ -1,22 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _SERDES_LIB_H_

> -#define _SERDES_LIB_H_

> -

> -EFI_STATUS

> -EfiSerdesInitWrap (VOID);

> -

> -#endif

> diff --git a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h

> deleted file mode 100644

> index b493dd9ac090..000000000000

> --- a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h

> +++ /dev/null

> @@ -1,22 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _SERDES_LIB_H_

> -#define _SERDES_LIB_H_

> -

> -EFI_STATUS

> -EfiSerdesInitWrap (VOID);

> -

> -#endif

> diff --git a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h b/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h

> deleted file mode 100644

> index b956ee6d072a..000000000000

> --- a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h

> +++ /dev/null

> @@ -1,110 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2017, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2017, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _IPMI_CMD_LIB_H_

> -#define _IPMI_CMD_LIB_H_

> -

> -#define BOOT_OPTION_BOOT_FLAG_VALID         1

> -#define BOOT_OPTION_BOOT_FLAG_INVALID       0

> -

> -typedef enum {

> -  EfiReserved,

> -  EfiBiosFrb2,

> -  EfiBiosPost,

> -  EfiOsLoad,

> -  EfiSmsOs,

> -  EfiOem,

> -  EfiFrbReserved1,

> -  EfiFrbReserved2

> -} EFI_WDT_USER_TYPE;

> -

> -typedef enum {

> -  NoOverride = 0x0,

> -  ForcePxe,

> -  ForceDefaultHardDisk,

> -  ForceDefaultHardDiskSafeMode,

> -  ForceDefaultDiagnosticPartition,

> -  ForceDefaultCD,

> -  ForceSetupUtility,

> -  ForceRemoteRemovableMedia,

> -  ForceRemoteCD,

> -  ForcePrimaryRemoteMedia,

> -  ForceRemoteHardDisk = 0xB,

> -  ForcePrimaryRemovableMedia = 0xF

> -} BOOT_DEVICE_SELECTOR;

> -

> -//

> -// Get System Boot Option data structure

> -//

> -typedef struct {

> -  UINT8 ParameterVersion           :4;

> -  UINT8 Reserved1                  :4;

> -  UINT8 ParameterSelector          :7;

> -  UINT8 ParameterValid             :1;

> -  //

> -  // Boot Flags Data 1

> -  //

> -  UINT8 Reserved2                  :5;

> -  UINT8 BiosBootType               :1;

> -  UINT8 Persistent                 :1;

> -  UINT8 BootFlagsValid             :1;

> -  //

> -  // Boot Flags Data 2

> -  //

> -  UINT8 LockResetBtn               :1;

> -  UINT8 ScreenBlank                :1;

> -  UINT8 BootDeviceSelector         :4;

> -  UINT8 LockKeyboard               :1;

> -  UINT8 ClearCmos                  :1;

> -  //

> -  // Boot Flags Data 3

> -  //

> -  UINT8 ConsoleRedirectionControl  :2;

> -  UINT8 LockSleepBtn               :1;

> -  UINT8 UserPasswordByPass         :1;

> -  UINT8 Reserved3                  :1;

> -  UINT8 FirmwareVerbosity          :2;

> -  UINT8 LockPowerBtn               :1;

> -  //

> -  // Boot Flags Data 4

> -  //

> -  UINT8 MuxControlOverride         :3;

> -  UINT8 ShareModeOverride          :1;

> -  UINT8 Reserved4                  :4;

> -  //

> -  // Boot Flags Data 5

> -  //

> -  UINT8 DeviceInstanceSelector     :5;

> -  UINT8 Reserved5                  :3;

> -} IPMI_GET_BOOT_OPTION;

> -

> -EFI_STATUS

> -EFIAPI

> -IpmiCmdSetSysBootOptions (

> -  OUT IPMI_GET_BOOT_OPTION  *BootOption

> -  );

> -

> -EFI_STATUS

> -EFIAPI

> -IpmiCmdGetSysBootOptions (

> -  IN IPMI_GET_BOOT_OPTION   *BootOption

> -  );

> -

> -EFI_STATUS

> -IpmiCmdStopWatchdogTimer (

> -  IN EFI_WDT_USER_TYPE  UserType

> -  );

> -

> -#endif

> diff --git a/Silicon/Hisilicon/Include/Library/LpcLib.h b/Silicon/Hisilicon/Include/Library/LpcLib.h

> deleted file mode 100755

> index 236a52ba45a7..000000000000

> --- a/Silicon/Hisilicon/Include/Library/LpcLib.h

> +++ /dev/null

> @@ -1,113 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _LPC_LIB_H_

> -#define _LPC_LIB_H_

> -

> -#include <Uefi.h>

> -

> -#define PCIE_SUBSYS_IO_MUX      0xA0170000

> -#define PCIE_SUBSYS_IOMG033     (PCIE_SUBSYS_IO_MUX + 0x84)

> -#define PCIE_SUBSYS_IOMG035     (PCIE_SUBSYS_IO_MUX + 0x8C)

> -#define PCIE_SUBSYS_IOMG036     (PCIE_SUBSYS_IO_MUX + 0x90)

> -#define PCIE_SUBSYS_IOMG045     (PCIE_SUBSYS_IO_MUX + 0xB4)

> -#define PCIE_SUBSYS_IOMG046     (PCIE_SUBSYS_IO_MUX + 0xB8)

> -#define PCIE_SUBSYS_IOMG047     (PCIE_SUBSYS_IO_MUX + 0xBC)

> -#define PCIE_SUBSYS_IOMG048     (PCIE_SUBSYS_IO_MUX + 0xC0)

> -#define PCIE_SUBSYS_IOMG049     (PCIE_SUBSYS_IO_MUX + 0xC4)

> -#define PCIE_SUBSYS_IOMG050     (PCIE_SUBSYS_IO_MUX + 0xC8)

> -

> -#define IO_WRAP_CTRL_BASE       0xA0100000

> -#define SC_LPC_CLK_EN_REG       (IO_WRAP_CTRL_BASE + 0x03a0)

> -#define SC_LPC_CLK_DIS_REG      (IO_WRAP_CTRL_BASE + 0x03a4)

> -#define SC_LPC_BUS_CLK_EN_REG   (IO_WRAP_CTRL_BASE + 0x03a8)

> -#define SC_LPC_BUS_CLK_DIS_REG  (IO_WRAP_CTRL_BASE + 0x03ac)

> -#define SC_LPC_RESET_REQ        (IO_WRAP_CTRL_BASE + 0x0ad8)

> -#define SC_LPC_RESET_DREQ       (IO_WRAP_CTRL_BASE + 0x0adc)

> -#define SC_LPC_BUS_RESET_REQ    (IO_WRAP_CTRL_BASE + 0x0ae0)

> -#define SC_LPC_BUS_RESET_DREQ   (IO_WRAP_CTRL_BASE + 0x0ae4)

> -#define SC_LPC_CTRL_REG         (IO_WRAP_CTRL_BASE + 0x2028)

> -

> -

> -#define LPC_BASE                0xA01B0000

> -#define LPC_START_REG           (LPC_BASE + 0x00)

> -#define LPC_OP_STATUS_REG       (LPC_BASE + 0x04)

> -#define LPC_IRQ_ST_REG          (LPC_BASE + 0x08)

> -#define LPC_OP_LEN_REG          (LPC_BASE + 0x10)

> -#define LPC_CMD_REG             (LPC_BASE + 0x14)

> -#define LPC_FWH_ID_MSIZE_REG    (LPC_BASE + 0x18)

> -#define LPC_ADDR_REG            (LPC_BASE + 0x20)

> -#define LPC_WDATA_REG           (LPC_BASE + 0x24)

> -#define LPC_RDATA_REG           (LPC_BASE + 0x28)

> -#define LPC_LONG_CNT_REG        (LPC_BASE + 0x30)

> -#define LPC_TX_FIFO_ST_REG      (LPC_BASE + 0x50)

> -#define LPC_RX_FIFO_ST_REG      (LPC_BASE + 0x54)

> -#define LPC_TIME_OUT_REG        (LPC_BASE + 0x58)

> -#define LPC_SIRQ_CTRL0_REG      (LPC_BASE + 0x80)

> -#define LPC_SIRQ_CTRL1_REG      (LPC_BASE + 0x84)

> -#define LPC_SIRQ_INT_REG        (LPC_BASE + 0x90)

> -#define LPC_SIRQ_INT_MASK_REG   (LPC_BASE + 0x94)

> -#define LPC_SIRQ_STAT_REG       (LPC_BASE + 0xA0)

> -

> -#define LPC_FIFO_LEN            (16)

> -

> -typedef enum{

> -    LPC_ADDR_MODE_INCREASE,

> -    LPC_ADDR_MODE_SINGLE

> -}LPC_ADDR_MODE;

> -

> -typedef enum{

> -    LPC_TYPE_IO,

> -    LPC_TYPE_MEM,

> -    LPC_TYPE_FWH

> -}LPC_TYPE;

> -

> -

> -typedef union {

> -    struct{

> -        UINT32  lpc_wr:1;

> -        UINT32  lpc_type:2;

> -        UINT32  same_addr:1;

> -        UINT32  resv:28;

> -    }bits;

> -    UINT32  u32;

> -}LPC_CMD_STRUCT;

> -

> -typedef union {

> -    struct{

> -        UINT32  op_len:5;

> -        UINT32  resv:27;

> -    }bits;

> -    UINT32  u32;

> -}LPC_OP_LEN_STRUCT;

> -

> -

> -VOID LpcInit(VOID);

> -BOOLEAN LpcIdle(VOID);

> -EFI_STATUS LpcByteWrite(

> -    IN  UINT32              Addr,

> -    IN  UINT8               Data);

> -EFI_STATUS LpcByteRead(

> -    IN  UINT32              Addr,

> -    IN OUT  UINT8          *Data);

> -

> -EFI_STATUS LpcWrite(

> -    IN  UINT32              Addr,

> -    IN  UINT8              *Data,

> -    IN  UINT8               Len);

> -

> -#endif

> -

> -

> diff --git a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h b/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h

> deleted file mode 100644

> index b5de34f5facb..000000000000

> --- a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h

> +++ /dev/null

> @@ -1,45 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2015, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _OEM_ADDRESS_MAP_LIB_H_

> -#define _OEM_ADDRESS_MAP_LIB_H_

> -

> -#include <PlatformArch.h>

> -

> -typedef struct _DDRC_BASE_ID{

> -    UINTN  Base;

> -    UINTN  Id;

> -}DDRC_BASE_ID;

> -

> -// Invalid address, will cause exception when accessed by bug code

> -#define ADDRESS_MAP_INVALID ((UINTN)(-1))

> -

> -UINTN OemGetPoeSubBase (UINT32 NodeId);

> -UINTN OemGetPeriSubBase (UINT32 NodeId);

> -UINTN OemGetAlgSubBase (UINT32 NodeId);

> -UINTN OemGetCfgbusBase (UINT32 NodeId);

> -UINTN OemGetGicSubBase (UINT32 NodeId);

> -UINTN OemGetHACSubBase (UINT32 NodeId);

> -UINTN OemGetIOMGMTSubBase (UINT32 NodeId);

> -UINTN OemGetNetworkSubBase (UINT32 NodeId);

> -UINTN OemGetM3SubBase (UINT32 NodeId);

> -UINTN OemGetPCIeSubBase (UINT32 NodeId);

> -

> -VOID OemAddressMapInit(VOID);

> -

> -extern DDRC_BASE_ID DdrcBaseId[MAX_SOCKET][MAX_CHANNEL];

> -

> -#endif

> -

> diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h

> deleted file mode 100644

> index 712b77c44fc8..000000000000

> --- a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h

> +++ /dev/null

> @@ -1,112 +0,0 @@

> -/** @file

> -*

> -*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2015, Linaro Limited. All rights reserved.

> -*

> -*  This program and the accompanying materials

> -*  are licensed and made available under the terms and conditions of the BSD License

> -*  which accompanies this distribution.  The full text of the license may be found at

> -*  http://opensource.org/licenses/bsd-license.php

> -*

> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

> -*

> -**/

> -

> -#ifndef _PLATFORM_SYS_CTRL_LIB_H_

> -#define _PLATFORM_SYS_CTRL_LIB_H_

> -

> -#define PACKAGE_16CORE      0

> -#define PACKAGE_32CORE      1

> -#define PACKAGE_RESERVED    2

> -#define PACKAGE_TYPE_NUM    3

> -

> -UINT32 PlatformGetPackageType (VOID);

> -

> -VOID DisplayCpuInfo (VOID);

> -UINT32 CheckChipIsEc(VOID);

> -

> -UINTN PlatformGetPll (UINT32 NodeId, UINTN Pll);

> -

> -#define DJTAG_READ_INVALID_VALUE 0xFFFFFFFF

> -#define DJTAG_CHAIN_ID_AA        1

> -#define DJTAG_CHAIN_ID_LLC       4

> -

> -

> -#define SC_DJTAG_MSTR_EN_OFFSET             0x6800

> -#define SC_DJTAG_MSTR_START_EN_OFFSET       0x6804

> -#define SC_DJTAG_SEC_ACC_EN_OFFSET          0x6808

> -#define SC_DJTAG_DEBUG_MODULE_SEL_OFFSET    0x680C

> -#define SC_DJTAG_MSTR_WR_OFFSET             0x6810

> -#define SC_DJTAG_CHAIN_UNIT_CFG_EN_OFFSET   0x6814

> -#define SC_DJTAG_MSTR_ADDR_OFFSET           0x6818

> -#define SC_DJTAG_MSTR_DATA_OFFSET           0x681C

> -#define SC_DJTAG_TMOUT_OFFSET               0x6820

> -#define SC_TDRE_OP_ADDR_OFFSET              0x6824

> -#define SC_TDRE_WDATA_OFFSET                0x6828

> -#define SC_TDRE_REPAIR_EN_OFFSET            0x682C

> -#define SC_DJTAG_RD_DATA0_OFFSET            0xE800

> -#define SC_TDRE_RDATA0_OFFSET               0xE830

> -

> -

> -UINTN PlatformGetI2cBase(UINT32 Socket,UINT8 Port);

> -

> -VOID PlatformAddressMapCleanUp (VOID);

> -VOID PlatformDisableDdrWindow (VOID);

> -

> -VOID PlatformEnableArchTimer (VOID);

> -

> -EFI_STATUS

> -DawFindFreeWindow (UINTN Socket, UINTN *DawIndex);

> -

> -VOID DawSetWindow (UINTN Socket, UINTN WindowIndex, UINT32 Value);

> -

> -VOID DJTAG_TDRE_WRITE(UINT32 Offset, UINT32 Value, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);

> -

> -UINT32 DJTAG_TDRE_READ(UINT32 Offset, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);

> -

> -VOID RemoveRoceReset(VOID);

> -

> -UINTN PlatformGetDdrChannel (VOID);

> -

> -VOID ITSCONFIG (VOID);

> -

> -VOID MN_CONFIG (VOID);

> -

> -VOID SmmuConfigForOS (VOID);

> -VOID SmmuConfigForBios (VOID);

> -

> -VOID StartUpBSP (VOID);

> -

> -VOID LlcCleanInvalidate (VOID);

> -

> -UINTN PlatformGetCpuFreq (UINT8 Socket);

> -VOID ClearInterruptStatus(VOID);

> -

> -UINTN PlatformGetCoreCount (VOID);

> -VOID DAWConfigEn(UINT32 socket);

> -

> -VOID DResetUsb ();

> -UINT32 PlatformGetEhciBase ();

> -UINT32 PlatformGetOhciBase ();

> -VOID PlatformPllInit();

> -// PLL initialization for super IO clusters.

> -VOID SiclPllInit(UINT32 SclId);

> -VOID PlatformDeviceDReset();

> -VOID PlatformGicdInit();

> -VOID PlatformLpcInit();

> -// Synchronize architecture timer counter between different super computing

> -// clusters.

> -VOID PlatformArchTimerSynchronize(VOID);

> -VOID PlatformEventBroadcastConfig(VOID);

> -UINTN GetDjtagRegBase(UINT32 NodeId);

> -VOID LlcCleanInvalidateAsm(VOID);

> -VOID PlatformMdioInit(VOID);

> -VOID DisableClusterClock(UINTN CpuClusterBase);

> -VOID EnableClusterClock(UINTN CpuClusterBase);

> -VOID DisableSocketClock (UINT8 Skt);

> -

> -EFI_STATUS EFIAPI HandleI2CException (UINT32 Socket, UINT32 Port);

> -EFI_STATUS EFIAPI HandleI2CExceptionBySocket (UINT32 Socket);

> -

> -#endif

> -- 

> 2.9.5

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ming Huang Feb. 21, 2019, 2:03 a.m. UTC | #2
On 2/21/2019 1:24 AM, Leif Lindholm wrote:
> Hi Ming,

> 

> Thank you for this rework.

> 

> However, can you move it first in the series, so that it's obvious

> this series contains no changes to these headers (because they have

> all happened in edk2-non-osi)?


Ok. Actually the patch "Rename StartupAp() function" modify function
name in PlatformSysCtrlLib.h, so this change need to move to edk2-non-osi.

Thanks

> 

> Regards,

> 

> Leif

> 

> On Wed, Feb 20, 2019 at 03:28:36PM +0800, Ming Huang wrote:

>> As some interfaces exposed only by implementations in edk2-non-osi,

>> so delete corresponding header files and modify code to make build.

>>

>> Contributed-under: TianoCore Contribution Agreement 1.1

>> Signed-off-by: Ming Huang <ming.huang@linaro.org>

>> ---

>>  Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf                  |   1 +

>>  Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf             |   2 +-

>>  Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf                  |   1 +

>>  Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf                 |   1 +

>>  Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf                  |   1 +

>>  Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf                 |   1 +

>>  Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf       |   1 +

>>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf |   1 +

>>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf               |   2 +-

>>  Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf                |   1 +

>>  Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf                       |   1 +

>>  Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf                |   1 +

>>  Silicon/Hisilicon/Library/I2CLib/I2CLib.inf                                    |   1 +

>>  Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf                             |   1 +

>>  Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h                           |  22 ----

>>  Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h                           |  22 ----

>>  Silicon/Hisilicon/Include/Library/IpmiCmdLib.h                                 | 110 -------------------

>>  Silicon/Hisilicon/Include/Library/LpcLib.h                                     | 113 --------------------

>>  Silicon/Hisilicon/Include/Library/OemAddressMapLib.h                           |  45 --------

>>  Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h                         | 112 -------------------

>>  20 files changed, 14 insertions(+), 426 deletions(-)

>>

>> diff --git a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

>> index c65cf7b6dd9f..90e40ae2b393 100644

>> --- a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

>> +++ b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf

>> @@ -30,6 +30,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>  

>>    ArmPkg/ArmPkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

>> index 0fa7fdf80fa8..c0195b2fa9cf 100644

>> --- a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

>> +++ b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf

>> @@ -30,7 +30,7 @@ [Packages]

>>    MdePkg/MdePkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>>    ArmPkg/ArmPkg.dec

>> -

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

>> index 0f6b68d4c88d..e82c9204d5d6 100644

>> --- a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

>> +++ b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf

>> @@ -29,6 +29,7 @@ [Packages]

>>    ArmPkg/ArmPkg.dec

>>    MdePkg/MdePkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

>> index 022c3e940a31..7ec577530610 100644

>> --- a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

>> +++ b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf

>> @@ -30,6 +30,7 @@ [Packages]

>>    ArmPkg/ArmPkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>>    MdePkg/MdePkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

>> index 8296ee02de4e..715a4efadde8 100644

>> --- a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

>> +++ b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf

>> @@ -29,6 +29,7 @@ [Packages]

>>    ArmPkg/ArmPkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>>    MdePkg/MdePkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

>> index 75c5054bbfd1..9bc6eb549c41 100644

>> --- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

>> +++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf

>> @@ -31,6 +31,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    MdePkg/MdePkg.dec

>>    Platform/Hisilicon/D06/D06.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

>> index 93a2bcac3726..94f6fe404c6d 100644

>> --- a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

>> +++ b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf

>> @@ -31,6 +31,7 @@ [Packages]

>>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>>    IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

>>  

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

>> index 2275586ff324..808da65cd429 100644

>> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

>> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf

>> @@ -32,6 +32,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>>  

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

>> index 669e6a2d52cc..0c37b53af987 100644

>> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

>> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf

>> @@ -58,7 +58,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    IntelFrameworkPkg/IntelFrameworkPkg.dec

>>    IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

>> -

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

>> index c07a5b8aa250..5b917fd3fdea 100644

>> --- a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

>> +++ b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf

>> @@ -30,6 +30,7 @@ [Sources]

>>  [Packages]

>>    MdePkg/MdePkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

>> index 89447cc52d76..aa8e3c9c0b63 100644

>> --- a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

>> +++ b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf

>> @@ -35,6 +35,7 @@ [Packages]

>>    MdePkg/MdePkg.dec

>>    MdeModulePkg/MdeModulePkg.dec

>>    ArmPkg/ArmPkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

>> index b603523100ae..d6b5248fcdbf 100644

>> --- a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

>> +++ b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf

>> @@ -27,6 +27,7 @@ [Sources.common]

>>  [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    MdePkg/MdePkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  [LibraryClasses]

>> diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

>> index 9bca88fe8702..e9520b39530e 100644

>> --- a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

>> +++ b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf

>> @@ -31,6 +31,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    ArmPkg/ArmPkg.dec

>>    ArmPlatformPkg/ArmPlatformPkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  

>> diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

>> index 1bb4f5c703bb..6211373ce7ba 100644

>> --- a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

>> +++ b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf

>> @@ -31,6 +31,7 @@ [Packages]

>>    MdeModulePkg/MdeModulePkg.dec

>>    ArmPkg/ArmPkg.dec

>>    ArmPlatformPkg/ArmPlatformPkg.dec

>> +  Silicon/Hisilicon/HisiliconNonOsi.dec

>>    Silicon/Hisilicon/HisiPkg.dec

>>  

>>  

>> diff --git a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h

>> deleted file mode 100755

>> index b493dd9ac090..000000000000

>> --- a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h

>> +++ /dev/null

>> @@ -1,22 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _SERDES_LIB_H_

>> -#define _SERDES_LIB_H_

>> -

>> -EFI_STATUS

>> -EfiSerdesInitWrap (VOID);

>> -

>> -#endif

>> diff --git a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h

>> deleted file mode 100644

>> index b493dd9ac090..000000000000

>> --- a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h

>> +++ /dev/null

>> @@ -1,22 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _SERDES_LIB_H_

>> -#define _SERDES_LIB_H_

>> -

>> -EFI_STATUS

>> -EfiSerdesInitWrap (VOID);

>> -

>> -#endif

>> diff --git a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h b/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h

>> deleted file mode 100644

>> index b956ee6d072a..000000000000

>> --- a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h

>> +++ /dev/null

>> @@ -1,110 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2017, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2017, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _IPMI_CMD_LIB_H_

>> -#define _IPMI_CMD_LIB_H_

>> -

>> -#define BOOT_OPTION_BOOT_FLAG_VALID         1

>> -#define BOOT_OPTION_BOOT_FLAG_INVALID       0

>> -

>> -typedef enum {

>> -  EfiReserved,

>> -  EfiBiosFrb2,

>> -  EfiBiosPost,

>> -  EfiOsLoad,

>> -  EfiSmsOs,

>> -  EfiOem,

>> -  EfiFrbReserved1,

>> -  EfiFrbReserved2

>> -} EFI_WDT_USER_TYPE;

>> -

>> -typedef enum {

>> -  NoOverride = 0x0,

>> -  ForcePxe,

>> -  ForceDefaultHardDisk,

>> -  ForceDefaultHardDiskSafeMode,

>> -  ForceDefaultDiagnosticPartition,

>> -  ForceDefaultCD,

>> -  ForceSetupUtility,

>> -  ForceRemoteRemovableMedia,

>> -  ForceRemoteCD,

>> -  ForcePrimaryRemoteMedia,

>> -  ForceRemoteHardDisk = 0xB,

>> -  ForcePrimaryRemovableMedia = 0xF

>> -} BOOT_DEVICE_SELECTOR;

>> -

>> -//

>> -// Get System Boot Option data structure

>> -//

>> -typedef struct {

>> -  UINT8 ParameterVersion           :4;

>> -  UINT8 Reserved1                  :4;

>> -  UINT8 ParameterSelector          :7;

>> -  UINT8 ParameterValid             :1;

>> -  //

>> -  // Boot Flags Data 1

>> -  //

>> -  UINT8 Reserved2                  :5;

>> -  UINT8 BiosBootType               :1;

>> -  UINT8 Persistent                 :1;

>> -  UINT8 BootFlagsValid             :1;

>> -  //

>> -  // Boot Flags Data 2

>> -  //

>> -  UINT8 LockResetBtn               :1;

>> -  UINT8 ScreenBlank                :1;

>> -  UINT8 BootDeviceSelector         :4;

>> -  UINT8 LockKeyboard               :1;

>> -  UINT8 ClearCmos                  :1;

>> -  //

>> -  // Boot Flags Data 3

>> -  //

>> -  UINT8 ConsoleRedirectionControl  :2;

>> -  UINT8 LockSleepBtn               :1;

>> -  UINT8 UserPasswordByPass         :1;

>> -  UINT8 Reserved3                  :1;

>> -  UINT8 FirmwareVerbosity          :2;

>> -  UINT8 LockPowerBtn               :1;

>> -  //

>> -  // Boot Flags Data 4

>> -  //

>> -  UINT8 MuxControlOverride         :3;

>> -  UINT8 ShareModeOverride          :1;

>> -  UINT8 Reserved4                  :4;

>> -  //

>> -  // Boot Flags Data 5

>> -  //

>> -  UINT8 DeviceInstanceSelector     :5;

>> -  UINT8 Reserved5                  :3;

>> -} IPMI_GET_BOOT_OPTION;

>> -

>> -EFI_STATUS

>> -EFIAPI

>> -IpmiCmdSetSysBootOptions (

>> -  OUT IPMI_GET_BOOT_OPTION  *BootOption

>> -  );

>> -

>> -EFI_STATUS

>> -EFIAPI

>> -IpmiCmdGetSysBootOptions (

>> -  IN IPMI_GET_BOOT_OPTION   *BootOption

>> -  );

>> -

>> -EFI_STATUS

>> -IpmiCmdStopWatchdogTimer (

>> -  IN EFI_WDT_USER_TYPE  UserType

>> -  );

>> -

>> -#endif

>> diff --git a/Silicon/Hisilicon/Include/Library/LpcLib.h b/Silicon/Hisilicon/Include/Library/LpcLib.h

>> deleted file mode 100755

>> index 236a52ba45a7..000000000000

>> --- a/Silicon/Hisilicon/Include/Library/LpcLib.h

>> +++ /dev/null

>> @@ -1,113 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2016, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _LPC_LIB_H_

>> -#define _LPC_LIB_H_

>> -

>> -#include <Uefi.h>

>> -

>> -#define PCIE_SUBSYS_IO_MUX      0xA0170000

>> -#define PCIE_SUBSYS_IOMG033     (PCIE_SUBSYS_IO_MUX + 0x84)

>> -#define PCIE_SUBSYS_IOMG035     (PCIE_SUBSYS_IO_MUX + 0x8C)

>> -#define PCIE_SUBSYS_IOMG036     (PCIE_SUBSYS_IO_MUX + 0x90)

>> -#define PCIE_SUBSYS_IOMG045     (PCIE_SUBSYS_IO_MUX + 0xB4)

>> -#define PCIE_SUBSYS_IOMG046     (PCIE_SUBSYS_IO_MUX + 0xB8)

>> -#define PCIE_SUBSYS_IOMG047     (PCIE_SUBSYS_IO_MUX + 0xBC)

>> -#define PCIE_SUBSYS_IOMG048     (PCIE_SUBSYS_IO_MUX + 0xC0)

>> -#define PCIE_SUBSYS_IOMG049     (PCIE_SUBSYS_IO_MUX + 0xC4)

>> -#define PCIE_SUBSYS_IOMG050     (PCIE_SUBSYS_IO_MUX + 0xC8)

>> -

>> -#define IO_WRAP_CTRL_BASE       0xA0100000

>> -#define SC_LPC_CLK_EN_REG       (IO_WRAP_CTRL_BASE + 0x03a0)

>> -#define SC_LPC_CLK_DIS_REG      (IO_WRAP_CTRL_BASE + 0x03a4)

>> -#define SC_LPC_BUS_CLK_EN_REG   (IO_WRAP_CTRL_BASE + 0x03a8)

>> -#define SC_LPC_BUS_CLK_DIS_REG  (IO_WRAP_CTRL_BASE + 0x03ac)

>> -#define SC_LPC_RESET_REQ        (IO_WRAP_CTRL_BASE + 0x0ad8)

>> -#define SC_LPC_RESET_DREQ       (IO_WRAP_CTRL_BASE + 0x0adc)

>> -#define SC_LPC_BUS_RESET_REQ    (IO_WRAP_CTRL_BASE + 0x0ae0)

>> -#define SC_LPC_BUS_RESET_DREQ   (IO_WRAP_CTRL_BASE + 0x0ae4)

>> -#define SC_LPC_CTRL_REG         (IO_WRAP_CTRL_BASE + 0x2028)

>> -

>> -

>> -#define LPC_BASE                0xA01B0000

>> -#define LPC_START_REG           (LPC_BASE + 0x00)

>> -#define LPC_OP_STATUS_REG       (LPC_BASE + 0x04)

>> -#define LPC_IRQ_ST_REG          (LPC_BASE + 0x08)

>> -#define LPC_OP_LEN_REG          (LPC_BASE + 0x10)

>> -#define LPC_CMD_REG             (LPC_BASE + 0x14)

>> -#define LPC_FWH_ID_MSIZE_REG    (LPC_BASE + 0x18)

>> -#define LPC_ADDR_REG            (LPC_BASE + 0x20)

>> -#define LPC_WDATA_REG           (LPC_BASE + 0x24)

>> -#define LPC_RDATA_REG           (LPC_BASE + 0x28)

>> -#define LPC_LONG_CNT_REG        (LPC_BASE + 0x30)

>> -#define LPC_TX_FIFO_ST_REG      (LPC_BASE + 0x50)

>> -#define LPC_RX_FIFO_ST_REG      (LPC_BASE + 0x54)

>> -#define LPC_TIME_OUT_REG        (LPC_BASE + 0x58)

>> -#define LPC_SIRQ_CTRL0_REG      (LPC_BASE + 0x80)

>> -#define LPC_SIRQ_CTRL1_REG      (LPC_BASE + 0x84)

>> -#define LPC_SIRQ_INT_REG        (LPC_BASE + 0x90)

>> -#define LPC_SIRQ_INT_MASK_REG   (LPC_BASE + 0x94)

>> -#define LPC_SIRQ_STAT_REG       (LPC_BASE + 0xA0)

>> -

>> -#define LPC_FIFO_LEN            (16)

>> -

>> -typedef enum{

>> -    LPC_ADDR_MODE_INCREASE,

>> -    LPC_ADDR_MODE_SINGLE

>> -}LPC_ADDR_MODE;

>> -

>> -typedef enum{

>> -    LPC_TYPE_IO,

>> -    LPC_TYPE_MEM,

>> -    LPC_TYPE_FWH

>> -}LPC_TYPE;

>> -

>> -

>> -typedef union {

>> -    struct{

>> -        UINT32  lpc_wr:1;

>> -        UINT32  lpc_type:2;

>> -        UINT32  same_addr:1;

>> -        UINT32  resv:28;

>> -    }bits;

>> -    UINT32  u32;

>> -}LPC_CMD_STRUCT;

>> -

>> -typedef union {

>> -    struct{

>> -        UINT32  op_len:5;

>> -        UINT32  resv:27;

>> -    }bits;

>> -    UINT32  u32;

>> -}LPC_OP_LEN_STRUCT;

>> -

>> -

>> -VOID LpcInit(VOID);

>> -BOOLEAN LpcIdle(VOID);

>> -EFI_STATUS LpcByteWrite(

>> -    IN  UINT32              Addr,

>> -    IN  UINT8               Data);

>> -EFI_STATUS LpcByteRead(

>> -    IN  UINT32              Addr,

>> -    IN OUT  UINT8          *Data);

>> -

>> -EFI_STATUS LpcWrite(

>> -    IN  UINT32              Addr,

>> -    IN  UINT8              *Data,

>> -    IN  UINT8               Len);

>> -

>> -#endif

>> -

>> -

>> diff --git a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h b/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h

>> deleted file mode 100644

>> index b5de34f5facb..000000000000

>> --- a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h

>> +++ /dev/null

>> @@ -1,45 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2015, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _OEM_ADDRESS_MAP_LIB_H_

>> -#define _OEM_ADDRESS_MAP_LIB_H_

>> -

>> -#include <PlatformArch.h>

>> -

>> -typedef struct _DDRC_BASE_ID{

>> -    UINTN  Base;

>> -    UINTN  Id;

>> -}DDRC_BASE_ID;

>> -

>> -// Invalid address, will cause exception when accessed by bug code

>> -#define ADDRESS_MAP_INVALID ((UINTN)(-1))

>> -

>> -UINTN OemGetPoeSubBase (UINT32 NodeId);

>> -UINTN OemGetPeriSubBase (UINT32 NodeId);

>> -UINTN OemGetAlgSubBase (UINT32 NodeId);

>> -UINTN OemGetCfgbusBase (UINT32 NodeId);

>> -UINTN OemGetGicSubBase (UINT32 NodeId);

>> -UINTN OemGetHACSubBase (UINT32 NodeId);

>> -UINTN OemGetIOMGMTSubBase (UINT32 NodeId);

>> -UINTN OemGetNetworkSubBase (UINT32 NodeId);

>> -UINTN OemGetM3SubBase (UINT32 NodeId);

>> -UINTN OemGetPCIeSubBase (UINT32 NodeId);

>> -

>> -VOID OemAddressMapInit(VOID);

>> -

>> -extern DDRC_BASE_ID DdrcBaseId[MAX_SOCKET][MAX_CHANNEL];

>> -

>> -#endif

>> -

>> diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h

>> deleted file mode 100644

>> index 712b77c44fc8..000000000000

>> --- a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h

>> +++ /dev/null

>> @@ -1,112 +0,0 @@

>> -/** @file

>> -*

>> -*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.

>> -*  Copyright (c) 2015, Linaro Limited. All rights reserved.

>> -*

>> -*  This program and the accompanying materials

>> -*  are licensed and made available under the terms and conditions of the BSD License

>> -*  which accompanies this distribution.  The full text of the license may be found at

>> -*  http://opensource.org/licenses/bsd-license.php

>> -*

>> -*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

>> -*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

>> -*

>> -**/

>> -

>> -#ifndef _PLATFORM_SYS_CTRL_LIB_H_

>> -#define _PLATFORM_SYS_CTRL_LIB_H_

>> -

>> -#define PACKAGE_16CORE      0

>> -#define PACKAGE_32CORE      1

>> -#define PACKAGE_RESERVED    2

>> -#define PACKAGE_TYPE_NUM    3

>> -

>> -UINT32 PlatformGetPackageType (VOID);

>> -

>> -VOID DisplayCpuInfo (VOID);

>> -UINT32 CheckChipIsEc(VOID);

>> -

>> -UINTN PlatformGetPll (UINT32 NodeId, UINTN Pll);

>> -

>> -#define DJTAG_READ_INVALID_VALUE 0xFFFFFFFF

>> -#define DJTAG_CHAIN_ID_AA        1

>> -#define DJTAG_CHAIN_ID_LLC       4

>> -

>> -

>> -#define SC_DJTAG_MSTR_EN_OFFSET             0x6800

>> -#define SC_DJTAG_MSTR_START_EN_OFFSET       0x6804

>> -#define SC_DJTAG_SEC_ACC_EN_OFFSET          0x6808

>> -#define SC_DJTAG_DEBUG_MODULE_SEL_OFFSET    0x680C

>> -#define SC_DJTAG_MSTR_WR_OFFSET             0x6810

>> -#define SC_DJTAG_CHAIN_UNIT_CFG_EN_OFFSET   0x6814

>> -#define SC_DJTAG_MSTR_ADDR_OFFSET           0x6818

>> -#define SC_DJTAG_MSTR_DATA_OFFSET           0x681C

>> -#define SC_DJTAG_TMOUT_OFFSET               0x6820

>> -#define SC_TDRE_OP_ADDR_OFFSET              0x6824

>> -#define SC_TDRE_WDATA_OFFSET                0x6828

>> -#define SC_TDRE_REPAIR_EN_OFFSET            0x682C

>> -#define SC_DJTAG_RD_DATA0_OFFSET            0xE800

>> -#define SC_TDRE_RDATA0_OFFSET               0xE830

>> -

>> -

>> -UINTN PlatformGetI2cBase(UINT32 Socket,UINT8 Port);

>> -

>> -VOID PlatformAddressMapCleanUp (VOID);

>> -VOID PlatformDisableDdrWindow (VOID);

>> -

>> -VOID PlatformEnableArchTimer (VOID);

>> -

>> -EFI_STATUS

>> -DawFindFreeWindow (UINTN Socket, UINTN *DawIndex);

>> -

>> -VOID DawSetWindow (UINTN Socket, UINTN WindowIndex, UINT32 Value);

>> -

>> -VOID DJTAG_TDRE_WRITE(UINT32 Offset, UINT32 Value, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);

>> -

>> -UINT32 DJTAG_TDRE_READ(UINT32 Offset, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);

>> -

>> -VOID RemoveRoceReset(VOID);

>> -

>> -UINTN PlatformGetDdrChannel (VOID);

>> -

>> -VOID ITSCONFIG (VOID);

>> -

>> -VOID MN_CONFIG (VOID);

>> -

>> -VOID SmmuConfigForOS (VOID);

>> -VOID SmmuConfigForBios (VOID);

>> -

>> -VOID StartUpBSP (VOID);

>> -

>> -VOID LlcCleanInvalidate (VOID);

>> -

>> -UINTN PlatformGetCpuFreq (UINT8 Socket);

>> -VOID ClearInterruptStatus(VOID);

>> -

>> -UINTN PlatformGetCoreCount (VOID);

>> -VOID DAWConfigEn(UINT32 socket);

>> -

>> -VOID DResetUsb ();

>> -UINT32 PlatformGetEhciBase ();

>> -UINT32 PlatformGetOhciBase ();

>> -VOID PlatformPllInit();

>> -// PLL initialization for super IO clusters.

>> -VOID SiclPllInit(UINT32 SclId);

>> -VOID PlatformDeviceDReset();

>> -VOID PlatformGicdInit();

>> -VOID PlatformLpcInit();

>> -// Synchronize architecture timer counter between different super computing

>> -// clusters.

>> -VOID PlatformArchTimerSynchronize(VOID);

>> -VOID PlatformEventBroadcastConfig(VOID);

>> -UINTN GetDjtagRegBase(UINT32 NodeId);

>> -VOID LlcCleanInvalidateAsm(VOID);

>> -VOID PlatformMdioInit(VOID);

>> -VOID DisableClusterClock(UINTN CpuClusterBase);

>> -VOID EnableClusterClock(UINTN CpuClusterBase);

>> -VOID DisableSocketClock (UINT8 Skt);

>> -

>> -EFI_STATUS EFIAPI HandleI2CException (UINT32 Socket, UINT32 Port);

>> -EFI_STATUS EFIAPI HandleI2CExceptionBySocket (UINT32 Socket);

>> -

>> -#endif

>> -- 

>> 2.9.5

>>

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
index c65cf7b6dd9f..90e40ae2b393 100644
--- a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
+++ b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.inf
@@ -30,6 +30,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
 
   ArmPkg/ArmPkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
index 0fa7fdf80fa8..c0195b2fa9cf 100644
--- a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
+++ b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf
@@ -30,7 +30,7 @@  [Packages]
   MdePkg/MdePkg.dec
   MdeModulePkg/MdeModulePkg.dec
   ArmPkg/ArmPkg.dec
-
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf
index 0f6b68d4c88d..e82c9204d5d6 100644
--- a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf
+++ b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.inf
@@ -29,6 +29,7 @@  [Packages]
   ArmPkg/ArmPkg.dec
   MdePkg/MdePkg.dec
   MdeModulePkg/MdeModulePkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
index 022c3e940a31..7ec577530610 100644
--- a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
+++ b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf
@@ -30,6 +30,7 @@  [Packages]
   ArmPkg/ArmPkg.dec
   MdeModulePkg/MdeModulePkg.dec
   MdePkg/MdePkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf
index 8296ee02de4e..715a4efadde8 100644
--- a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf
+++ b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.inf
@@ -29,6 +29,7 @@  [Packages]
   ArmPkg/ArmPkg.dec
   MdeModulePkg/MdeModulePkg.dec
   MdePkg/MdePkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
index 75c5054bbfd1..9bc6eb549c41 100644
--- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
+++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf
@@ -31,6 +31,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
   MdePkg/MdePkg.dec
   Platform/Hisilicon/D06/D06.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
index 93a2bcac3726..94f6fe404c6d 100644
--- a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
+++ b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
@@ -31,6 +31,7 @@  [Packages]
   IntelFrameworkPkg/IntelFrameworkPkg.dec
   IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
 
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
index 2275586ff324..808da65cd429 100644
--- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
+++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
@@ -32,6 +32,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
   IntelFrameworkPkg/IntelFrameworkPkg.dec
 
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
index 669e6a2d52cc..0c37b53af987 100644
--- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
+++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
@@ -58,7 +58,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
   IntelFrameworkPkg/IntelFrameworkPkg.dec
   IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
-
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf
index c07a5b8aa250..5b917fd3fdea 100644
--- a/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf
+++ b/Silicon/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.inf
@@ -30,6 +30,7 @@  [Sources]
 [Packages]
   MdePkg/MdePkg.dec
   MdeModulePkg/MdeModulePkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf
index 89447cc52d76..aa8e3c9c0b63 100644
--- a/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf
+++ b/Silicon/Hisilicon/Hi1610/Drivers/IoInitDxe/IoInitDxe.inf
@@ -35,6 +35,7 @@  [Packages]
   MdePkg/MdePkg.dec
   MdeModulePkg/MdeModulePkg.dec
   ArmPkg/ArmPkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf
index b603523100ae..d6b5248fcdbf 100644
--- a/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf
+++ b/Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf
@@ -27,6 +27,7 @@  [Sources.common]
 [Packages]
   MdeModulePkg/MdeModulePkg.dec
   MdePkg/MdePkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 [LibraryClasses]
diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf
index 9bca88fe8702..e9520b39530e 100644
--- a/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf
+++ b/Silicon/Hisilicon/Library/I2CLib/I2CLib.inf
@@ -31,6 +31,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
   ArmPkg/ArmPkg.dec
   ArmPlatformPkg/ArmPlatformPkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 
diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf
index 1bb4f5c703bb..6211373ce7ba 100644
--- a/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf
+++ b/Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf
@@ -31,6 +31,7 @@  [Packages]
   MdeModulePkg/MdeModulePkg.dec
   ArmPkg/ArmPkg.dec
   ArmPlatformPkg/ArmPlatformPkg.dec
+  Silicon/Hisilicon/HisiliconNonOsi.dec
   Silicon/Hisilicon/HisiPkg.dec
 
 
diff --git a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h
deleted file mode 100755
index b493dd9ac090..000000000000
--- a/Silicon/Hisilicon/Hi1610/Include/Library/SerdesLib.h
+++ /dev/null
@@ -1,22 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2016, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _SERDES_LIB_H_
-#define _SERDES_LIB_H_
-
-EFI_STATUS
-EfiSerdesInitWrap (VOID);
-
-#endif
diff --git a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h b/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h
deleted file mode 100644
index b493dd9ac090..000000000000
--- a/Silicon/Hisilicon/Hi1616/Include/Library/SerdesLib.h
+++ /dev/null
@@ -1,22 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2016, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _SERDES_LIB_H_
-#define _SERDES_LIB_H_
-
-EFI_STATUS
-EfiSerdesInitWrap (VOID);
-
-#endif
diff --git a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h b/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h
deleted file mode 100644
index b956ee6d072a..000000000000
--- a/Silicon/Hisilicon/Include/Library/IpmiCmdLib.h
+++ /dev/null
@@ -1,110 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2017, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2017, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _IPMI_CMD_LIB_H_
-#define _IPMI_CMD_LIB_H_
-
-#define BOOT_OPTION_BOOT_FLAG_VALID         1
-#define BOOT_OPTION_BOOT_FLAG_INVALID       0
-
-typedef enum {
-  EfiReserved,
-  EfiBiosFrb2,
-  EfiBiosPost,
-  EfiOsLoad,
-  EfiSmsOs,
-  EfiOem,
-  EfiFrbReserved1,
-  EfiFrbReserved2
-} EFI_WDT_USER_TYPE;
-
-typedef enum {
-  NoOverride = 0x0,
-  ForcePxe,
-  ForceDefaultHardDisk,
-  ForceDefaultHardDiskSafeMode,
-  ForceDefaultDiagnosticPartition,
-  ForceDefaultCD,
-  ForceSetupUtility,
-  ForceRemoteRemovableMedia,
-  ForceRemoteCD,
-  ForcePrimaryRemoteMedia,
-  ForceRemoteHardDisk = 0xB,
-  ForcePrimaryRemovableMedia = 0xF
-} BOOT_DEVICE_SELECTOR;
-
-//
-// Get System Boot Option data structure
-//
-typedef struct {
-  UINT8 ParameterVersion           :4;
-  UINT8 Reserved1                  :4;
-  UINT8 ParameterSelector          :7;
-  UINT8 ParameterValid             :1;
-  //
-  // Boot Flags Data 1
-  //
-  UINT8 Reserved2                  :5;
-  UINT8 BiosBootType               :1;
-  UINT8 Persistent                 :1;
-  UINT8 BootFlagsValid             :1;
-  //
-  // Boot Flags Data 2
-  //
-  UINT8 LockResetBtn               :1;
-  UINT8 ScreenBlank                :1;
-  UINT8 BootDeviceSelector         :4;
-  UINT8 LockKeyboard               :1;
-  UINT8 ClearCmos                  :1;
-  //
-  // Boot Flags Data 3
-  //
-  UINT8 ConsoleRedirectionControl  :2;
-  UINT8 LockSleepBtn               :1;
-  UINT8 UserPasswordByPass         :1;
-  UINT8 Reserved3                  :1;
-  UINT8 FirmwareVerbosity          :2;
-  UINT8 LockPowerBtn               :1;
-  //
-  // Boot Flags Data 4
-  //
-  UINT8 MuxControlOverride         :3;
-  UINT8 ShareModeOverride          :1;
-  UINT8 Reserved4                  :4;
-  //
-  // Boot Flags Data 5
-  //
-  UINT8 DeviceInstanceSelector     :5;
-  UINT8 Reserved5                  :3;
-} IPMI_GET_BOOT_OPTION;
-
-EFI_STATUS
-EFIAPI
-IpmiCmdSetSysBootOptions (
-  OUT IPMI_GET_BOOT_OPTION  *BootOption
-  );
-
-EFI_STATUS
-EFIAPI
-IpmiCmdGetSysBootOptions (
-  IN IPMI_GET_BOOT_OPTION   *BootOption
-  );
-
-EFI_STATUS
-IpmiCmdStopWatchdogTimer (
-  IN EFI_WDT_USER_TYPE  UserType
-  );
-
-#endif
diff --git a/Silicon/Hisilicon/Include/Library/LpcLib.h b/Silicon/Hisilicon/Include/Library/LpcLib.h
deleted file mode 100755
index 236a52ba45a7..000000000000
--- a/Silicon/Hisilicon/Include/Library/LpcLib.h
+++ /dev/null
@@ -1,113 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2016, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2016, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _LPC_LIB_H_
-#define _LPC_LIB_H_
-
-#include <Uefi.h>
-
-#define PCIE_SUBSYS_IO_MUX      0xA0170000
-#define PCIE_SUBSYS_IOMG033     (PCIE_SUBSYS_IO_MUX + 0x84)
-#define PCIE_SUBSYS_IOMG035     (PCIE_SUBSYS_IO_MUX + 0x8C)
-#define PCIE_SUBSYS_IOMG036     (PCIE_SUBSYS_IO_MUX + 0x90)
-#define PCIE_SUBSYS_IOMG045     (PCIE_SUBSYS_IO_MUX + 0xB4)
-#define PCIE_SUBSYS_IOMG046     (PCIE_SUBSYS_IO_MUX + 0xB8)
-#define PCIE_SUBSYS_IOMG047     (PCIE_SUBSYS_IO_MUX + 0xBC)
-#define PCIE_SUBSYS_IOMG048     (PCIE_SUBSYS_IO_MUX + 0xC0)
-#define PCIE_SUBSYS_IOMG049     (PCIE_SUBSYS_IO_MUX + 0xC4)
-#define PCIE_SUBSYS_IOMG050     (PCIE_SUBSYS_IO_MUX + 0xC8)
-
-#define IO_WRAP_CTRL_BASE       0xA0100000
-#define SC_LPC_CLK_EN_REG       (IO_WRAP_CTRL_BASE + 0x03a0)
-#define SC_LPC_CLK_DIS_REG      (IO_WRAP_CTRL_BASE + 0x03a4)
-#define SC_LPC_BUS_CLK_EN_REG   (IO_WRAP_CTRL_BASE + 0x03a8)
-#define SC_LPC_BUS_CLK_DIS_REG  (IO_WRAP_CTRL_BASE + 0x03ac)
-#define SC_LPC_RESET_REQ        (IO_WRAP_CTRL_BASE + 0x0ad8)
-#define SC_LPC_RESET_DREQ       (IO_WRAP_CTRL_BASE + 0x0adc)
-#define SC_LPC_BUS_RESET_REQ    (IO_WRAP_CTRL_BASE + 0x0ae0)
-#define SC_LPC_BUS_RESET_DREQ   (IO_WRAP_CTRL_BASE + 0x0ae4)
-#define SC_LPC_CTRL_REG         (IO_WRAP_CTRL_BASE + 0x2028)
-
-
-#define LPC_BASE                0xA01B0000
-#define LPC_START_REG           (LPC_BASE + 0x00)
-#define LPC_OP_STATUS_REG       (LPC_BASE + 0x04)
-#define LPC_IRQ_ST_REG          (LPC_BASE + 0x08)
-#define LPC_OP_LEN_REG          (LPC_BASE + 0x10)
-#define LPC_CMD_REG             (LPC_BASE + 0x14)
-#define LPC_FWH_ID_MSIZE_REG    (LPC_BASE + 0x18)
-#define LPC_ADDR_REG            (LPC_BASE + 0x20)
-#define LPC_WDATA_REG           (LPC_BASE + 0x24)
-#define LPC_RDATA_REG           (LPC_BASE + 0x28)
-#define LPC_LONG_CNT_REG        (LPC_BASE + 0x30)
-#define LPC_TX_FIFO_ST_REG      (LPC_BASE + 0x50)
-#define LPC_RX_FIFO_ST_REG      (LPC_BASE + 0x54)
-#define LPC_TIME_OUT_REG        (LPC_BASE + 0x58)
-#define LPC_SIRQ_CTRL0_REG      (LPC_BASE + 0x80)
-#define LPC_SIRQ_CTRL1_REG      (LPC_BASE + 0x84)
-#define LPC_SIRQ_INT_REG        (LPC_BASE + 0x90)
-#define LPC_SIRQ_INT_MASK_REG   (LPC_BASE + 0x94)
-#define LPC_SIRQ_STAT_REG       (LPC_BASE + 0xA0)
-
-#define LPC_FIFO_LEN            (16)
-
-typedef enum{
-    LPC_ADDR_MODE_INCREASE,
-    LPC_ADDR_MODE_SINGLE
-}LPC_ADDR_MODE;
-
-typedef enum{
-    LPC_TYPE_IO,
-    LPC_TYPE_MEM,
-    LPC_TYPE_FWH
-}LPC_TYPE;
-
-
-typedef union {
-    struct{
-        UINT32  lpc_wr:1;
-        UINT32  lpc_type:2;
-        UINT32  same_addr:1;
-        UINT32  resv:28;
-    }bits;
-    UINT32  u32;
-}LPC_CMD_STRUCT;
-
-typedef union {
-    struct{
-        UINT32  op_len:5;
-        UINT32  resv:27;
-    }bits;
-    UINT32  u32;
-}LPC_OP_LEN_STRUCT;
-
-
-VOID LpcInit(VOID);
-BOOLEAN LpcIdle(VOID);
-EFI_STATUS LpcByteWrite(
-    IN  UINT32              Addr,
-    IN  UINT8               Data);
-EFI_STATUS LpcByteRead(
-    IN  UINT32              Addr,
-    IN OUT  UINT8          *Data);
-
-EFI_STATUS LpcWrite(
-    IN  UINT32              Addr,
-    IN  UINT8              *Data,
-    IN  UINT8               Len);
-
-#endif
-
-
diff --git a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h b/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h
deleted file mode 100644
index b5de34f5facb..000000000000
--- a/Silicon/Hisilicon/Include/Library/OemAddressMapLib.h
+++ /dev/null
@@ -1,45 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2015, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _OEM_ADDRESS_MAP_LIB_H_
-#define _OEM_ADDRESS_MAP_LIB_H_
-
-#include <PlatformArch.h>
-
-typedef struct _DDRC_BASE_ID{
-    UINTN  Base;
-    UINTN  Id;
-}DDRC_BASE_ID;
-
-// Invalid address, will cause exception when accessed by bug code
-#define ADDRESS_MAP_INVALID ((UINTN)(-1))
-
-UINTN OemGetPoeSubBase (UINT32 NodeId);
-UINTN OemGetPeriSubBase (UINT32 NodeId);
-UINTN OemGetAlgSubBase (UINT32 NodeId);
-UINTN OemGetCfgbusBase (UINT32 NodeId);
-UINTN OemGetGicSubBase (UINT32 NodeId);
-UINTN OemGetHACSubBase (UINT32 NodeId);
-UINTN OemGetIOMGMTSubBase (UINT32 NodeId);
-UINTN OemGetNetworkSubBase (UINT32 NodeId);
-UINTN OemGetM3SubBase (UINT32 NodeId);
-UINTN OemGetPCIeSubBase (UINT32 NodeId);
-
-VOID OemAddressMapInit(VOID);
-
-extern DDRC_BASE_ID DdrcBaseId[MAX_SOCKET][MAX_CHANNEL];
-
-#endif
-
diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h
deleted file mode 100644
index 712b77c44fc8..000000000000
--- a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h
+++ /dev/null
@@ -1,112 +0,0 @@ 
-/** @file
-*
-*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2015, Linaro Limited. All rights reserved.
-*
-*  This program and the accompanying materials
-*  are licensed and made available under the terms and conditions of the BSD License
-*  which accompanies this distribution.  The full text of the license may be found at
-*  http://opensource.org/licenses/bsd-license.php
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-*
-**/
-
-#ifndef _PLATFORM_SYS_CTRL_LIB_H_
-#define _PLATFORM_SYS_CTRL_LIB_H_
-
-#define PACKAGE_16CORE      0
-#define PACKAGE_32CORE      1
-#define PACKAGE_RESERVED    2
-#define PACKAGE_TYPE_NUM    3
-
-UINT32 PlatformGetPackageType (VOID);
-
-VOID DisplayCpuInfo (VOID);
-UINT32 CheckChipIsEc(VOID);
-
-UINTN PlatformGetPll (UINT32 NodeId, UINTN Pll);
-
-#define DJTAG_READ_INVALID_VALUE 0xFFFFFFFF
-#define DJTAG_CHAIN_ID_AA        1
-#define DJTAG_CHAIN_ID_LLC       4
-
-
-#define SC_DJTAG_MSTR_EN_OFFSET             0x6800
-#define SC_DJTAG_MSTR_START_EN_OFFSET       0x6804
-#define SC_DJTAG_SEC_ACC_EN_OFFSET          0x6808
-#define SC_DJTAG_DEBUG_MODULE_SEL_OFFSET    0x680C
-#define SC_DJTAG_MSTR_WR_OFFSET             0x6810
-#define SC_DJTAG_CHAIN_UNIT_CFG_EN_OFFSET   0x6814
-#define SC_DJTAG_MSTR_ADDR_OFFSET           0x6818
-#define SC_DJTAG_MSTR_DATA_OFFSET           0x681C
-#define SC_DJTAG_TMOUT_OFFSET               0x6820
-#define SC_TDRE_OP_ADDR_OFFSET              0x6824
-#define SC_TDRE_WDATA_OFFSET                0x6828
-#define SC_TDRE_REPAIR_EN_OFFSET            0x682C
-#define SC_DJTAG_RD_DATA0_OFFSET            0xE800
-#define SC_TDRE_RDATA0_OFFSET               0xE830
-
-
-UINTN PlatformGetI2cBase(UINT32 Socket,UINT8 Port);
-
-VOID PlatformAddressMapCleanUp (VOID);
-VOID PlatformDisableDdrWindow (VOID);
-
-VOID PlatformEnableArchTimer (VOID);
-
-EFI_STATUS
-DawFindFreeWindow (UINTN Socket, UINTN *DawIndex);
-
-VOID DawSetWindow (UINTN Socket, UINTN WindowIndex, UINT32 Value);
-
-VOID DJTAG_TDRE_WRITE(UINT32 Offset, UINT32 Value, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);
-
-UINT32 DJTAG_TDRE_READ(UINT32 Offset, UINT32 ChainID, UINT32 NodeId, BOOLEAN Repair);
-
-VOID RemoveRoceReset(VOID);
-
-UINTN PlatformGetDdrChannel (VOID);
-
-VOID ITSCONFIG (VOID);
-
-VOID MN_CONFIG (VOID);
-
-VOID SmmuConfigForOS (VOID);
-VOID SmmuConfigForBios (VOID);
-
-VOID StartUpBSP (VOID);
-
-VOID LlcCleanInvalidate (VOID);
-
-UINTN PlatformGetCpuFreq (UINT8 Socket);
-VOID ClearInterruptStatus(VOID);
-
-UINTN PlatformGetCoreCount (VOID);
-VOID DAWConfigEn(UINT32 socket);
-
-VOID DResetUsb ();
-UINT32 PlatformGetEhciBase ();
-UINT32 PlatformGetOhciBase ();
-VOID PlatformPllInit();
-// PLL initialization for super IO clusters.
-VOID SiclPllInit(UINT32 SclId);
-VOID PlatformDeviceDReset();
-VOID PlatformGicdInit();
-VOID PlatformLpcInit();
-// Synchronize architecture timer counter between different super computing
-// clusters.
-VOID PlatformArchTimerSynchronize(VOID);
-VOID PlatformEventBroadcastConfig(VOID);
-UINTN GetDjtagRegBase(UINT32 NodeId);
-VOID LlcCleanInvalidateAsm(VOID);
-VOID PlatformMdioInit(VOID);
-VOID DisableClusterClock(UINTN CpuClusterBase);
-VOID EnableClusterClock(UINTN CpuClusterBase);
-VOID DisableSocketClock (UINT8 Skt);
-
-EFI_STATUS EFIAPI HandleI2CException (UINT32 Socket, UINT32 Port);
-EFI_STATUS EFIAPI HandleI2CExceptionBySocket (UINT32 Socket);
-
-#endif