diff options
Diffstat (limited to 'src/usr/fsiscom/fsiscom.C')
-rw-r--r-- | src/usr/fsiscom/fsiscom.C | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/usr/fsiscom/fsiscom.C b/src/usr/fsiscom/fsiscom.C index a61bfcce2..983e2d838 100644 --- a/src/usr/fsiscom/fsiscom.C +++ b/src/usr/fsiscom/fsiscom.C @@ -1,25 +1,25 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/usr/fsiscom/fsiscom.C $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2011 -// -// 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/fsiscom/fsiscom.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2011,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 otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ /*****************************************************************************/ // I n c l u d e s /*****************************************************************************/ @@ -35,11 +35,11 @@ // Trace definition trace_desc_t* g_trac_fsiscom = NULL; -TRAC_INIT(&g_trac_fsiscom, "FSISCOM", 4096); //4K +TRAC_INIT(&g_trac_fsiscom, "FSISCOM", 2*KILOBYTE); //2K // Easy macro replace for unit testing //#define TRACUCOMP(args...) TRACFCOMP(args) -#define TRACUCOMP(args...) +#define TRACUCOMP(args...) namespace FSISCOM @@ -129,7 +129,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, { memcpy(&(scratchData.data64), io_buffer, 8); - TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp> Write(l_scomAddr=0x%X, l_data0=0x%X, l_data1=0x%X)", l_scomAddr, scratchData.data32_0, scratchData.data32_1); + TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp> Write(l_scomAddr=0x%X, l_data0=0x%X, l_data1=0x%X)", l_scomAddr, scratchData.data32_0, scratchData.data32_1); // atomic section >> @@ -139,7 +139,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //write bits 0-31 to data0 l_err = DeviceFW::deviceOp( DeviceFW::WRITE, - i_target, + i_target, &scratchData.data32_0, op_size, DEVICE_FSI_ADDRESS(DATA0_REG)); @@ -150,7 +150,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //write bits 32-63 to data1 l_err = DeviceFW::deviceOp( DeviceFW::WRITE, - i_target, + i_target, &scratchData.data32_1, op_size, DEVICE_FSI_ADDRESS(DATA1_REG)); @@ -163,7 +163,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //bit 0 high => write command l_command = 0x80000000 | l_command; l_err = DeviceFW::deviceOp( DeviceFW::WRITE, - i_target, + i_target, &l_command, op_size, DEVICE_FSI_ADDRESS(COMMAND_REG)); @@ -174,7 +174,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //check status reg to see result l_err = DeviceFW::deviceOp( DeviceFW::READ, - i_target, + i_target, &l_status, op_size, DEVICE_FSI_ADDRESS(STATUS_REG)); @@ -190,7 +190,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //bits 17-19 indicates PCB/PIB error if(l_status & 0x00007000) { - TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Write: PCB/PIB error received: l_status=0x%X)", l_status); + TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Write: PCB/PIB error received: l_status=0x%X)", l_status); /*@ * @errortype * @moduleid FSISCOM::MOD_FSISCOM_PERFORMOP @@ -212,12 +212,12 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, break; } - + } else if(i_opType == DeviceFW::READ) { - TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp: Read(l_scomAddr=0x%.8X)", l_scomAddr); + TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp: Read(l_scomAddr=0x%.8X)", l_scomAddr); // atomic section >> mutex_lock(l_mutex); @@ -227,7 +227,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //write to FSI2PIB command reg starts read operation // bit 0 low -> read command l_err = DeviceFW::deviceOp( DeviceFW::WRITE, - i_target, + i_target, &l_command, op_size, DEVICE_FSI_ADDRESS(COMMAND_REG)); @@ -238,7 +238,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //check ststus reg to see result l_err = DeviceFW::deviceOp( DeviceFW::READ, - i_target, + i_target, &l_status, op_size, DEVICE_FSI_ADDRESS(STATUS_REG)); @@ -250,8 +250,8 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //bits 17-19 indicates PCB/PIB error if((l_status & 0x00007000) != 0) { - TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Read: PCB/PIB error received: l_status=0x%.8X)", l_status); - + TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Read: PCB/PIB error received: l_status=0x%.8X)", l_status); + /*@ * @errortype * @moduleid FSISCOM::MOD_FSISCOM_PERFORMOP @@ -274,7 +274,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //read bits 0-31 to data0 l_err = DeviceFW::deviceOp( DeviceFW::READ, - i_target, + i_target, &scratchData.data32_0, op_size, DEVICE_FSI_ADDRESS(DATA0_REG)); @@ -285,7 +285,7 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, //read bits 32-63 to data1 l_err = DeviceFW::deviceOp( DeviceFW::READ, - i_target, + i_target, &scratchData.data32_1, op_size, DEVICE_FSI_ADDRESS(DATA1_REG)); @@ -298,13 +298,13 @@ errlHndl_t fsiScomPerformOp(DeviceFW::OperationType i_opType, need_unlock = false; mutex_unlock(l_mutex); - TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp: Read: l_scomAddr=0x%X, l_data0=0x%X, l_data1=0x%X", l_scomAddr, scratchData.data32_0, scratchData.data32_1); + TRACUCOMP( g_trac_fsiscom, "fsiScomPerformOp: Read: l_scomAddr=0x%X, l_data0=0x%X, l_data1=0x%X", l_scomAddr, scratchData.data32_0, scratchData.data32_1); memcpy(io_buffer, &(scratchData.data64), 8); } else { - TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Read: PCB/PIB error received: l_status=0x%.8X)", l_status); + TRACFCOMP( g_trac_fsiscom, ERR_MRK"fsiScomPerformOp:Read: PCB/PIB error received: l_status=0x%.8X)", l_status); /*@ * @errortype |