linux/drivers/mmc/core/bus.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/drivers/mmc/core/bus.c
 *
 *  Copyright (C) 2003 Russell King, All Rights Reserved.
 *  Copyright (C) 2007 Pierre Ossman
 *
 *  MMC card bus driver model
 */

#include <linux/export.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/of.h>
#include <linux/pm_runtime.h>
#include <linux/sysfs.h>

#include <linux/mmc/card.h>
#include <linux/mmc/host.h>

#include "core.h"
#include "card.h"
#include "host.h"
#include "sdio_cis.h"
#include "bus.h"

#define to_mmc_driver(d)

static ssize_t type_show(struct device *dev,
	struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(type);

static struct attribute *mmc_dev_attrs[] =;
ATTRIBUTE_GROUPS();

static int
mmc_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
{}

static int mmc_bus_probe(struct device *dev)
{}

static void mmc_bus_remove(struct device *dev)
{}

static void mmc_bus_shutdown(struct device *dev)
{}

#ifdef CONFIG_PM_SLEEP
static int mmc_bus_suspend(struct device *dev)
{}

static int mmc_bus_resume(struct device *dev)
{}
#endif

#ifdef CONFIG_PM
static int mmc_runtime_suspend(struct device *dev)
{}

static int mmc_runtime_resume(struct device *dev)
{}
#endif /* !CONFIG_PM */

static const struct dev_pm_ops mmc_bus_pm_ops =;

static const struct bus_type mmc_bus_type =;

int mmc_register_bus(void)
{}

void mmc_unregister_bus(void)
{}

/**
 *	mmc_register_driver - register a media driver
 *	@drv: MMC media driver
 */
int mmc_register_driver(struct mmc_driver *drv)
{}

EXPORT_SYMBOL();

/**
 *	mmc_unregister_driver - unregister a media driver
 *	@drv: MMC media driver
 */
void mmc_unregister_driver(struct mmc_driver *drv)
{}

EXPORT_SYMBOL();

static void mmc_release_card(struct device *dev)
{}

/*
 * Allocate and initialise a new MMC card structure.
 */
struct mmc_card *mmc_alloc_card(struct mmc_host *host, const struct device_type *type)
{}

/*
 * Register a new MMC card with the driver model.
 */
int mmc_add_card(struct mmc_card *card)
{}

/*
 * Unregister a new MMC card with the driver model, and
 * (eventually) free it.
 */
void mmc_remove_card(struct mmc_card *card)
{}