1 /** @file 2 * 3 * Copyright (c) 2015, Hisilicon Limited. All rights reserved. 4 * Copyright (c) 2015, Linaro Limited. 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 17 #ifndef _OEM_MISC_LIB_H_ 18 #define _OEM_MISC_LIB_H_ 19 20 #include <Uefi.h> 21 22 #include <PlatformArch.h> 23 #include <Library/I2CLib.h> 24 25 #define PCIEDEVICE_REPORT_MAX 4 26 typedef struct _REPORT_PCIEDIDVID2BMC{ 27 UINTN Bus; 28 UINTN Device; 29 UINTN Function; 30 UINTN Slot; 31 }REPORT_PCIEDIDVID2BMC; 32 extern REPORT_PCIEDIDVID2BMC PcieDeviceToReport[PCIEDEVICE_REPORT_MAX]; 33 34 BOOLEAN OemIsSocketPresent (UINTN Socket); 35 VOID CoreSelectBoot(VOID); 36 VOID OemPcieResetAndOffReset(void); 37 extern I2C_DEVICE gDS3231RtcDevice; 38 39 UINTN OemGetSocketNumber(VOID); 40 UINTN OemGetDdrChannel (VOID); 41 UINTN OemGetDimmSlot(UINTN Socket, UINTN Channel); 42 43 BOOLEAN OemIsMpBoot(); 44 UINT32 OemIsWarmBoot(); 45 46 VOID OemBiosSwitch(UINT32 Master); 47 BOOLEAN OemIsNeedDisableExpanderBuffer(VOID); 48 49 extern EFI_STRING_ID gDimmToDevLocator[MAX_SOCKET][MAX_CHANNEL][MAX_DIMM]; 50 EFI_HII_HANDLE EFIAPI OemGetPackages (); 51 #endif 52