Commit af165785 authored by 's avatar

Added support for DAG4.3S


git-svn-id: file:///home/svn/mapi/trunk@1386 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 611583fc
......@@ -6,7 +6,7 @@ DAGFWDIR=${DAGDIR}/share
PATH=${DAGDIR}/bin:$PATH
function usage() {
echo "dag.sh { 4.3 | 4.5g2 | 4.5g4 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo "dag.sh { 4.3 | 4.3s | 4.5g2 | 4.5g4 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo ""
echo "<card_number> is x in /dev/dagx. Default is 0."
echo "-f only reload firmware (do not reload driver)"
......@@ -24,7 +24,7 @@ fi
# Determine card type
if [ $1 = "4.3" -o $1 = "4.5g2" -o $1 = "4.5g4" -o $1 = "6.2" -o $1 = "8.2" ]; then
if [ $1 = "4.3" -o $1 = "4.3s" -o $1 = "4.5g2" -o $1 = "4.5g4" -o $1 = "6.2" -o $1 = "8.2" ]; then
CARD_TYPE=$1
shift
else
......@@ -90,25 +90,28 @@ if [ $CARD_TYPE = "4.3" ]; then
# dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag43gepcix-terf.bit
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag43gepcix-ipf.bit
dagld -x -d /dev/dag${CARD_NO} ${DAGFWDIR}/copro-ipf43ge.bit
dagfour -d /dev/dag${CARD_NO} default nic slen=1520
dagfour -d /dev/dag${CARD_NO} default nic slen=1540
elif [ $CARD_TYPE = "4.3s" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag43pcix-terf.bit
dagfour -d /dev/dag${CARD_NO} default slen=1540
elif [ $CARD_TYPE = "4.5g2" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag45g2pcix-terf-dsm.bit
dagconfig -d${CARD_NO} default
dagconfig -d${CARD_NO} slen=1520
dagconfig -d${CARD_NO} slen=1540
elif [ $CARD_TYPE = "4.5g4" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag45g4pcix-terf-dsm.bit
dagconfig -d${CARD_NO} default
dagconfig -d${CARD_NO} slen=1520
dagconfig -d${CARD_NO} slen=1540
elif [ $CARD_TYPE = "6.2" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag62pcix-erf.bit
dagld -x -d /dev/dag${CARD_NO} ${DAGFWDIR}/dag62rx-erf.bit
dagsix -d /dev/dag${CARD_NO} default eth lan slen=1520 long=1520
dagsix -d /dev/dag${CARD_NO} default eth lan slen=1540 long=1540
elif [ $CARD_TYPE = "8.2" ]; then
SECOND_INTERNAL_DEVICE=`expr $CARD_NO + 1`
dagrom -rvp -d${CARD_NO} -f ${DAGFWDIR}/dag82xpci-terf-dsm.bit
dagconfig -d${CARD_NO} default
dagconfig -d${SECOND_INTERNAL_DEVICE} default
dagconfig -d${CARD_NO} slen=1520 mem=128:0
dagconfig -d${CARD_NO} slen=1540 mem=128:0
else
echo "Unsupported card type"
usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment