• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* $NoKeywords */
2 /**
3  * @file
4  *
5  * IscpConfig.h
6  *
7  * Contains Intra-SoC Communication Protocol configuration definitions.
8  *
9  * @xrefitem bom "File Content Label" "Release Content"
10  * @e project: FDK
11  * @e sub-project: UEFI
12  * @e version: $Revision: 334098 $ @e date: $Date: 2016-01-08 14:21:15 -0600 (Fri, 08 Jan 2016) $
13  *
14  */
15 /*****************************************************************************
16 *
17 *  Copyright 2013 - 2016 ADVANCED MICRO DEVICES, INC.  All Rights Reserved.
18 *
19 *  This program and the accompanying materials are licensed and made available
20 *  under the terms and conditions of the BSD License which accompanies this
21 *  distribution. The full text of the license may be found at
22 *  http://opensource.org/licenses/bsd-license.php
23 *
24 *  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
25 *  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
26 *  IMPLIED.
27 *
28 ***************************************************************************/
29 #ifndef ISCP_CONFIG_H_
30 #define ISCP_CONFIG_H_
31 
32 #ifdef __cplusplus
33   extern "C" {
34   #endif
35 
36 
37 /*----------------------------------------------------------------------------------------
38  *                             M O D U L E S    U S E D
39  *----------------------------------------------------------------------------------------
40  */
41   #include <ProcessorBind.h>  // Included just so this file can be built into both the RTOS
42                               // and UEFI without needing separate copies for both build
43                               // environments.
44 
45 /*----------------------------------------------------------------------------------------
46  *                   D E F I N I T I O N S    A N D    M A C R O S
47  *----------------------------------------------------------------------------------------
48  */
49 
50 // Door Bell Flag Register
51 #define ISCP_DRAM_BUFFER_ADDR_REG_LO    (0xE0000008UL)
52 #define ISCP_DRAM_BUFFER_ADDR_REG_HI    (0xE000000CUL)
53 #define ISCP_BUFFER_SIZE                (0x1000)
54 #define DOORBELL_OFFSET_NS              (0x100)
55 #define DOORBELL_BIT_NS                 (UINT32)              (1 << 7)    // Door Bell bit = [GPIO_1 (Line 14)]
56 #define DOORBELL_BIT_SEC                (UINT32)              (1 << 7)    // Door Bell bit = [GPIO_1 (Line 15)]
57 
58   #ifdef __cplusplus
59   }
60 #endif
61 
62 
63 #endif /* ISCP_CONFIG_H_ */
64