linux/drivers/soc/apple/rtkit-crashlog.c

// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
 * Apple RTKit IPC library
 * Copyright (C) The Asahi Linux Contributors
 */
#include "rtkit-internal.h"

#define FOURCC(a, b, c, d)

#define APPLE_RTKIT_CRASHLOG_HEADER
#define APPLE_RTKIT_CRASHLOG_STR
#define APPLE_RTKIT_CRASHLOG_VERSION
#define APPLE_RTKIT_CRASHLOG_MBOX
#define APPLE_RTKIT_CRASHLOG_TIME
#define APPLE_RTKIT_CRASHLOG_REGS

/* For COMPILE_TEST on non-ARM64 architectures */
#ifndef PSR_MODE_EL0t
#define PSR_MODE_EL0t
#define PSR_MODE_EL1t
#define PSR_MODE_EL1h
#define PSR_MODE_EL2t
#define PSR_MODE_EL2h
#define PSR_MODE_MASK
#endif

struct apple_rtkit_crashlog_header {};
static_assert();

struct apple_rtkit_crashlog_mbox_entry {};
static_assert();

struct apple_rtkit_crashlog_regs {} __packed;
static_assert();

static void apple_rtkit_crashlog_dump_str(struct apple_rtkit *rtk, u8 *bfr,
					  size_t size)
{}

static void apple_rtkit_crashlog_dump_version(struct apple_rtkit *rtk, u8 *bfr,
					      size_t size)
{}

static void apple_rtkit_crashlog_dump_time(struct apple_rtkit *rtk, u8 *bfr,
					   size_t size)
{}

static void apple_rtkit_crashlog_dump_mailbox(struct apple_rtkit *rtk, u8 *bfr,
					      size_t size)
{}

static void apple_rtkit_crashlog_dump_regs(struct apple_rtkit *rtk, u8 *bfr,
					   size_t size)
{}

void apple_rtkit_crashlog_dump(struct apple_rtkit *rtk, u8 *bfr, size_t size)
{}