/* bootConfig.c - system configuration module for boot ROMs */
/* Copyright 1984 - 1999 Wind River Systems, Inc. */
#include "copyright_wrs.h"
/*
modification history
--------------------
10y,19mar99,dat removed bp driver interface SPR 25877, fixed bug in ver 10x.
10x,17mar99,spm added support for identical unit numbers (SPR #20913)
10w,16mar99,dat SPR 25790, fixed startup of END and BSD drivers
10v,16mar99,spm recovered orphaned code from tor1_0_1.sens1_1 (SPR #25770)
10u,01mar99,spm bypassed incorrect cleanup after successful TFTP file
transfer (SPR #24618)
10t,26feb99,dat added FEI support (23818)
10s,19feb99,spm fixed construction of device name for pcmcia (SPR #21676)
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 configuration.
09c,01oct96,spm added bzero() call to checkInetAddrField (SPR 6326)
09b,22sep96,spm Fixed SPR 7120: added support for gateways to BOOTP startup
09a,24jul96,vin fetching netmask after usrNetIfConfig() mods for bsd4.4.
08z,21jun96,jmb long modhist -- deleted entries prior to 1994. SPR #6528
08y,19jun96,hdn defined IDE_MEM_DOSFS to 0x200000.
08x,13jun96,hdn added INCLUDE_ESMC for SMC91c9x Ethernet driver.
08w,05jun96,kkk update copyright year from 1995 to 1996.
08v,05jun96,ism bumped copyright date to 1996.
19v,19apr96,jds changed the include of scsiLib.h to be done after config.h;
also added setting to asynchronous mode all target devices
08u,20mar96,hdn made inclusion of pppLib.h and strmLib.h conditional.
09t,07mar96,gnn added SLIP_MTU to slipInit so that we could configure
the MTU. (SPR #4652)
08s,06mar96,tpr added #include "bootElfLib.h".
08r,06mar96,dat removed __DATE__ from printBootLogo
08q,06mar96,tpr Enabled the Instruction Cache for PowerPC.
08p,06dec95,vin fixed usrStrmInit warning.
08o,29nov95,vin added baudrate processing of boot string.
08n,06sep95,jag deleted call to fattachInit (), changed sadInit to
autopushInit (), and changed iosStrmInit to strmInit ().
08m,01aug95,dzb changed STREAMS options to go through iosStrmInit ().
added usrStrmInit ().
PPP initialization failure message (SPR #4505).
08l,25jul95,dzb tweaked socket library initialization.
08k,25jul95,dzb added socket library init for BSD vs. STREAMS.
08j,18jul95,dzb wait for PPP interface to come up in usrPPPInit().
08i,17jul95,dzb fixed ordering of boot params search.
08h,26jun95,dzb removed PPP_S_USEHOSTNAME option.
08g,21jun95,dzb Added INCLUDE_PPP_CRYPT for unbundled crypt() support.
08f,20jun95,dzb Added PPP support.
09b,28nov95,tpr re-ordered history following PPC merge.
09a,11oct95,dat new BSP revision id, modified signon banner printing
08z,29jun95,caf added nicEvb driver entry.
08y,28jun95,caf for PPC, called cacheTextUpdate() instead of cacheClear().
08x,26jun95,kvk Removed references to _edata and _end for a clean
bootrom_uncmp build.
08w,06jun95,caf fixed edata and end for Green Hills/PowerPC.
08v,26jun95,ms updated for new serial drivers, removed WDB support.
08u,21jun95,ms changed copywrite to 1995
08t,01jun95,caf added support for "ilac" driver.
08s,22may95,yao adjust reference to edata, end to SVR4 ABI standard
for PowerPC.
08r,22may95,p_m added WDB agent support.
+ ms
08q,05apr95,kkk changed edata & end to char arrays (spr# 3917)
08p,28mar95,kkk made baud rate a macro in configAll.h
08o,19mar95,dvs removed TRON references.
08n,08dec94,hdn swapped 1st and 2nd parameters of fdDevCreate().
fixed bootHelp message; fd=... and ide=...
08m,21nov94,hdn fixed a problem by swapping 1st and 2nd parameters of sscanf.
08l,20nov94,kdl added hashLibInit() call if using dosFs.
08k,11nov94,dzb added QU network interface.
08j,09nov94,jds additions for scsi backward compatability ; scsi[12]IfInit()
08i,20oct94,hdn used ideRawio() instead of using raw file system.
swapped 1st and 2nd parameter of ideLoad() and fdLoad().
08h,17aug94,dzb fixed setting the gateway for a slip connection (SPR #2353).
added INCLUDE_NETWORK macros for scalability (SPR #1147).
added CSLIP support.
08g,14jun94,caf updated copyright notices.
08f,29may94,hdn fixed more FTP bootrom bug in netLoad().
updated the copyright year 93 to 94.
disabled cache for i486 and Pentium.
08e,26may94,kdl changed netLoad() to properly close FTP connections (SPR 3231).
08d,10may94,hdn fixed the FTP bootrom bug (John's patch)
08c,09feb94,hdn a