linux/drivers/acpi/pci_slot.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  pci_slot.c - ACPI PCI Slot Driver
 *
 *  The code here is heavily leveraged from the acpiphp module.
 *  Thanks to Matthew Wilcox <[email protected]> for much guidance.
 *  Thanks to Kenji Kaneshige <[email protected]> for code
 *  review and fixes.
 *
 *  Copyright (C) 2007-2008 Hewlett-Packard Development Company, L.P.
 *  	Alex Chiang <[email protected]>
 *
 *  Copyright (C) 2013 Huawei Tech. Co., Ltd.
 *	Jiang Liu <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/dmi.h>
#include <linux/pci-acpi.h>

static int check_sta_before_sun;

#define SLOT_NAME_SIZE

struct acpi_pci_slot {};

static LIST_HEAD(slot_list);
static DEFINE_MUTEX(slot_list_lock);

static int
check_slot(acpi_handle handle, unsigned long long *sun)
{}

/*
 * Check whether handle has an associated slot and create PCI slot if it has.
 */
static acpi_status
register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
{}

void acpi_pci_slot_enumerate(struct pci_bus *bus)
{}

void acpi_pci_slot_remove(struct pci_bus *bus)
{}

static int do_sta_before_sun(const struct dmi_system_id *d)
{}

static const struct dmi_system_id acpi_pci_slot_dmi_table[] __initconst =;

void __init acpi_pci_slot_init(void)
{}