freebsd-dev/stand/i386
Ian Lepore c1418270b2 Extend loader(8) geli support to all architectures and all disk-like devices.
This moves the bulk of the geli support from lib386/biosdisk.c into a new
geli/gelidev.c which implements a devsw-type device whose dv_strategy()
function handles geli decryption. Support for all arches comes from moving
the taste-and-attach code to the devopen() function in libsa.

After opening any DEVT_DISK device, devopen() calls the new function
geli_probe_and_attach(), which will "attach" the geli code to the open_file
struct by creating a geli_devdesc instance to replace the disk_devdesc
instance in the open_file. That routes all IO for the device through the
geli code.

A new public geli_add_key() function is added, to allow arch/vendor-specific
code to add keys obtained from custom hardware or other sources.

With these changes, geli support will be compiled into all variations of
loader(8) on all arches because the default is WITH_LOADER_GELI.

Relnotes:	yes
Sponsored by:	Microchip Technology Inc
Differential Revision:	https://reviews.freebsd.org/D15743
2018-07-13 17:50:25 +00:00
..
boot0 Centralize several variables. 2018-02-02 06:32:26 +00:00
boot0sio
boot2 Further style(9) changes. 2018-02-21 18:32:06 +00:00
btx Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
cdboot Centralize several variables. 2018-02-02 06:32:26 +00:00
common Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
gptboot Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
gptzfsboot Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
isoboot Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
kgzldr Centralize several variables. 2018-02-02 06:32:26 +00:00
libfirewire fwohcireg.h is 99% the same between the boot loader and the 2018-03-31 22:02:59 +00:00
libi386 Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
loader Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
mbr Centralize several variables. 2018-02-02 06:32:26 +00:00
pmbr Centralize several variables. 2018-02-02 06:32:26 +00:00
pxeldr
zfsboot Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
zfsloader Move ZFS files into libsa 2018-07-08 07:42:49 +00:00
boot.ldscript
Makefile Add isoboot(8) for booting BIOS systems from HDDs containing ISO images. 2018-04-05 19:40:46 +00:00
Makefile.inc Add support for linker-type-specific flags 2018-04-19 20:58:09 +00:00