Files
s390-tools/zipl/boot/error.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

72 lines
2.1 KiB
C

/*
* zipl boot loader error codes
*
* Copyright IBM Corp. 2012, 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 ERROR_H
#define ERROR_H
/************************************************************************
* zipl boot loader error codes (use decimal range 4500-4549)
*
* The error numbers are ABI. Do not change them!
************************************************************************/
/* I/O error: Enabling the IPL device failed */
#define EENABLE_DEV 0x00004500
/* I/O error: Disabling the IPL device failed */
#define EDISABLE_DEV 0x00004501
/* I/O error: The start subchannel command failed */
#define ESSCH 0x00004502
/* Internal error: The IPL type is incorrect */
#define EWRONGTYPE 0x00004510
/* Internal error */
#define EINTERNAL 0x00004511
/* kdump: No operating system information was found */
#define EOS_INFO_MISSING 0x00004520
/* kdump: The checksum of the operating system information is incorrect */
#define EOS_INFO_CSUM_FAILED 0x00004521
/* kdump: The major version of the operating system information is too high */
#define EOS_INFO_VERSION 0x00004522
/* kdump: No crashkernel memory was defined */
#define EOS_INFO_NOCRASHKERNEL 0x00004523
/* kdump: HSA copy failed */
#define EHSA_COPY_FAILED 0x00004524
/************************************************************************
* The following codes are not ABI
************************************************************************/
#define ETIMEOUT 2
/*
* Stand-alone dump
*/
#define OK 0x00000000 /* Dump completed successfully */
#define EMEM 0x00004600 /* Device too small for dump */
#define EDEVNOTSUP 0x00004601 /* Device not supported */
#define EMEMCOUNT 0x00004602 /* Could not evaluate memory layout */
/*
* Multi-volume dump
*/
#define ENODEVNO 0x00004603 /* The devno does not exist */
#define ENOSIGN 0x00004604 /* No valid dump signature on device */
#define ENOTIME 0x00004605 /* The zipl time stamps do not match */
#define ENOMSS 0x00004606 /* Could not enable MSS */
#endif /* ERROR_H */