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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/hwpf/hwp/dram_training/mss_draminit_trainadv/mss_mcbist_address.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2013,2015 */
/* [+] 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 */
// $Id: mss_mcbist_address.H,v 1.8 2015/02/16 19:54:23 sglancy Exp $
// *!***************************************************************************
// *! (C) Copyright International Business Machines Corp. 1997, 1998, 2013
// *! All Rights Reserved -- Property of IBM
// *! *** ***
// *!***************************************************************************
// *! FILENAME : mss_mcbist_address.H
// *! TITLE :
// *! DESCRIPTION : MCBIST procedures
// *! CONTEXT :
// *!
// *! OWNER NAME :
// *! BACKUP :
// *!***************************************************************************
// CHANGE HISTORY:
//-------------------------------------------------------------------------------
// Version:|Author: | Date: | Comment:
// 1.3 |bellows |03-Apr-13| Added Id for firmware
// 1.4 |preeragh|17-Dec-14| Removed unwanted header includes
// 1.5 |mjjones |20-Jan-14| RAS Review Updates
// 1.7 |preeragh|15-Dec-14| Fix FW review comments
// 1.8 |preeragh|16-FEB-14| Added in lab needs
// --------|--------|---------|--------------------------------------------------
//------------------------------------------------------------------------------
#ifndef MSS_MCBIST_ADDRESS_H
#define MSS_MCBIST_ADDRESS_H
/*****************************************************************************/
/* mss_mcbist_address.H */
/*****************************************************************************/
#include <fapi.H>
#include <cen_scom_addresses.H>
#include <mss_access_delay_reg.H>
#include <mss_mcbist.H>
#include <string.h>
extern "C"
{
using namespace fapi;
enum interleave_type
{
BANK_RANK,
RANK_BANK,
BANK_ONLY,
RANK_ONLY,
RANKS_DIMM0,
RANKS_DIMM1,
USER_PATTERN
};
fapi::ReturnCode address_generation(const fapi:: Target & i_target_mba,
uint8_t i_port,
mcbist_addr_mode i_addr_type,
interleave_type i_add_inter_type,
uint8_t i_rank,
uint64_t &io_start_address,
uint64_t &io_end_address,
char * l_str_cust_addr);
fapi::ReturnCode parse_addr(const fapi:: Target & i_target_mba,
char addr_string[],
uint8_t mr3_valid,
uint8_t mr2_valid,
uint8_t mr1_valid,
uint8_t l_dram_rows,
uint8_t l_dram_cols,
uint8_t l_addr_inter);
}
#endif
|