Files
s390-tools/zipl/boot/menu.h
Richie Buturla 4a9f66fc31 zipl/boot: Change error codes to enums
Change error codes returned from menu_param to enums.

Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Richie Buturla <richie@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2025-10-14 09:57:06 +02:00

34 lines
664 B
C

/*
* zipl - zSeries Initial Program Loader tool
*
* Bootmenu Subroutines
*
* Copyright IBM Corp. 2013, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef MENU_H
#define MENU_H
#include "stage2.h"
#define BOOT_MENU_ENTRIES 63
#define PARAM_SIZE 8
#define TEXT_OFFSET 4
struct boot_stage2_params {
uint16_t flag;
uint16_t timeout;
uint16_t banner;
uint16_t config[BOOT_MENU_ENTRIES];
uint64_t config_kdump;
} __packed;
extern struct boot_stage2_params __stage2_params;
int menu();
#endif /* MENU_H */