mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
8058921f58
include/boot/s390.h relies on s390 specific kernel headers. However, some tools used this header for non-s390 code (outside of boot-loaders). To solve this the PSW and PAGE_SIZE definitions are now in separate header files. All includes for s390.h which are not in boot-loader code are replaced with one of psw.h or page.h. This fixes the compilation failure on ppc64le due to conflicting types for `__vector128`. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/151 Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* PV components related definitions and functions
|
|
*
|
|
* Copyright IBM Corp. 2020
|
|
*
|
|
* 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 PV_COMPS_H
|
|
#define PV_COMPS_H
|
|
|
|
#include <glib.h>
|
|
#include <openssl/evp.h>
|
|
#include <stdint.h>
|
|
|
|
#include "boot/psw.h"
|
|
#include "boot/stage3b.h"
|
|
#include "utils/buffer.h"
|
|
|
|
#include "pv_comp.h"
|
|
|
|
typedef struct _pv_img_comps PvImgComps;
|
|
|
|
PvImgComps *pv_img_comps_new(const EVP_MD *ald_md, const EVP_MD *pld_md,
|
|
const EVP_MD *tld_md, GError **err);
|
|
guint pv_img_comps_length(const PvImgComps *comps);
|
|
GSList *pv_img_comps_get_comps(const PvImgComps *comps);
|
|
struct stage3b_args *pv_img_comps_get_stage3b_args(const PvImgComps *comps,
|
|
struct psw_t *psw);
|
|
gint pv_img_comps_add_component(PvImgComps *comps, PvComponent **comp,
|
|
GError **err);
|
|
PvComponent *pv_img_comps_get_nth_comp(PvImgComps *comps, guint n);
|
|
gint pv_img_comps_set_offset(PvImgComps *comps, gsize offset, GError **err);
|
|
gint pv_img_comps_finalize(PvImgComps *comps, PvBuffer **pld_digest,
|
|
PvBuffer **ald_digest, PvBuffer **tld_digest,
|
|
uint64_t *nep, GError **err);
|
|
void pv_img_comps_free(PvImgComps *comps);
|
|
|
|
WRAPPED_G_DEFINE_AUTOPTR_CLEANUP_FUNC(PvImgComps, pv_img_comps_free)
|
|
|
|
#endif
|