linux/drivers/gpio/gpio-rcar.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas R-Car GPIO Support
 *
 *  Copyright (C) 2014 Renesas Electronics Corporation
 *  Copyright (C) 2013 Magnus Damm
 */

#include <linux/err.h>
#include <linux/gpio/driver.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pinctrl/consumer.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/spinlock.h>
#include <linux/slab.h>

struct gpio_rcar_bank_info {};

struct gpio_rcar_info {};

struct gpio_rcar_priv {};

#define IOINTSEL
#define INOUTSEL
#define OUTDT
#define INDT
#define INTDT
#define INTCLR
#define INTMSK
#define MSKCLR
#define POSNEG
#define EDGLEVEL
#define FILONOFF
#define OUTDTSEL
#define BOTHEDGE
#define INEN

#define RCAR_MAX_GPIO_PER_BANK

static inline u32 gpio_rcar_read(struct gpio_rcar_priv *p, int offs)
{}

static inline void gpio_rcar_write(struct gpio_rcar_priv *p, int offs,
				   u32 value)
{}

static void gpio_rcar_modify_bit(struct gpio_rcar_priv *p, int offs,
				 int bit, bool value)
{}

static void gpio_rcar_irq_disable(struct irq_data *d)
{}

static void gpio_rcar_irq_enable(struct irq_data *d)
{}

static void gpio_rcar_config_interrupt_input_mode(struct gpio_rcar_priv *p,
						  unsigned int hwirq,
						  bool active_high_rising_edge,
						  bool level_trigger,
						  bool both)
{}

static int gpio_rcar_irq_set_type(struct irq_data *d, unsigned int type)
{}

static int gpio_rcar_irq_set_wake(struct irq_data *d, unsigned int on)
{}

static const struct irq_chip gpio_rcar_irq_chip =;

static irqreturn_t gpio_rcar_irq_handler(int irq, void *dev_id)
{}

static void gpio_rcar_config_general_input_output_mode(struct gpio_chip *chip,
						       unsigned int gpio,
						       bool output)
{}

static int gpio_rcar_request(struct gpio_chip *chip, unsigned offset)
{}

static void gpio_rcar_free(struct gpio_chip *chip, unsigned offset)
{}

static int gpio_rcar_get_direction(struct gpio_chip *chip, unsigned int offset)
{}

static int gpio_rcar_direction_input(struct gpio_chip *chip, unsigned offset)
{}

static int gpio_rcar_get(struct gpio_chip *chip, unsigned offset)
{}

static int gpio_rcar_get_multiple(struct gpio_chip *chip, unsigned long *mask,
				  unsigned long *bits)
{}

static void gpio_rcar_set(struct gpio_chip *chip, unsigned offset, int value)
{}

static void gpio_rcar_set_multiple(struct gpio_chip *chip, unsigned long *mask,
				   unsigned long *bits)
{}

static int gpio_rcar_direction_output(struct gpio_chip *chip, unsigned offset,
				      int value)
{}

static const struct gpio_rcar_info gpio_rcar_info_gen1 =;

static const struct gpio_rcar_info gpio_rcar_info_gen2 =;

static const struct gpio_rcar_info gpio_rcar_info_gen3 =;

static const struct gpio_rcar_info gpio_rcar_info_gen4 =;

static const struct of_device_id gpio_rcar_of_table[] =;

MODULE_DEVICE_TABLE(of, gpio_rcar_of_table);

static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins)
{}

static void gpio_rcar_enable_inputs(struct gpio_rcar_priv *p)
{}

static int gpio_rcar_probe(struct platform_device *pdev)
{}

static void gpio_rcar_remove(struct platform_device *pdev)
{}

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

static int gpio_rcar_resume(struct device *dev)
{}
#endif /* CONFIG_PM_SLEEP*/

static SIMPLE_DEV_PM_OPS(gpio_rcar_pm_ops, gpio_rcar_suspend, gpio_rcar_resume);

static struct platform_driver gpio_rcar_device_driver =;

module_platform_driver();

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