linux/drivers/usb/host/xhci-histb.c

// SPDX-License-Identifier: GPL-2.0
/*
 * xHCI host controller driver for HiSilicon STB SoCs
 *
 * Copyright (C) 2017-2018 HiSilicon Co., Ltd. http://www.hisilicon.com
 *
 * Authors: Jianguo Sun <[email protected]>
 */

#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>

#include "xhci.h"

#define GTXTHRCFG
#define GRXTHRCFG
#define REG_GUSB2PHYCFG0
#define BIT_UTMI_8_16
#define BIT_UTMI_ULPI
#define BIT_FREECLK_EXIST

#define REG_GUSB3PIPECTL0
#define USB3_DEEMPHASIS_MASK
#define USB3_DEEMPHASIS0
#define USB3_TX_MARGIN1

struct xhci_hcd_histb {};

static inline struct xhci_hcd_histb *hcd_to_histb(struct usb_hcd *hcd)
{}

static int xhci_histb_config(struct xhci_hcd_histb *histb)
{}

static int xhci_histb_clks_get(struct xhci_hcd_histb *histb)
{}

static int xhci_histb_host_enable(struct xhci_hcd_histb *histb)
{}

static void xhci_histb_host_disable(struct xhci_hcd_histb *histb)
{}

/* called during probe() after chip reset completes */
static int xhci_histb_setup(struct usb_hcd *hcd)
{}

static const struct xhci_driver_overrides xhci_histb_overrides __initconst =;

static struct hc_driver __read_mostly xhci_histb_hc_driver;
static int xhci_histb_probe(struct platform_device *pdev)
{}

static void xhci_histb_remove(struct platform_device *dev)
{}

static int __maybe_unused xhci_histb_suspend(struct device *dev)
{}

static int __maybe_unused xhci_histb_resume(struct device *dev)
{}

static const struct dev_pm_ops xhci_histb_pm_ops =;
#define DEV_PM_OPS

#ifdef CONFIG_OF
static const struct of_device_id histb_xhci_of_match[] =;
MODULE_DEVICE_TABLE(of, histb_xhci_of_match);
#endif

static struct platform_driver histb_xhci_driver =;
MODULE_ALIAS();

static int __init xhci_histb_init(void)
{}
module_init();

static void __exit xhci_histb_exit(void)
{}
module_exit(xhci_histb_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();