freebsd-dev/sys/boot/common
Rafal Jaworowski 7572ed5a08 Eliminate artificial increasing of 'netdev_opens' counter in loader's net_open().
This was introduced as a workaround long time ago for some Alpha firmware
(which is now gone), and actually prevented net_close() to ever be
called.

Certain firmwares (U-Boot) need local shutdown operations to be performed on a
network controller upon transaction end: such platform-specific hooks are
supposed to be called via netif_close() (from within net_close()).

This change effectively reverts the following CVS commit:

    sys/boot/common/dev_net.c

    revision 1.7
    date: 2000/05/13 15:40:46;  author: dfr;  state: Exp;  lines: +2 -1
    Only probe network settings on the first open of the network device.
    The alpha firmware takes a seriously long time to open the network device
    the first time.

Also suppress excessive output while netbooting via loader, unless debugging.

While there, make sys/boot/uboot more style(9) compliant.

Reviewed by:	imp
Approved by:	cognet (mentor)
2008-03-12 16:01:34 +00:00
..
bcache.c Use the correct printf specifier. 2004-10-03 16:34:01 +00:00
boot.c Extend `autoboot_delay' handling - is this variable is set to -1 don't allow 2005-05-19 23:03:02 +00:00
bootstrap.h Add __elfN(relocation_offset). It holds the offset between the virtual 2008-02-23 18:33:50 +00:00
commands.c There's no reason for "read" and "echo" commands to not 2004-11-13 17:04:55 +00:00
console.c Fix a comparison that broke ``set console=vidconsole'' and even the 2005-07-29 12:47:42 +00:00
dev_net.c Eliminate artificial increasing of 'netdev_opens' counter in loader's net_open(). 2008-03-12 16:01:34 +00:00
dev_net.h
devopen.c o Make sure to clear f->f_devdata if d_dev->dv_open() fails. It 2006-11-02 00:02:22 +00:00
help.common Replace a rarely used "depuration" with "debugging". 2006-10-13 20:48:17 +00:00
interp_backslash.c
interp_forth.c
interp_parse.c
interp.c
isapnp.c
isapnp.h
load_elf32_obj.c Add the loader side of support for preloading ELF relocatable object 2004-08-29 00:48:42 +00:00
load_elf32.c
load_elf64_obj.c Add the loader side of support for preloading ELF relocatable object 2004-08-29 00:48:42 +00:00
load_elf64.c
load_elf_obj.c Make our ELF64 type definitions match standards. In particular this 2005-12-18 04:52:37 +00:00
load_elf.c Add __elfN(relocation_offset). It holds the offset between the virtual 2008-02-23 18:33:50 +00:00
load.c Trim EOL white spaces. 2004-08-22 08:57:05 +00:00
loader.8 Document the per-arch default value of kern.maxbcache. 2007-11-08 11:59:38 +00:00
ls.c
Makefile.inc Don't unconditionally compile-in the bcache code. It's only used on 2006-11-02 00:26:45 +00:00
merge_help.awk Ignore a sub-topic match if it is inside the command description. 2006-09-28 19:06:20 +00:00
misc.c Add a few helper functions for zeroing kernel space and reading 2004-08-28 14:57:34 +00:00
module.c Also boot *.debug if everything else fails. 2007-10-04 18:29:52 +00:00
newvers.sh
panic.c Fix WARNS=2 warnings. 2006-09-29 20:57:38 +00:00
pnp.c Garbage collect the code for auto-loading modules based on ISAPNP IDs, 2007-01-07 22:25:45 +00:00
reloc_elf32.c Separate out the ELF relocation code from the ELF loader, and add 2004-08-28 23:03:05 +00:00
reloc_elf64.c Separate out the ELF relocation code from the ELF loader, and add 2004-08-28 23:03:05 +00:00
reloc_elf.c Make our ELF64 type definitions match standards. In particular this 2005-12-18 04:52:37 +00:00
ufsread.c Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is 2007-10-26 21:02:31 +00:00