linux/drivers/acpi/apei/einj-cxl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * CXL Error INJection support. Used by CXL core to inject
 * protocol errors into CXL ports.
 *
 * Copyright (C) 2023 Advanced Micro Devices, Inc.
 *
 * Author: Ben Cheatham <[email protected]>
 */
#include <linux/seq_file.h>
#include <linux/pci.h>
#include <cxl/einj.h>

#include "apei-internal.h"

/* Defined in einj-core.c */
extern bool einj_initialized;

static struct {} const einj_cxl_error_type_string[] =;

int einj_cxl_available_error_type_show(struct seq_file *m, void *v)
{}
EXPORT_SYMBOL_NS_GPL();

static int cxl_dport_get_sbdf(struct pci_dev *dport_dev, u64 *sbdf)
{}

int einj_cxl_inject_rch_error(u64 rcrb, u64 type)
{}
EXPORT_SYMBOL_NS_GPL();

int einj_cxl_inject_error(struct pci_dev *dport, u64 type)
{}
EXPORT_SYMBOL_NS_GPL();

bool einj_cxl_is_initialized(void)
{}
EXPORT_SYMBOL_NS_GPL();