linux/drivers/usb/host/xhci-pci-renesas.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2019-2020 Linaro Limited */

#include <linux/acpi.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <asm/unaligned.h>

#include "xhci.h"
#include "xhci-trace.h"
#include "xhci-pci.h"

#define RENESAS_FW_VERSION
#define RENESAS_ROM_CONFIG
#define RENESAS_FW_STATUS
#define RENESAS_FW_STATUS_MSB
#define RENESAS_ROM_STATUS
#define RENESAS_ROM_STATUS_MSB
#define RENESAS_DATA0
#define RENESAS_DATA1

#define RENESAS_FW_VERSION_FIELD
#define RENESAS_FW_VERSION_OFFSET

#define RENESAS_FW_STATUS_DOWNLOAD_ENABLE
#define RENESAS_FW_STATUS_LOCK
#define RENESAS_FW_STATUS_RESULT
  #define RENESAS_FW_STATUS_INVALID
  #define RENESAS_FW_STATUS_SUCCESS
  #define RENESAS_FW_STATUS_ERROR
#define RENESAS_FW_STATUS_SET_DATA0
#define RENESAS_FW_STATUS_SET_DATA1

#define RENESAS_ROM_STATUS_ACCESS
#define RENESAS_ROM_STATUS_ERASE
#define RENESAS_ROM_STATUS_RELOAD
#define RENESAS_ROM_STATUS_RESULT
  #define RENESAS_ROM_STATUS_NO_RESULT
  #define RENESAS_ROM_STATUS_SUCCESS
  #define RENESAS_ROM_STATUS_ERROR
#define RENESAS_ROM_STATUS_SET_DATA0
#define RENESAS_ROM_STATUS_SET_DATA1
#define RENESAS_ROM_STATUS_ROM_EXISTS

#define RENESAS_ROM_ERASE_MAGIC
#define RENESAS_ROM_WRITE_MAGIC

#define RENESAS_RETRY
#define RENESAS_DELAY

static int renesas_fw_download_image(struct pci_dev *dev,
				     const u32 *fw, size_t step, bool rom)
{}

static int renesas_fw_verify(const void *fw_data,
			     size_t length)
{}

static bool renesas_check_rom(struct pci_dev *pdev)
{}

static int renesas_check_rom_state(struct pci_dev *pdev)
{}

static int renesas_fw_check_running(struct pci_dev *pdev)
{}

static int renesas_fw_download(struct pci_dev *pdev,
			       const struct firmware *fw)
{}

static void renesas_rom_erase(struct pci_dev *pdev)
{}

static bool renesas_setup_rom(struct pci_dev *pdev, const struct firmware *fw)
{}

static int renesas_load_fw(struct pci_dev *pdev, const struct firmware *fw)
{}

int renesas_xhci_check_request_fw(struct pci_dev *pdev,
				  const struct pci_device_id *id)
{}
EXPORT_SYMBOL_GPL();

MODULE_DESCRIPTION();
MODULE_LICENSE();