Files
s390-tools/zipl/boot/menu.h
Michael Holzheu b627b8d8e1 Initial s390-tools-2.0.0 import
This commit is based on the s390-tools-1.39.0 version.

Changes on top of s390-tools-1.39.0:

 - Add MIT license to all source files
 - Add LICENSE file
 - Transform REAMDE to README.md (markdown)
 - Add AUTHORS.md file
 - Add CONTRIBUTING.md file
 - Move changelog from README to CHANGELOG.md file

Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
2017-08-21 10:55:40 +02:00

44 lines
989 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"
/* address of extra command line */
#define COMMAND_LINE_EXTRA (0xA000-0x400)
/* max command line length */
#define COMMAND_LINE_SIZE 896
#define BOOT_MENU_ENTRIES 63
#define LINE_LENGTH 80
#define PARAM_SIZE 8
#define TEXT_OFFSET 4
#define NUMBER_FOUND 0
#define PRINT_PROMPT 1
#define NOTHING_FOUND 2
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 */