diff options
author | Thi Tran <thi@us.ibm.com> | 2013-01-11 10:21:08 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-01-19 14:36:14 -0600 |
commit | 63a1ec42cc6b0a3e63112535e07c24e68d798397 (patch) | |
tree | d6e0860503f2b3db38841a08a9b1c49a7f3cc7b0 /src/usr/pore | |
parent | 3ed7c1ad8495c569e0d53fc69105b24c1d3b035b (diff) | |
download | talos-hostboot-63a1ec42cc6b0a3e63112535e07c24e68d798397.tar.gz talos-hostboot-63a1ec42cc6b0a3e63112535e07c24e68d798397.zip |
Allow VSBE to access 0x1007 via faked SCOM reg 0x50007
Change-Id: I7d942bd15e5add2c0fc0adeda6209d9eba45a3aa
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2920
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pore')
-rw-r--r-- | src/usr/pore/poreve/porevesrc/pib2cfam.C | 73 | ||||
-rw-r--r-- | src/usr/pore/poreve/porevesrc/pib2cfam.H | 51 |
2 files changed, 62 insertions, 62 deletions
diff --git a/src/usr/pore/poreve/porevesrc/pib2cfam.C b/src/usr/pore/poreve/porevesrc/pib2cfam.C index 82cabe313..689c456b7 100644 --- a/src/usr/pore/poreve/porevesrc/pib2cfam.C +++ b/src/usr/pore/poreve/porevesrc/pib2cfam.C @@ -1,34 +1,34 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/usr/pore/poreve/porevesrc/pib2cfam.C $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2012 - * - * 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 other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/pore/poreve/porevesrc/pib2cfam.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2012,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 */ // -*- mode: C++; c-file-style: "linux"; -*- -// $Id: pib2cfam.C,v 1.11 2012/04/02 16:27:58 jeshua Exp $ +// $Id: pib2cfam.C,v 1.14 2013/01/11 15:54:22 thi Exp $ /// \file pib2cfam.C /// \brief A simple PibSlave that maps a small range of PIB addresses to CFAM /// addresses. #include "pib2cfam.H" + using namespace vsbe; @@ -54,7 +54,9 @@ translateAddress(uint32_t address, fapi::Target* i_target) frc = FAPI_ATTR_GET( ATTR_FSI_GP_REG_SCOM_ACCESS, i_target, fsi_gpreg_scom_access ); if(!frc.ok()) { - FAPI_ERR( "Unable to get ATTR_FSI_GP_REG_SCOM_ACCESS for target" ); + FAPI_ERR( "Unable to get ATTR_FSI_GP_REG_SCOM_ACCESS for target\n" ); +//JDS TODO - create an actual fapi error +// FAPI_SET_HWP_ERROR( frc, "Unable to get ATTR_FSI_GP_REG_SCOM_ACCESS for target\n" ); } @@ -77,7 +79,7 @@ Pib2Cfam::operation(Transaction& io_transaction) case ACCESS_MODE_READ: switch (io_transaction.iv_address) { - + case 0x00050007: case 0x00050012: case 0x00050013: case 0x00050014: @@ -100,7 +102,6 @@ Pib2Cfam::operation(Transaction& io_transaction) } break; default: - FAPI_SET_HWP_ERROR(rc,RC_POREVE_PIB2CFAM_ME_NOT_MAPPED_IN_MEMORY); me = ME_NOT_MAPPED_IN_MEMORY; } break; @@ -131,22 +132,20 @@ Pib2Cfam::operation(Transaction& io_transaction) case 0x00050019: case 0x0005001A: - FAPI_SET_HWP_ERROR(rc, - RC_POREVE_PIB2CFAM_ME_BUS_SLAVE_PERMISSION_DENIED); - me = ME_BUS_SLAVE_PERMISSION_DENIED; - break; + FAPI_SET_HWP_ERROR(rc, RC_POREVE_PIB2CFAM_ERROR); + me = ME_BUS_SLAVE_PERMISSION_DENIED; + break; default: - FAPI_SET_HWP_ERROR(rc,RC_POREVE_PIB2CFAM_ME_NOT_MAPPED_IN_MEMORY); - me = ME_NOT_MAPPED_IN_MEMORY; + FAPI_SET_HWP_ERROR(rc, RC_POREVE_PIB2CFAM_ERROR); + me = ME_NOT_MAPPED_IN_MEMORY; } break; default: - FAPI_SET_HWP_ERROR(rc, - RC_POREVE_PIB2CFAM_ME_BUS_SLAVE_PERMISSION_DENIED); - me = ME_BUS_SLAVE_PERMISSION_DENIED; - break; + FAPI_SET_HWP_ERROR(rc, RC_POREVE_PIB2CFAM_ERROR); + me = ME_BUS_SLAVE_PERMISSION_DENIED; + break; } io_transaction.busError(me); return rc; diff --git a/src/usr/pore/poreve/porevesrc/pib2cfam.H b/src/usr/pore/poreve/porevesrc/pib2cfam.H index 329d3f0a3..2220323c8 100644 --- a/src/usr/pore/poreve/porevesrc/pib2cfam.H +++ b/src/usr/pore/poreve/porevesrc/pib2cfam.H @@ -1,29 +1,29 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/usr/pore/poreve/porevesrc/pib2cfam.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2012 -// -// 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 other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/pore/poreve/porevesrc/pib2cfam.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2012,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 */ #ifndef __VSBE_PIB2CFAM_H #define __VSBE_PIB2CFAM_H -// $Id: pib2cfam.H,v 1.3 2011/06/21 00:07:35 bcbrock Exp $ +// $Id: pib2cfam.H,v 1.4 2013/01/11 15:53:49 thi Exp $ /// \file pib2cfam.H /// \brief A temporary hack while waiting for hardware updates - a simple @@ -36,10 +36,10 @@ namespace vsbe { class Pib2Cfam; /// PIB base address of PIB range mapped by Pib2Cfam - const uint32_t PIB2CFAM_PIB_BASE = 0x00050012; + const uint32_t PIB2CFAM_PIB_BASE = 0x00050007; /// Number of PIB addresses mapped by Pib2Cfam - const int PIB2CFAM_PIB_SIZE = ((0x0005001b - 0x00050012) + 1); + const int PIB2CFAM_PIB_SIZE = ((0x0005001b - 0x00050007) + 1); } @@ -69,6 +69,7 @@ public: /// /// The following PIB registers are mapped to CFAM registers: /// + /// - PIB 0x00050007 -> CFAM 0x1007, FSI2PIB.STATUS, R /// - PIB 0x00050012 -> CFAM 0x1012, FSIGP3, R/W /// - PIB 0x00050013 -> CFAM 0x1013, FSIGP4, R/W /// - PIB 0x00050014 -> CFAM 0x1014, FSIGP5, R/W |