summaryrefslogtreecommitdiffstats
path: root/src/include/usr/runtime/customize_attrs_for_payload.H
blob: 6d6928bda512ffa98bedb9a8e76bd60b7a7b0731 (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
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/include/usr/runtime/customize_attrs_for_payload.H $       */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2016,2020                        */
/* [+] 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                                                     */

#ifndef __RUNTIME_CUST_ATTRS_FOR_PAYLOAD_H
#define __RUNTIME_CUST_ATTRS_FOR_PAYLOAD_H

/**
 *  @file customize_attrs_for_payload.H
 *  @brief Provides the definition for the payload specific attribute
 *      customization functions
 */

#include <errl/errlentry.H>
#include <targeting/runtime/rt_targeting.H>
#include <targeting/common/attributes.H>

namespace RUNTIME
{

static const TARGETING::ATTR_HBRT_HYP_ID_type HBRT_HYP_ID_UNKNOWN
    = 0xFFFFFFFFFFFFFFFFULL;

static const TARGETING::rtChipId_t RT_TYPE_UNKNOWN
    = 0xFFFFFFFFFFFFFFFFULL;

/**
 *  @brief Populate ATTR_HBRT_HYP_ID attributes for the current payload type,
 *      allowing runtime/host interfaces to reference equivalent targets
 *  @param[in] i_configForPhyp Whether to configure the IDs for PHyp (true), or
 *      all other payload kinds (false)
 *  @return Error log handle
 *  @retval NULL Populated all ATTR_HBRT_HYP_ID attributes successfully
 *  @retval !NULL Failed to populate one or more ATTR_HBRT_HYP_ID attributes
 */
errlHndl_t configureHbrtHypIds(bool i_configForPhyp);


}; // End namespace RUNTIME

#endif
OpenPOWER on IntegriCloud