kboot: implement stripped down termios
authorWarner Losh <imp@FreeBSD.org>
Tue, 26 Jul 2022 23:31:23 +0000 (17:31 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 28 Jul 2022 21:35:42 +0000 (15:35 -0600)
commit963037786f76a414e91e45d4fbef5e35fc1abc84
treec994ad587188e0b2275a9b75425c527d288fc103
parent54e6e0deb4853dae7e97e7d5659c05e95bebac32
kboot: implement stripped down termios

Implement a stripped down termios, obtained from various files in musl
and HOST_ or host_ prepended to most things and a few unavoidable style
tweaks. Only implements the bits of termios we need for the boot loader:
put the terminal into raw mode, restore terminal settings and speed
stuff.

Sponsored by: Netflix
stand/kboot/Makefile
stand/kboot/arch/amd64/termios_arch.h [new file with mode: 0644]
stand/kboot/arch/powerpc64/termios_arch.h [new file with mode: 0644]
stand/kboot/termios.c [new file with mode: 0644]
stand/kboot/termios.h [new file with mode: 0644]
stand/kboot/termios_gen.h [new file with mode: 0644]