1#!/usr/bin/env bash
2
3###############################################################################
4#
5# Copyright (C) 2009-2013 Nintendo.  All rights reserved.
6#
7# These coded instructions, statements, and computer programs contain
8# proprietary information of Nintendo of America Inc. and/or Nintendo
9# Company Ltd., and are protected by Federal copyright law.  They may
10# not be disclosed to third parties or copied or duplicated in any form,
11# in whole or in part, without the prior written consent of Nintendo.
12#
13###############################################################################
14
15source getbridgetype
16
17if [ "$BRIDGE_TYPE" == "Toucan" ]
18then
19	echo
20    BRIDGE_TYPE="Toucan"
21    fw_ver=`"$SDIO_BRIDGE_TOOLS/FSEmul" -ver | grep Firmware | awk '{ print $4 }'`
22	SDIO_BRIDGE_TOOLS_VER=`"$SDIO_BRIDGE_TOOLS/FSEmul" -ver | grep Software | awk '{ print $4 }'`
23else
24	echo
25	BRIDGE_TYPE="MION"
26	fw_ver=`"$MION_BRIDGE_TOOLS/FSEmul" -ver -ip $BRIDGE_CURRENT_IP_ADDRESS | grep Firmware | awk '{ print $4 }'`
27	SDIO_BRIDGE_TOOLS_VER=`"$MION_BRIDGE_TOOLS/FSEmul" -ver -ip $BRIDGE_CURRENT_IP_ADDRESS | grep Software | awk '{ print $4 }'`
28    fpga_ver=`"$MION_BRIDGE_TOOLS/FSEmul" -ver -ip $BRIDGE_CURRENT_IP_ADDRESS | grep FPGA | awk '{ print $4 }'`
29fi
30
31echo "Bridge Type : "$BRIDGE_TYPE" "
32echo "PLATFORM : "$PLATFORM" "
33echo "Bridge PC Tools   : "$SDIO_BRIDGE_TOOLS_VER" "
34echo "Bridge Firmware   : "$fw_ver" "
35echo "Bridge FPGA       : "$fpga_ver" "
36
37