/* bootConfig.c - system configuration module for boot ROMs */
/* Copyright 1984 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
12q,19jun02,elr Moved close for ftp data sockets (SPR #77169)
12p,06jun02,pai Removed redundant error messages from xxxLoad() routines.
12o,23may02,mas corrected args passed to smNetInit() (SPR 71787)
12n,22may02,jkf SPR#76700, pcmciaInit must be called before muxDevLoad
12m,22may02,sbs changed default sys clock rate to a macro (SPR #1918)
12l,16may02,vvv restored SLIP support
12k,10may02,wap Reduce tBoot's priority to below tNetTask's before doing
netLoad() (SPR #76107)
12j,06may02,sbs updating boot banner
12i,30apr02,wap Correct arguments passed to dhcpcOptionAdd() for
little-endian targets (SPR #73769)
12h,24apr02,mas fixed backplane NETIF params in usrBpInit() (SPR 76236)
12g,31mar02,jkf SPR#74251, using bootLib.h macros for array sizes
12f,28mar02,jkf SPR#74558, bootrom: command line input length increased.
12e,22mar02,zmm Fix mask in 'd' instruction for little endian only (SPR 5602)
12d,14mar02,hdn added X86 specific code for HTT in go () (spr 73738)
12c,13mar02,vvv removed references to SLIP (SPR #72992)
12b,04mar02,pch SPR 73609
12a,29jan02,vvv allow icmpMaskGet to work if host and target are in different
subnets; added debug messages for netmask configuration
11z,17jan02,pcm SPR 72642 - split excInit() into excInit() and excShowInit()
11y,10dec01,kab SPR 71410 - stack overflow
11x,10dec01,sbs Added version command and check for the length of bootline
before saving to NVRAM.
11w,10dec01,rec Made 'd' command endian independent (SPR 5602).
11v,09dec01,jkf SPR#62094, 62122, need devSplit() for booting from dosfs
11u,07dec01,jkf SPR#70548, Booting from Partitioned disks fails with SCSI
11t,30nov01,nrv including sysTffs.c when INCLUDE_TFFS is defined
11s,28nov01,tlc Correct diab syntax error for MIPS architecture.
11r,11nov01,sbs Added intLock() before jumping out of boot image (SPR 3704)
Removed '!' as an option to continue booting (SPR 7256)
11q,13nov01,yvp Added include for private/excLibP.h
11p,27oct01,dat Adding trap for misaligned data section SPR 9006
11o,09oct01,rae merge from truestack ver11n. Base 11j (SPR 25374)
11p,19oct01,vvv fixed IP_MAX_UNITS declaration (SPR #70476)
11o,11oct01,aeg updated initialization sequence of selectLib (SPR #31319).
11n,16sep01,dat Use of WRS_ASM macro
11m,18jun01,mil Cleaned up compiler warnings.
11l,27feb01,hk update printBootLogo() copyright notice to cover 2001.
11l,07feb01,spm added merge record for 30jan01 update from version 10z of
tor2_0_x branch (base 10y) and fixed modification history
11k,30jan01,ijm merged SPR# 28602 fixes: proxy ARP services are obsolete
10q,30apr99,jpd changed copyright year from 1998 to 1999.
10p,13nov98,jpd conditionally add sysHwInit0() call before cacheLibInit(); make
cacheEnable call depend on INCLUDE_CACHE_SUPPORT (SPR #22707).
10z,01sep99,spm allowed proxy client and server to use any device (SPR #8993)
11j,08dec00,rae Fixed minor #ifdef problem
11i,06dec00,rae usrRoot can't return ERROR
11h,17nov00,spm fixed NPT merge to allow build without END device support
11g,14nov00,rae removed unused argument from sockLibAdd()
11f,01nov00,ham update muxDevStopAll call in response to muxLib.c's ver 03k.
11e,17oct00,niq Integrating T3 DHCP
11e,28feb00,gnn merged from NPT
11d,04oct99,pul Modification for NPT: passing the right cookie to muxDevStart
11c,29apr99,pul Upgraded NPT phase3 code to tor2.0.0
11b,29mar99,pul removed mmuxMCastMapAdd()
11a,26mar99,sj added NPT support: muxLibInit; muxMaxBinds
10z,19mar99,dat removed bp driver interface SPR 25877, fixed bug in ver 10x.
11a,19apr00,zl fixed unitNum default to 0 in mEnet(). Updated copyright year.
10y,17mar99,spm added support for identical unit numbers (SPR #20913)
10x,16mar99,dat SPR 25790, fixed startup of END and BSD drivers
10w,16mar99,spm recovered orphaned code from tor1_0_1.sens1_1 (SPR #25770)
10v,01mar99,spm bypassed incorrect cleanup after successful TFTP file
transfer (SPR #24618)
10u,26feb99,dat added FEI support (23818)
10t,19feb99,spm fixed construction of device name for pcmcia (SPR #21676)
10s,02feb99,sgv Added bitflag value to sockLibAdd
10r,28jan99,jmp added TSFS_BOOT facility (SPR# 24466).
10q,20jan99,scb usrBpInit() modified to use "sm=" before SM_ANCHOR_ADRS (23035)
10p,26jan99,jkf removed x86 specific memAddToPool's from ataLoad,
ideLoad, pcmciaLoad, & tffsLoad. Replaced with
BSP specific memAddToPool in sysHwInit2() (SPR#21338).
10o,13nov98,n_s added call to muxDevStopAll in go. spr #23229
10n,11sep98,spm corrected documentation for bootpGet and dhcpGet (SPR #20629)
10m,04sep98,ham set subnetmask through ntohl() in bootpGet(),SPR#21909.
10l,03jun98,hdn disabled system clock just before jumping to the entry point
for PentiumPro's Local APIC Timer.
10k,23apr98,yp merged TrueFFS support
10j,01apr98,hdn moved tffsLoad from usrTffs.c.
10i,04feb98,jpd updated copyright date.
10h,19mar98,spm corrected prototype for mEnet() routine (SPR #20174); changed
parameter name to match coding standards
10g,02feb98,spm replaced invalid logMsg calls with printf statements
10f,06jan98,hdn added support for TFFS.
10e,30nov97,vin added network system pool
10d,20nov97,gnn fixed spr#7265 to deal with devices with no attach routine.
10c,27oct97,vin fixed call to endLoadFunc(..).
10b,03oct97,gnn removed references to endDriver global
10b,23oct97,tam fixed compilation warnings.
10a,26sep97,gnn added muxAddrResFuncAdd call for ipAttach
09z,26sep97,vin used NUM_XXX_MIN macros for system pool configuration.
09y,25sep97,gnn SENS beta feedback fixes
09x,26aug97,vin fixed warnings in muxIoctl
09w,26aug97,spm major overhaul of DHCP client: reorganized code and changed
user interface to support multiple leases at runtime, improved
handling of address information, and allowed selection of UDP
ports; also fixed incorrect treatment of gateway field by
BOOTP/DHCP (SPR #9137)
09v,12aug97,gnn changes necessitated by MUX/END update.
09u,15jul97,spm fixed byte ordering of netmask from DHCP client (SPR #8739)
09t,01jul97,jag removed stale code for RESOLVER (SPR #8868)
09j,15aug97,cdp add casts etc. to stop compiler warnings.
09i,05feb97,cdp remove ARM test hook (_func_armStartup).
09h,21jan97,jpd Added support for Olicom and lnEbsa Ethernet drivers, made
cacheLib calls dependent upon INCLUDE_CACHE_SUPPORT being
defined.
09g,12dec96,cdp added _func_armStartup for ARM platforms.
09s,02jun97,spm changed DHCP option tags to prevent name conflicts (SPR #8667)
09r,20may97,gnn fixed SPR 8627 so that multiple gn devices are supported.
09q,19may97,spm included rngLib.h to fix DHCP client build error (SPR #8606)
09p,30apr97,spm moved usrNetIfConfig for "gn" device to prevent DHCP error
09o,25apr97,gnn changed INCLUDE_GN to INCLUDE_END
09n,18apr97,spm corrected structure element name in BOOTP interface
09m,17apr97,gnn added support for configNet style configuration of ENDs.
09l,07apr97,spm changed BOOTP interface to DHCP style: all options supported
09k,29jan97,spm made global variables for DHCP client unique
09j,29jan97,spm removed parameters from dhcpBootBind()
09i,21jan97,gnn added the new argument to muxDevLoad().
09h,20dec96,vin fixed warnings muxDevLoad(). added AF_ROUTE.
09g,06mar97,mas deleted unused variable 'char gateway[INET_ADDR_LEN];' from
bootLoad() (SPR 8113).
09g,18dec96,spm fixed bug in unit number support and restored lost DHCP code
09f,17dec96,gnn added stuff for new etherHooks.
09e,27nov96,spm added support for DHCP client and network device unit numbers
09d,25nov96,vin added new cluster conf