blob: efb12d4f8646d013eeddec09eaa1ae9340090298 (
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/hwpf/hwp/dimmConsts.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2012,2014 */
/* [+] 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 */
/**
* @file dimmConsts.H
*
* @brief DIMM Constants
*/
// $Id: dimmConsts.H,v 1.2 2014/06/27 18:58:39 thi Exp $
/*
* Change Log ******************************************************************
* Flag Defect/Feature User Date Description
* ------ -------------- ---------- ----------- ----------------------------
* mjjones 02/17/2012 Created.
*/
#ifndef DIMMCONSTS_H_
#define DIMMCONSTS_H_
// Maximum number of ports on an MBA
const uint8_t DIMM_DQ_MAX_MBA_PORTS = 2;
// Maximum number of DIMMs attached to an MBA PORT
const uint8_t DIMM_DQ_MAX_MBAPORT_DIMMS = 2;
// Maximum number of ranks on a DIMM
const uint8_t DIMM_DQ_MAX_DIMM_RANKS = 4;
// Size in bytes of the Bad DQ bitmap for a rank.
const uint8_t DIMM_DQ_RANK_BITMAP_SIZE = 10;
// Number of DQs (data query pins).
// This is the number of bits in DIMM_DQ_RANK_BITMAP_SIZE.
const uint8_t DIMM_DQ_NUM_DQS = DIMM_DQ_RANK_BITMAP_SIZE * 8;
// Size in bytes of Bad DQ Data in DIMM SPD
// This must be big enough to contain the bitmap for each rank
// (DIMM_DQ_MAX_DIMM_RANKS * DIMM_DQ_RANK_BITMAP_SIZE), plus the header
const uint8_t DIMM_DQ_SPD_DATA_SIZE = 80;
#endif
|