diff options
author | ian <ian@FreeBSD.org> | 2014-04-29 00:45:42 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-04-29 00:45:42 +0000 |
commit | 3e706bc125f903c2223e90e5225594efea13e10f (patch) | |
tree | 9c3c5f09276a4dd11c269470de7bcbd03d78dc70 /sys/boot/uboot/lib/api_public.h | |
parent | 4d985863b1ca378d0225d5c7089e922c5d53e868 (diff) | |
download | FreeBSD-src-3e706bc125f903c2223e90e5225594efea13e10f.zip FreeBSD-src-3e706bc125f903c2223e90e5225594efea13e10f.tar.gz |
MFC r263052, r263124, r263265, r263267... Enhance loaderdev env var.
Enhance the mechanism that lets you configure the ubldr boot device by
setting the u-boot environment variable loaderdev=. It used to accept only
'disk' or 'net'. Now it allows specification of unit, slice, and partition
as well. In addition to the generic 'disk' it also accepts specific
storage device types such as 'mmc' or 'sata'.
If there isn't a loaderdev env var, the historical behavior is maintained.
It will use the first storage device it finds, or a network device if
no working storage device exists.
99% of the work on this was done by Patrick Kelsey, but I made some
changes, so if anything goes wrong, blame me.
(Indeed, the 3 followup commits fixed things I got wrong on the first.)
Diffstat (limited to 'sys/boot/uboot/lib/api_public.h')
-rw-r--r-- | sys/boot/uboot/lib/api_public.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/api_public.h b/sys/boot/uboot/lib/api_public.h index 9537479..f393de8 100644 --- a/sys/boot/uboot/lib/api_public.h +++ b/sys/boot/uboot/lib/api_public.h @@ -132,7 +132,7 @@ typedef unsigned long lbastart_t; #define DT_STOR_SCSI 0x0020 #define DT_STOR_USB 0x0040 #define DT_STOR_MMC 0x0080 -#define DT_STOR_NAND 0x0100 +#define DT_STOR_SATA 0x0100 #define DEV_STA_CLOSED 0x0000 /* invalid, closed */ #define DEV_STA_OPEN 0x0001 /* open i.e. active */ |