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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/plugins/prdfParserEnums.H $ */
/* */
/* IBM CONFIDENTIAL */
/* */
/* COPYRIGHT International Business Machines Corp. 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 */
/** @file prdfParserEnums.H
* @brief Common enums used for building and parsing capture data.
*/
#ifndef __prdfParserEnums_H
#define __prdfParserEnums_H
#include <prdfCenConst.H>
namespace PRDF
{
namespace PARSER
{
enum
{
// i_parser.PrintString() has two parts: header and data. These are the
// maximum string lengths for one line in the error log. Note that the
// header has a hard stop of one line, however, the data can wrap onto
// multiple lines (not sure of the line limit).
HEADER_SIZE = 25,
DATA_SIZE = 50,
};
} // namespace PARSER
namespace UE_TABLE
{
enum
{
MAX_ENTRIES = 16, ///< Maximum number of entries allow in table.
ENTRY_SIZE = 7, ///< Number of bytes per entry.
MAX_SIZE = MAX_ENTRIES * ENTRY_SIZE, ///< Maximum table size.
};
/**
* @brief Represents the several different types of UEs stored in the table.
*/
enum Type
{
SCRUB_MPE = 1, ///< Chip mark placed by scrub
FETCH_MPE, ///< Chip mark placed by fetch
SCRUB_UE, ///< Scrub UE
FETCH_UE, ///< Fetch UE
};
} // namespace UE_TABLE
namespace CE_TABLE
{
enum
{
MAX_ENTRIES = 32, ///< Maximum number of entries allow in table.
ENTRY_SIZE = 9, ///< Number of bytes per entry.
MAX_SIZE = MAX_ENTRIES * ENTRY_SIZE, ///< Maximum table size.
};
} // namespace CE_TABLE
namespace RCE_TABLE
{
enum
{
ENTRY_SIZE = 2, ///< Number of bytes per entry.
};
} // namespace RCE_TABLE
namespace DQ_BITMAP
{
enum
{
BITMAP_SIZE = 10, // 80-bit bitmap
ENTRY_SIZE = sizeof(uint8_t) + PORT_SLCT_PER_MBA * BITMAP_SIZE,
};
} // namespace DQ_BITMAP
} // end namespace PRDF
#endif // __prdfParserEnums_H
|