From 64942ae3e775e308916acc87a64f5efad9356e39 Mon Sep 17 00:00:00 2001 From: yutaka Date: Tue, 29 Jan 2008 08:28:22 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=83=83=E3=83=95=E3=82=A1=E3=82=B5?= =?UTF-8?q?=E3=82=A4=E3=82=BA=E3=81=AE=E5=89=8A=E6=B8=9B=E3=81=A8=E3=82=B5?= =?UTF-8?q?=E3=82=A4=E3=82=BA=E5=88=A4=E5=AE=9A=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@537 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/libraries/pxi/common/pxi_firm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/libraries/pxi/common/pxi_firm.c b/build/libraries/pxi/common/pxi_firm.c index 1659f5f3..74f51a65 100644 --- a/build/libraries/pxi/common/pxi_firm.c +++ b/build/libraries/pxi/common/pxi_firm.c @@ -17,8 +17,8 @@ #include #include -#define PXI_FIRM_ID_MAX 32 -#define PXI_FIRM_STREAM_MAX 32 +#define PXI_FIRM_ID_MAX 8 +#define PXI_FIRM_STREAM_MAX 16 typedef struct { @@ -39,9 +39,9 @@ static void PxiFirmStreamCallback( PXIFifoTag tag, u32 data, BOOL err ) (void)err; if ( !work.length ) // stream is starting { - if ( work.length >= PXI_FIRM_STREAM_MAX ) + if ( data > PXI_FIRM_STREAM_MAX ) { - OS_TPrintf("Receiving stream has too large size (%d >= %d).\n", work.length, PXI_FIRM_STREAM_MAX); + OS_TPrintf("Receiving stream has too large size (%d > %d).\n", data, PXI_FIRM_STREAM_MAX); } work.length = data; work.current = 0; @@ -231,7 +231,7 @@ FIRMPxiID PXI_RecvID( void ) *---------------------------------------------------------------------------*/ void PXIi_SendIDByIntf( u32 id ) { - reg_PXI_INTF = (u16)(id << REG_PXI_INTF_SEND_SHIFT); + reg_PXI_INTF = (u16)(id << REG_PXI_INTF_SEND_SHIFT); } /*---------------------------------------------------------------------------* @@ -245,7 +245,7 @@ void PXIi_SendIDByIntf( u32 id ) *---------------------------------------------------------------------------*/ u32 PXIi_RecvIDByIntf( void ) { - return (u32)((reg_PXI_INTF & REG_PXI_INTF_RECV_MASK) >> REG_PXI_INTF_RECV_SHIFT); + return (u32)((reg_PXI_INTF & REG_PXI_INTF_RECV_MASK) >> REG_PXI_INTF_RECV_SHIFT); } /*---------------------------------------------------------------------------*