freebsd-src/stand/uboot
Warner Losh 33bbe5ddcb stand: parsedev API change: devspec now points to start of full device name
To support more flexible device matching, we now pass in the full
devspec to the parsedev routines. For everything execpt uboot, this is
just a drop in (since everything except uboot and openfirmware always
uses disk...: and/or zfs:, but openfirmware isn't really affected).

uboot we kludge around it by subtracting 4 from where the rest of the
device name starts. This is unforunate, and can compute the address one
before the string. But we never dereference that address. uboot needs
more work, and this is an acceptable UB until that other work happens.

OFW doesn't really use the parsedev routines these days (since none of
the supported device uses this... yet). It too needs more work, but it
needs device matching support first.

Sponsored by:		Netflix
Reviewed by:		delphij
Differential Revision:	https://reviews.freebsd.org/D37553
2022-11-30 15:30:33 -07:00
..
arch stand: s/libstand/libsa/g to catch up with rename 2022-04-30 07:34:19 -06: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: parsedev API change: devspec now points to start of full device name 2022-11-30 15:30:33 -07:00
elf_freebsd.c stand/uboot: reorg 2021-12-14 21:09:53 -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