linux/drivers/gpio/gpio-amdpt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Promontory GPIO driver
 *
 * Copyright (C) 2015 ASMedia Technology Inc.
 * Author: YD Tseng <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/gpio/driver.h>
#include <linux/spinlock.h>
#include <linux/acpi.h>
#include <linux/platform_device.h>

#define PT_TOTAL_GPIO
#define PT_TOTAL_GPIO_EX

/* PCI-E MMIO register offsets */
#define PT_DIRECTION_REG
#define PT_INPUTDATA_REG
#define PT_OUTPUTDATA_REG
#define PT_CLOCKRATE_REG
#define PT_SYNC_REG

struct pt_gpio_chip {};

static int pt_gpio_request(struct gpio_chip *gc, unsigned offset)
{}

static void pt_gpio_free(struct gpio_chip *gc, unsigned offset)
{}

static int pt_gpio_probe(struct platform_device *pdev)
{}

static void pt_gpio_remove(struct platform_device *pdev)
{}

static const struct acpi_device_id pt_gpio_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, pt_gpio_acpi_match);

static struct platform_driver pt_gpio_driver =;

module_platform_driver();

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