#include <linux/bitmap.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/reset-controller.h>
#include <linux/spinlock.h>
#include "reset-starfive-jh71x0.h"
struct jh71x0_reset { … };
static inline struct jh71x0_reset *
jh71x0_reset_from(struct reset_controller_dev *rcdev)
{ … }
static int jh71x0_reset_update(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int jh71x0_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int jh71x0_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int jh71x0_reset_reset(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int jh71x0_reset_status(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops jh71x0_reset_ops = …;
int reset_starfive_jh71x0_register(struct device *dev, struct device_node *of_node,
void __iomem *assert, void __iomem *status,
const u32 *asserted, unsigned int nr_resets,
struct module *owner)
{ … }
EXPORT_SYMBOL_GPL(…);