*) echo "ERROR: Unknown LLI driver being configured ($name$bd)";
cleanup $FAIL;
;;
esac
if [ $bd -gt $MAX_BD ]
then
echo "ERROR: Only boards 0..$MAX_BD are supported by this driver";
cleanup $FAIL
fi
echo
# function to produce the info for the System file for the RTL
# boards
system_r7e() {
bd=$1
IRQ=0;
DMA=-1;
FORCE="auto";
BIO=0;
EIO=0;
BUS=0;
DMACHAN=-1
NMINORS="1"
############################################
##########clt 11/15/1996####################
####change space.c file ####################
#set -x
prompt_select "Enter hardware_default_setting, or auto, force 10 or 10bps, half or full duplex:" $FORCE "hwset auto 10half 10full 100half 100full" || cleanup $FAIL
FORCE=$result
[ "$result" = "hwset" ] && FORCE="0"
[ "$result" = "auto" ] && FORCE="2"
[ "$result" = "10half" ] && FORCE="10"
[ "$result" = "10full" ] && FORCE="11"
[ "$result" = "100half" ] && FORCE="100"
[ "$result" = "100full" ] && FORCE="101"
spacef=${CONF}/pack.d/${drv}0/space.c
a=`grep "^#define[ ]${drv}force_$bd" $spacef`
c="#define ${drv}force_$bd $FORCE"
sed "s/${a}/${c}/" $spacef > /tmp/bog$$
cp /tmp/bog$$ $spacef
rm /tmp/bog$$
echo "Detect PCI fast ethernet adapter hardware automatically."
# function to remove address conflicts in the sio driver
sio_conflict() {
currdir=`pwd`
cd /etc/conf/pack.d/sio
if [ "$type" = "386GT" -a "$base" = "tok0" ]
then
# get rid of sio access to 0x2f0 (Global Interrupt enable) on AT
grep "ibm COM3" space.c > /dev/null && {
echo "Removing ibm COM3 from link kit..."
[ ! -f space.c.rls ] && cp space.c space.c.rls
sed -e /"ibm COM3/s/^{/\/* LLI {/p" space.c > /tmp/bog$$
mv /tmp/bog$$ space.c > /dev/null 2>&1
}
fi
grep "(sd)0x$BIO" space.c > /dev/null && {
echo "Removing serial cards using base address 0x$BIO from link kit..."
[ ! -f space.c.rls ] && cp space.c space.c.rls
sed -e /"(sd)0x$BIO,/s/^{/\/* LLI {/p" space.c > /tmp/bog$$
mv /tmp/bog$$ space.c > /dev/null 2>&1
}
cd $currdir
# determine release, and AT or MCA bus - set rel and type variables accordingly.