linux/drivers/usb/misc/qcom_eud.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/usb/role.h>

#define EUD_REG_INT1_EN_MASK
#define EUD_REG_INT_STATUS_1
#define EUD_REG_CTL_OUT_1
#define EUD_REG_VBUS_INT_CLR
#define EUD_REG_CSR_EUD_EN
#define EUD_REG_SW_ATTACH_DET
#define EUD_REG_EUD_EN2

#define EUD_ENABLE
#define EUD_INT_PET_EUD
#define EUD_INT_VBUS
#define EUD_INT_SAFE_MODE
#define EUD_INT_ALL

struct eud_chip {};

static int enable_eud(struct eud_chip *priv)
{}

static void disable_eud(struct eud_chip *priv)
{}

static ssize_t enable_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}

static ssize_t enable_store(struct device *dev,
		struct device_attribute *attr,
		const char *buf, size_t count)
{}

static DEVICE_ATTR_RW(enable);

static struct attribute *eud_attrs[] =;
ATTRIBUTE_GROUPS();

static void usb_attach_detach(struct eud_chip *chip)
{}

static void pet_eud(struct eud_chip *chip)
{}

static irqreturn_t handle_eud_irq(int irq, void *data)
{}

static irqreturn_t handle_eud_irq_thread(int irq, void *data)
{}

static void eud_role_switch_release(void *data)
{}

static int eud_probe(struct platform_device *pdev)
{}

static void eud_remove(struct platform_device *pdev)
{}

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

static struct platform_driver eud_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();