linux/drivers/gpio/gpio-visconti.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Toshiba Visconti GPIO Support
 *
 * (C) Copyright 2020 Toshiba Electronic Devices & Storage Corporation
 * (C) Copyright 2020 TOSHIBA CORPORATION
 *
 * Nobuhiro Iwamatsu <[email protected]>
 */

#include <linux/gpio/driver.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/of_irq.h>
#include <linux/platform_device.h>
#include <linux/seq_file.h>
#include <linux/bitops.h>

/* register offset */
#define GPIO_DIR
#define GPIO_IDATA
#define GPIO_ODATA
#define GPIO_OSET
#define GPIO_OCLR
#define GPIO_INTMODE

#define BASE_HW_IRQ

struct visconti_gpio {};

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

static int visconti_gpio_child_to_parent_hwirq(struct gpio_chip *gc,
					       unsigned int child,
					       unsigned int child_type,
					       unsigned int *parent,
					       unsigned int *parent_type)
{}

static int visconti_gpio_populate_parent_fwspec(struct gpio_chip *chip,
						union gpio_irq_fwspec *gfwspec,
						unsigned int parent_hwirq,
						unsigned int parent_type)
{}

static void visconti_gpio_mask_irq(struct irq_data *d)
{}

static void visconti_gpio_unmask_irq(struct irq_data *d)
{}

static void visconti_gpio_irq_print_chip(struct irq_data *d, struct seq_file *p)
{}

static const struct irq_chip visconti_gpio_irq_chip =;

static int visconti_gpio_probe(struct platform_device *pdev)
{}

static const struct of_device_id visconti_gpio_of_match[] =;
MODULE_DEVICE_TABLE(of, visconti_gpio_of_match);

static struct platform_driver visconti_gpio_driver =;
module_platform_driver();

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