linux/drivers/char/ipmi/ipmi_dmi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * A hack to create a platform device from a DMI entry.  This will
 * allow autoloading of the IPMI drive based on SMBIOS entries.
 */

#define pr_fmt(fmt)
#define dev_fmt

#include <linux/ipmi.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include "ipmi_dmi.h"
#include "ipmi_plat_data.h"

#define IPMI_DMI_TYPE_KCS
#define IPMI_DMI_TYPE_SMIC
#define IPMI_DMI_TYPE_BT
#define IPMI_DMI_TYPE_SSIF

struct ipmi_dmi_info {};

static struct ipmi_dmi_info *ipmi_dmi_infos;

static int ipmi_dmi_nr __initdata;

static void __init dmi_add_platform_ipmi(unsigned long base_addr,
					 unsigned int space,
					 u8 slave_addr,
					 int irq,
					 int offset,
					 int type)
{}

/*
 * Look up the slave address for a given interface.  This is here
 * because ACPI doesn't have a slave address while SMBIOS does, but we
 * prefer using ACPI so the ACPI code can use the IPMI namespace.
 * This function allows an ACPI-specified IPMI device to look up the
 * slave address from the DMI table.
 */
int ipmi_dmi_get_slave_addr(enum si_type si_type, unsigned int space,
			    unsigned long base_addr)
{}
EXPORT_SYMBOL();

#define DMI_IPMI_MIN_LENGTH
#define DMI_IPMI_VER2_LENGTH
#define DMI_IPMI_TYPE
#define DMI_IPMI_SLAVEADDR
#define DMI_IPMI_ADDR
#define DMI_IPMI_ACCESS
#define DMI_IPMI_IRQ
#define DMI_IPMI_IO_MASK

static void __init dmi_decode_ipmi(const struct dmi_header *dm)
{}

static int __init scan_for_dmi_ipmi(void)
{}
subsys_initcall(scan_for_dmi_ipmi);