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 #ifndef _OEM_ADDRESS_MAP_LIB_H_ 17 #define _OEM_ADDRESS_MAP_LIB_H_ 18 19 typedef struct _DDRC_BASE_ID{ 20 UINTN Base; 21 UINTN Id; 22 }DDRC_BASE_ID; 23 24 // Invalid address, will cause exception when accessed by bug code 25 #define ADDRESS_MAP_INVALID ((UINTN)(-1)) 26 27 UINTN OemGetPoeSubBase (UINT32 NodeId); 28 UINTN OemGetPeriSubBase (UINT32 NodeId); 29 UINTN OemGetAlgSubBase (UINT32 NodeId); 30 UINTN OemGetM3SubBase (UINT32 NodeId); 31 32 VOID OemAddressMapInit(VOID); 33 34 extern DDRC_BASE_ID DdrcBaseId[MAX_SOCKET][MAX_CHANNEL]; 35 36 #endif 37 38