linux/drivers/usb/dwc2/params.c

// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
 * Copyright (C) 2004-2016 Synopsys, Inc.
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/usb/of.h>
#include <linux/pci_ids.h>
#include <linux/pci.h>

#include "core.h"

#define PCI_PRODUCT_ID_HAPS_HSOTG
#define PCI_DEVICE_ID_LOONGSON_DWC2

static void dwc2_set_bcm_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_his_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_jz4775_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_loongson_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_x1600_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_x2000_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_ltq_danube_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_ltq_ase_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_ltq_xrx200_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_amlogic_g12a_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_amlogic_a1_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_cv1800_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_stm32f7_hsotg_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_stm32mp15_fsotg_params(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_stm32mp15_hsotg_params(struct dwc2_hsotg *hsotg)
{}

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

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

const struct pci_device_id dwc2_pci_ids[] =;
MODULE_DEVICE_TABLE(pci, dwc2_pci_ids);
EXPORT_SYMBOL_GPL();

static void dwc2_set_param_otg_cap(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_phy_type(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_speed(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_power_down(struct dwc2_hsotg *hsotg)
{}

static void dwc2_set_param_lpm(struct dwc2_hsotg *hsotg)
{}

/**
 * dwc2_set_default_params() - Set all core parameters to their
 * auto-detected default values.
 *
 * @hsotg: Programming view of the DWC_otg controller
 *
 */
static void dwc2_set_default_params(struct dwc2_hsotg *hsotg)
{}

/**
 * dwc2_get_device_properties() - Read in device properties.
 *
 * @hsotg: Programming view of the DWC_otg controller
 *
 * Read in the device properties and adjust core parameters if needed.
 */
static void dwc2_get_device_properties(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_otg_cap(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_phy_type(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_speed(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_phy_utmi_width(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_power_down(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg)
{}

static void dwc2_check_param_eusb2_disc(struct dwc2_hsotg *hsotg)
{}

#define CHECK_RANGE(_param, _min, _max, _def)

#define CHECK_BOOL(_param, _check)

static void dwc2_check_params(struct dwc2_hsotg *hsotg)
{}

/*
 * Gets host hardware parameters. Forces host mode if not currently in
 * host mode. Should be called immediately after a core soft reset in
 * order to get the reset values.
 */
static void dwc2_get_host_hwparams(struct dwc2_hsotg *hsotg)
{}

/*
 * Gets device hardware parameters. Forces device mode if not
 * currently in device mode. Should be called immediately after a core
 * soft reset in order to get the reset values.
 */
static void dwc2_get_dev_hwparams(struct dwc2_hsotg *hsotg)
{}

/**
 * dwc2_get_hwparams() - During device initialization, read various hardware
 *                       configuration registers and interpret the contents.
 *
 * @hsotg: Programming view of the DWC_otg controller
 *
 */
int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
{}

set_params_cb;

int dwc2_init_params(struct dwc2_hsotg *hsotg)
{}