summaryrefslogtreecommitdiffstats
path: root/src/sbefw/core/pk_app_cfg.h
blob: 9557fed54a92ca35ecd0c2e104a02fb9ac1cc3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/sbefw/core/pk_app_cfg.h $                                 */
/*                                                                        */
/* OpenPOWER sbe Project                                                  */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2015,2018                        */
/* [+] International Business Machines Corp.                              */
/*                                                                        */
/*                                                                        */
/* Licensed under the Apache License, Version 2.0 (the "License");        */
/* you may not use this file except in compliance with the License.       */
/* You may obtain a copy of the License at                                */
/*                                                                        */
/*     http://www.apache.org/licenses/LICENSE-2.0                         */
/*                                                                        */
/* Unless required by applicable law or agreed to in writing, software    */
/* distributed under the License is distributed on an "AS IS" BASIS,      */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or        */
/* implied. See the License for the specific language governing           */
/* permissions and limitations under the License.                         */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/*
 * @file: ppe/sbe/sbefw/pk_app_cfg.h
 *
 * @brief Application specific overrides go here.
 *
 */

#ifndef __PK_APP_CFG_H__
#define __PK_APP_CFG_H__

#include "sbeirq.H"

/*
 * @brief  Static configuration data for external interrupts:
 *     IRQ#, TYPE, POLARITY, ENABLE
 *
 */
#define APPCFG_EXT_IRQS_CONFIG \
    SBE_IRQ_START0              STD_IRQ_TYPE_EDGE    STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_START1              STD_IRQ_TYPE_EDGE    STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_INTR0               STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_INTR1               STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_DRTM_REQ            STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_SBEFIFO_RESET       STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_SBEFIFO_DATA        STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \
    SBE_IRQ_HOST_PSU_INTR       STD_IRQ_TYPE_LEVEL   STD_IRQ_POLARITY_RISING    STD_IRQ_MASKED \


/*
 * @brief This 64 bit mask specifies which of the interrupts are not to be used.
 *
 */
#define APPCFG_IRQ_INVALID_MASK \
(\
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_8) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_9) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_10) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_11) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_12) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_13) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_14) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_15) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_16) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_17) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_18) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_19) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_20) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_21) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_22) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_23) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_24) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_25) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_26) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_27) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_28) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_29) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_30) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_31) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_32) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_33) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_34) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_35) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_36) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_37) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_38) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_39) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_40) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_41) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_42) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_43) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_44) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_45) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_46) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_47) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_48) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_49) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_50) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_51) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_52) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_53) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_54) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_55) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_56) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_57) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_58) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_59) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_60) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_61) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_62) |  \
   STD_IRQ_MASK64(SBE_IRQ_RESERVED_63))


/*
 * @brief  Override the default behavior of the PK API error handling.
 *          Force PK to send the return code back to the application,
 *          instead of a kernel panic.
 *
 */
#ifndef PK_ERROR_PANIC
#define PK_ERROR_PANIC 0
#endif

/*
 * @brief  Override the default behavior of idle timer trace.
 *         As SBE trace buffer is small, we do not want idle timer traces.
 *
 */
#define PK_TRACE_TIMER_OUTPUT 0

#ifdef PPE42_MACHINE_CHECK_HANDLER
#undef PPE42_MACHINE_CHECK_HANDLER
#endif
#define PPE42_MACHINE_CHECK_HANDLER SBE_MACHINE_CHECK_HANDLER

// Added default register-save handler to the interrupt
#ifdef PPE_CAPTURE_INTERRUPT_FFDC 
#undef PPE_CAPTURE_INTERRUPT_FFDC 
#endif
#define PPE_CAPTURE_INTERRUPT_FFDC SBE_INTERRUPT_REGISTER_SAVEOFF

// Set the trace buffer size
#ifdef PK_TRACE_SZ
#undef PK_TRACE_SZ
#endif
#define PK_TRACE_SZ 256
#endif /*__PK_APP_CFG_H__*/
OpenPOWER on IntegriCloud