mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Make the listed changes which are needed to re-use some definitions by the new zipl-debug(8) tool introduced by the next patch in the series: . Add definitions to boot_defs.h: . a named union disk_bloclkptr (instead of the anonymous one); . a named structure disk_program_table; . Remove a 'typedef union disk_blockptr_t' from boot/stage2.h (cleanup), use the named union in boot_defs.h instead; . Move the definition of scsi_layout types and the function get_scsi_layout() from install.c to install.h; . Move definition of PROGRAM_TABLE_BLOCK_SIZE from bootmap.c to bootmap.h Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
42 lines
815 B
C
42 lines
815 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"
|
|
|
|
struct stage2_descr {
|
|
uint8_t reserved[16];
|
|
} __packed __aligned(8);
|
|
|
|
void *load_direct(union disk_blockptr *data, struct subchannel_id sid,
|
|
void *load_addr);
|
|
int extract_length(void *);
|
|
int is_zero_block(void *);
|
|
void kdump_stage2(unsigned long);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* COMMON_H */
|