summaryrefslogtreecommitdiffstats
path: root/src/include/usr/intr/intr_reasoncodes.H
blob: 511008cd926eb8c51eeb660bf039357d185784b5 (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
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/include/usr/intr/intr_reasoncodes.H $                     */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2011,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                                                     */
#ifndef INTR_REASONCODES_H
#define INTR_REASONCODES_H

#include <hbotcompid.H>

#define INTR_TRACE_NAME INTR_COMP_NAME


namespace INTR
{
    enum IntrModuleID
    {
        MOD_INVALID                  = 0x00, /**< Invalid Module ID */
        MOD_INTR_ENABLE              = 0x01, /**< intrrp.C : INTR::enableExternalInterrupts */
        MOD_INTR_DISABLE             = 0x02, /**< intrrp.C : INTR::disableExternalInterrupts */
        MOD_INTR_REGISTER            = 0x03, /**< intrrp.C : INTR::registerMsgQ */
        MOD_INTRRP_REGISTERINTERRUPT = 0x05, /**< intrrp.C : IntrRp::registerInterrupt */
        MOD_INTR_ENABLE_PSI_INTR     = 0x06, /**< intrrp.C : INTR::enablePsiIntr */
        MOD_INTR_INIT_XIVR           = 0x07, /**< intrrp.C : INTR::initXIVR */
        MOD_INTR_INIT_MPIPLAREA      = 0x08, /**< intrrp.C : IntrRp::initailizeMpiplSyncArea() */
        MOD_INTR_SYNC_NODES          = 0x09, /**< intrrp.C : IntrRp::syncNodes() */
        MOD_INTR_SYNC_ADDNODE        = 0x0A, /**< intrrp.C : IntrRp::addHbNodeToMpiplSyncArea */
        MOD_INTR_ADDHBNODE           = 0x0B, /**< intrrp.C : INTR::addHbNode */
        MOD_INTR_EXTRACTNODEINFO     = 0x0C, /**< intrrp.C : INTR::extractHbNodeInfo */
        MOD_INTRRP_SENDEOI           = 0x0D, /**< intrrp.C : INTR::sendEOI */
        MOD_INTRRP_MASKINTERRUPT     = 0x0E, /**< intrrp.C : INTR::maskInterruptSource */
        MOD_INTRRP_UNMASKINTERRUPT   = 0x0F, /**< intrrp.C : INTR::unmaskInterruptSource */
        MOD_INTRRP_HNDLPSUINTERRUPT  = 0x10, /**< intrrp.C : INTR::handlePsuInterrupt */
        MOD_INTRRP_RESETINTUNIT      = 0x11, /**< intrrp.C : IntrRp::resetIntUnit */
        MOD_INTRRP_XIVE_SENDEOI      = 0x12,
        MOD_INTRRP_IPC               = 0x13,
        MOD_INTR_DUMP                = 0x14, /**< intrrp.C : INTR::printInterruptInfo */
    };

    enum IntrReasonCode
    {
        RC_ALREADY_REGISTERED         = INTR_COMP_ID | 0x01,
        RC_REGISTRY_NOT_READY         = INTR_COMP_ID | 0x02,
        RC_RP_NOT_INITIALIZED         = INTR_COMP_ID | 0x03,
        RC_BAD_VIRTUAL_IO_ADDRESS     = INTR_COMP_ID | 0x04,
        RC_BAD_ISN                    = INTR_COMP_ID | 0x05,
        //termination_rc
        RC_PERSISTENT_INTERRUPTS      = INTR_COMP_ID | 0x06,
        RC_CANNOT_MAP_MEMORY          = INTR_COMP_ID | 0x07,
        RC_PSIHB_ESB_EOI_FAIL         = INTR_COMP_ID | 0x08,
        RC_XIVE_ESB_WRONG_STATE       = INTR_COMP_ID | 0x09,
        RC_PSU_DOORBELL_TIMEOUT       = INTR_COMP_ID | 0x0A,
        RC_XIVE_PBUS_QUIESCE_TIMEOUT  = INTR_COMP_ID | 0x0B,
        RC_MESSAGE_SEND_ERROR         = INTR_COMP_ID | 0x0C,
        RC_IPC_DATA_INVALID           = INTR_COMP_ID | 0x0D,
    };
};

#endif
OpenPOWER on IntegriCloud