freebsd-src/stand/uboot
Warner Losh 5740057b43 stand/uboot: Explain why we test for NULL here
Most parsedev routines assume that idev is non-null and can always be
set. Since we break from this pattern in uboot, explain why in a
comment. devparse was invented to put a lot of common code in one place
and to simplify the archsw.arch_getdev code and any dv_parsedev code
called. However, uboot couldn't use devparse at the time because its
device naming scheme slightly different parsing. So, we still use
uboot_parsedev directly from uboot_getdev where dev could be NULL. Add a
comment to this effect.

The match functionality added for ofw likely could be used to clean up
the multiple kludges that are here for uboot's device naming differences
with the normal boot loader. This work will wait for the future.

Sponsored by:		Netflix
Reviewed by:		kevans
Differential Revision:	https://reviews.freebsd.org/D38042
2023-01-13 14:22:38 -07:00
..
arch stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
api_public.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
copy.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
devicename.c stand/uboot: Explain why we test for NULL here 2023-01-13 14:22:38 -07:00
elf_freebsd.c stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
glue.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
glue.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
help.uboot stand/uboot: reorg 2021-12-14 21:09:53 -07:00
libuboot.h stand: uboot_fmtdev can be reduced to devformat 2022-08-11 10:27:17 -06:00
main.c stand: parsedev API change: devspec now points to start of full device name 2022-11-30 15:30:33 -07:00
Makefile stand/uboot: Fix building of ubldr.bin 2022-02-07 13:14:48 -07:00
net.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
reboot.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
time.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_console.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_disk.c stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
uboot_fdt.c Remove "All Rights Reserved" from Foundation copyrights 2022-06-30 10:49:09 -04:00
uboot_module.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
version stand/uboot: reorg 2021-12-14 21:09:53 -07:00