blob: ed876cd1bd81d9758466eac0e5dbea0fd91419a7 [file] [log] [blame]
/*
* arch/arm/plat-feroceon/mv_drivers_lsp/mv_pon/core/gpon/gponOnuGoogle.c
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#include "gponOnuHeader.h"
int onuGponLaserChannelPrint(char* buf)
{
int off, rc;
MV_32 msgCount;
MV_U8 ponIdBytes[ONU_GPON_PON_ID_BYTES_LEN];
msgCount = onuGponDbPONIdGetCount();
rc = -1;
if (msgCount > 0) {
onuGponDbPONIdBytesInfoGet(ponIdBytes);
rc = ponIdBytes[0] & 0x3f;
}
off = mvOsSPrintf(buf, "%d\n", rc);
return off;
}