freebsd-skq/stand/uboot/lib
ian 59f925c4ff Distinguish between "no partition" and "choose best partition" with a constant.
The values of the d_slice and d_partition fields of a disk_devdesc have a
few values with special meanings in the disk_open() routine. Through various
evolutions of the loader code over time, a d_partition value of -1 has
meant both "use the first ufs partition found in the bsd label" and "don't
open a bsd partition at all, open the raw slice."

This defines a new special value of -2 to mean open the raw slice, and it
gives symbolic names to all the special values used in d_slice and
d_partition, and adjusts all existing uses of those fields to use the new
constants.

The phab review for this timed out without being accepted, but I'm still
citing it below because there is useful commentary there.

Differential Revision:	https://reviews.freebsd.org/D19262
2019-03-24 18:51:52 +00:00
..
api_public.h
console.c
copy.c The libstand's panic() appends its own '\n' to the message, so that users of the API 2018-11-29 18:37:48 +00:00
devicename.c Remove d_type from devdesc. It's not needed as we can fetch it from 2018-03-12 21:39:59 +00:00
disk.c Distinguish between "no partition" and "choose best partition" with a constant. 2019-03-24 18:51:52 +00:00
elf_freebsd.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
glue.c Tag unreachable places as such. I left the while (1); in place since 2018-01-26 22:22:21 +00:00
glue.h Now that exit is __dead2, we need to tag ub_exit() as __dead2. To do 2018-01-26 21:50:59 +00:00
libuboot.h Make uboot_devdesc properly alias disk_devdesc, so that parsing the u-boot 2019-02-18 04:44:52 +00:00
Makefile Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
module.c
net.c The libstand's panic() appends its own '\n' to the message, so that users of the API 2018-11-29 18:37:48 +00:00
reboot.c
time.c