#include <linux/irq.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#include <linux/platform_device.h>
#include <linux/mmc/sdio.h>
#include <linux/mmc/sdio_func.h>
#include <linux/mmc/sdio_ids.h>
#include <linux/mmc/card.h>
#include <linux/mmc/host.h>
#include <linux/pm_runtime.h>
#include <linux/printk.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include "wlcore.h"
#include "wl12xx_80211.h"
#include "io.h"
static bool dump;
struct wl12xx_sdio_glue { … };
static const struct sdio_device_id wl1271_devices[] = …;
MODULE_DEVICE_TABLE(sdio, wl1271_devices);
static void wl1271_sdio_set_block_size(struct device *child,
unsigned int blksz)
{ … }
static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr,
void *buf, size_t len, bool fixed)
{ … }
static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr,
void *buf, size_t len, bool fixed)
{ … }
static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue)
{ … }
static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue)
{ … }
static int wl12xx_sdio_set_power(struct device *child, bool enable)
{ … }
static struct wl1271_if_operations sdio_ops = …;
#ifdef CONFIG_OF
static const struct wilink_family_data wl127x_data = …;
static const struct wilink_family_data wl128x_data = …;
static const struct wilink_family_data wl18xx_data = …;
static const struct of_device_id wlcore_sdio_of_match_table[] = …;
static int wlcore_probe_of(struct device *dev, int *irq, int *wakeirq,
struct wlcore_platdev_data *pdev_data)
{ … }
#else
static int wlcore_probe_of(struct device *dev, int *irq, int *wakeirq,
struct wlcore_platdev_data *pdev_data)
{
return -ENODATA;
}
#endif
static int wl1271_probe(struct sdio_func *func,
const struct sdio_device_id *id)
{ … }
static void wl1271_remove(struct sdio_func *func)
{ … }
#ifdef CONFIG_PM
static int wl1271_suspend(struct device *dev)
{ … }
static int wl1271_resume(struct device *dev)
{ … }
static const struct dev_pm_ops wl1271_sdio_pm_ops = …;
#endif
static struct sdio_driver wl1271_sdio_driver = …;
module_sdio_driver(…) …;
module_param(dump, bool, 0600);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;