#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <linux/slab.h>
#include <linux/types.h>
#define BITS_PER_REG …
struct meson_reset_param { … };
struct meson_reset { … };
static int meson_reset_reset(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int meson_reset_level(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int meson_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int meson_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops meson_reset_ops = …;
static const struct meson_reset_param meson8b_param = …;
static const struct meson_reset_param meson_a1_param = …;
static const struct meson_reset_param meson_s4_param = …;
static const struct of_device_id meson_reset_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, meson_reset_dt_ids);
static int meson_reset_probe(struct platform_device *pdev)
{ … }
static struct platform_driver meson_reset_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;