summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework/config/iipchip.C
blob: 3c41666a275ff0fe1dfd43e55a7d451d10926de2 (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
151
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/diag/prdf/common/framework/config/iipchip.C $         */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1993,2013              */
/*                                                                        */
/* p1                                                                     */
/*                                                                        */
/* Object Code Only (OCO) source materials                                */
/* Licensed Internal Code Source Materials                                */
/* IBM HostBoot Licensed Internal Code                                    */
/*                                                                        */
/* The source code for this program is not published or otherwise         */
/* divested of its trade secrets, irrespective of what has been           */
/* deposited with the U.S. Copyright Office.                              */
/*                                                                        */
/* Origin: 30                                                             */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */

#define IIPCHIP_CPP

/* Module Description *************************************************/
/*                                                                    */
/*  Name:  iipchip.cpp                                                */
/*                                                                    */
/*  Description:  This module contains the implementation for the
 Processor Runtime Diagnostics Chip class.           */
/*                                                                    */
/* End Module Description *********************************************/

/* Change Log *********************************************************/
/*                                                                    */
/*  Flag Reason   Vers Date     Coder Description                     */
/*  ---- -------- ---- -------- ----- ------------------------------- */
/*                V2ST 07/30/93 JST   Initial Creation                */
/*                V2ST 08/20/93 JST   Added Tables and Analyze()
 Converted to ABC                */
/*                V300 11/02/93 JST   Using Error Register,
 ATTENTION_TYPE                  */
/*                V300 11/02/93 JST   Created CHIP_IDENTITY           */
/*                V300 01/04/94 JST   Analyze() returns Step Code Data
 via parameter reference         */
/*                V300 01/11/94 JST   Removed CHIP_IDENTITY           */
/*                V300 01/20/94 JST   Removed Analyze()               */
/*                V300 05/04/94 JST   Added Initialize()              */
/*       D24585.5 V300 06/07/94 JST   Adding CapruteErrorData()       */
/*                V400 07/28/94 JST   Removing CapruteErrorData()     */
/*                                                                    */
/* End Change Log *****************************************************/

/*--------------------------------------------------------------------*/
/* Emit the virtual function tables and inline function defintions in
 this translation unit.                                             */
/*--------------------------------------------------------------------*/

#include <iipchip.h>
#include <prdfPlatServices.H>

namespace PRDF
{

/*--------------------------------------------------------------------*/
/*  Forward References                                                */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  User Types                                                        */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  Constants                                                         */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  Macros                                                            */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  Internal Function Prototypes                                      */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  Global Variables                                                  */
/*--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*/
/*  Static Variables                                                  */
/*--------------------------------------------------------------------*/

// Function Specification //////////////////////////////////////////
//
// Title:  ~CHIP_CLASS (Virtual destructor)
//
//  Purpose:  This destructor does nothing.  This declaration is
//            provided to enable derived class destuctores to be
//            called properly.
//
// Side-effects:  None.
//
// Dependencies:  None.
//
// End Function Specification //////////////////////////////////////

CHIP_CLASS::~CHIP_CLASS
(
 void
 /*!i No parameters                                               */
 )
/*!o No value returned                                           */
{
}

// Function Specification //////////////////////////////////////////
//
// Title:  Initialize (Virtual)
//
// Purpose:  This function handles the PRD initialization of the
//           corresponding hardware chip and any associated data.
//
//           This default implementation does nothing and returns
//           SUCCESS(0).
//
// Side-effects:  Scan comm registers may be written.
//                Internal data may be modified.
//
// Dependencies:  None.
//
// End Function Specification //////////////////////////////////////

int32_t CHIP_CLASS::Initialize
(
 void
 /*!i No parameters                                               */
 )
/*!o Error Return code                                           */
{
  return(SUCCESS);
}

HUID CHIP_CLASS::GetId() const
{
    return(PlatServices::getHuid(iv_pchipHandle));
}

} // end namespace PRDF

#undef IIPCHIP_CPP
OpenPOWER on IntegriCloud