linux/drivers/gpio/gpio-raspberrypi-exp.c

// SPDX-License-Identifier: GPL-2.0+
/*
 *  Raspberry Pi 3 expander GPIO driver
 *
 *  Uses the firmware mailbox service to communicate with the
 *  GPIO expander on the VPU.
 *
 *  Copyright (C) 2017 Raspberry Pi Trading Ltd.
 */

#include <linux/err.h>
#include <linux/gpio/driver.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <soc/bcm2835/raspberrypi-firmware.h>

#define MODULE_NAME
#define NUM_GPIO

#define RPI_EXP_GPIO_BASE

#define RPI_EXP_GPIO_DIR_IN
#define RPI_EXP_GPIO_DIR_OUT

struct rpi_exp_gpio {};

/* VC4 firmware mailbox interface data structures */

struct gpio_set_config {};

struct gpio_get_config {};

struct gpio_get_set_state {};

static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off)
{}

static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off)
{}

static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val)
{}

static int rpi_exp_gpio_get_direction(struct gpio_chip *gc, unsigned int off)
{}

static int rpi_exp_gpio_get(struct gpio_chip *gc, unsigned int off)
{}

static void rpi_exp_gpio_set(struct gpio_chip *gc, unsigned int off, int val)
{}

static int rpi_exp_gpio_probe(struct platform_device *pdev)
{}

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

static struct platform_driver rpi_exp_gpio_driver =;
module_platform_driver();

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