qemu-patch-raspberry4/pc-bios/s390-ccw
Collin L. Walling ff5dbf1bc3 s390-ccw: read user input for boot index via the SCLP console
Implements an sclp_read function to capture input from the
console and a wrapper function that handles parsing certain
characters and adding input to a buffer. The input is checked
for any erroneous values and is handled appropriately.

A prompt will persist until input is entered or the timeout
expires (if one was set). Example:

      Please choose (default will boot in 10 seconds):

Correct input will boot the respective boot index. If the
user's input is empty, 0, or if the timeout expires, then
the default zipl entry will be chosen. If the input is
within the range of available boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2018-02-26 07:56:55 +01:00
..
bootmap.c s390-ccw: read stage2 boot loader data to find menu 2018-02-26 07:56:55 +01:00
bootmap.h s390-ccw: read stage2 boot loader data to find menu 2018-02-26 07:56:55 +01:00
bswap.h pc-bios/s390-ccw: Move byteswap functions to a separate header 2017-07-14 12:29:48 +02:00
cio.h s390-ccw: Fix alignment for CCW1 2017-08-30 18:23:26 +02:00
iplb.h s390-ccw: parse and set boot menu options 2018-02-26 07:56:54 +01:00
libc.c s390-ccw: update libc 2018-02-26 07:56:54 +01:00
libc.h s390-ccw: update libc 2018-02-26 07:56:54 +01:00
main.c s390-ccw: set up interactive boot menu parameters 2018-02-26 07:56:55 +01:00
Makefile s390-ccw: set up interactive boot menu parameters 2018-02-26 07:56:55 +01:00
menu.c s390-ccw: read user input for boot index via the SCLP console 2018-02-26 07:56:55 +01:00
netboot.mak s390: set DHCP client architecure id for netboot 2017-09-19 18:21:33 +02:00
netmain.c pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP load 2017-07-14 12:29:48 +02:00
s390-ccw.h s390-ccw: read user input for boot index via the SCLP console 2018-02-26 07:56:55 +01:00
sclp.c s390-ccw: read user input for boot index via the SCLP console 2018-02-26 07:56:55 +01:00
sclp.h pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info 2017-05-02 15:08:54 +02:00
scsi.h pc-bios/s390-ccw: Get Block Limits VPD device data 2017-05-19 12:29:01 +02:00
start.S pc-bios/s390-ccw: zero out bss section 2017-12-14 17:56:54 +01:00
virtio-blkdev.c pc-bios/s390-ccw: Move virtio-block related functions into a separate file 2017-07-14 12:29:48 +02:00
virtio-net.c pc-bios/s390-ccw: Add virtio-net driver code 2017-07-14 12:29:48 +02:00
virtio-scsi.c pc-bios/s390-ccw: Fix problem with invalid virtio-scsi LUN when rebooting 2017-11-20 10:35:12 +01:00
virtio-scsi.h pc-bios/s390-ccw: Build a reasonable max_sectors limit 2017-05-19 12:29:01 +02:00
virtio.c s390-ccw: read user input for boot index via the SCLP console 2018-02-26 07:56:55 +01:00
virtio.h pc-bios/s390-ccw: Add virtio-net driver code 2017-07-14 12:29:48 +02:00