Files
s390-tools/zipl/boot/stage2.h
Alexander Egorenkov fed12a71cf zipl/boot: move boot component struct definitions to boot_defs.h for reuse
To reduce duplication of definitions and facilitate reuse between zipl
and zgetdump.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2022-06-20 13:14:04 +02:00

46 lines
887 B
C

/*
* zipl - zSeries Initial Program Loader tool
*
* Main program for stage2 bootloader.
*
* 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 COMMON_H
#define COMMON_H
#include "lib/zt_common.h"
#define DESCR_PER_BLOCK _AC(16, U)
#ifndef __ASSEMBLER__
#include "boot/boot_defs.h"
#include "libc.h"
#include "boot/s390.h"
#include "cio.h"
#include "error.h"
typedef union {
struct eckd_blockptr eckd;
struct linear_blockptr linear;
} disk_blockptr_t;
struct stage2_descr {
uint8_t reserved[16];
} __packed __aligned(8);
void *load_direct(disk_blockptr_t *, struct subchannel_id , void *);
int extract_length(void *);
int is_zero_block(void *);
void kdump_stage2(unsigned long);
#endif /* __ASSEMBLER__ */
#endif /* COMMON_H */