linux/drivers/dma/stm32/stm32-dmamux.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *
 * Copyright (C) STMicroelectronics SA 2017
 * Author(s): M'boumba Cedric Madianga <[email protected]>
 *            Pierre-Yves Mordret <[email protected]>
 *
 * DMA Router driver for STM32 DMA MUX
 *
 * Based on TI DMA Crossbar driver
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_dma.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

#define STM32_DMAMUX_CCR(x)
#define STM32_DMAMUX_MAX_DMA_REQUESTS
#define STM32_DMAMUX_MAX_REQUESTS

struct stm32_dmamux {};

struct stm32_dmamux_data {};

static inline u32 stm32_dmamux_read(void __iomem *iomem, u32 reg)
{}

static inline void stm32_dmamux_write(void __iomem *iomem, u32 reg, u32 val)
{}

static void stm32_dmamux_free(struct device *dev, void *route_data)
{}

static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec,
					 struct of_dma *ofdma)
{}

static const struct of_device_id stm32_stm32dma_master_match[] __maybe_unused =;

static int stm32_dmamux_probe(struct platform_device *pdev)
{}

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

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

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

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

static const struct dev_pm_ops stm32_dmamux_pm_ops =;

static const struct of_device_id stm32_dmamux_match[] =;

static struct platform_driver stm32_dmamux_driver =;

static int __init stm32_dmamux_init(void)
{}
arch_initcall(stm32_dmamux_init);

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_AUTHOR();