linux/sound/soc/sof/intel/bdw.c

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
//
// This file is provided under a dual BSD/GPLv2 license.  When using or
// redistributing this file, you may do so under either license.
//
// Copyright(c) 2018 Intel Corporation
//
// Author: Liam Girdwood <[email protected]>
//

/*
 * Hardware interface for audio DSP on Broadwell
 */

#include <linux/module.h>
#include <sound/sof.h>
#include <sound/sof/xtensa.h>
#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
#include <sound/intel-dsp-config.h>
#include "../ops.h"
#include "shim.h"
#include "../sof-acpi-dev.h"
#include "../sof-audio.h"

/* BARs */
#define BDW_DSP_BAR
#define BDW_PCI_BAR

/*
 * Debug
 */

/* DSP memories for BDW */
#define IRAM_OFFSET
#define BDW_IRAM_SIZE
#define DRAM_OFFSET
#define BDW_DRAM_SIZE
#define SHIM_OFFSET
#define SHIM_SIZE
#define MBOX_OFFSET
#define MBOX_SIZE
#define MBOX_DUMP_SIZE
#define EXCEPT_OFFSET
#define EXCEPT_MAX_HDR_SIZE

/* DSP peripherals */
#define DMAC0_OFFSET
#define DMAC1_OFFSET
#define DMAC_SIZE
#define SSP0_OFFSET
#define SSP1_OFFSET
#define SSP_SIZE

#define BDW_STACK_DUMP_SIZE

#define BDW_PANIC_OFFSET(x)

static const struct snd_sof_debugfs_map bdw_debugfs[] =;

static void bdw_host_done(struct snd_sof_dev *sdev);
static void bdw_dsp_done(struct snd_sof_dev *sdev);

/*
 * DSP Control.
 */

static int bdw_run(struct snd_sof_dev *sdev)
{}

static int bdw_reset(struct snd_sof_dev *sdev)
{}

static int bdw_set_dsp_D0(struct snd_sof_dev *sdev)
{}

static void bdw_get_registers(struct snd_sof_dev *sdev,
			      struct sof_ipc_dsp_oops_xtensa *xoops,
			      struct sof_ipc_panic_info *panic_info,
			      u32 *stack, size_t stack_words)
{}

static void bdw_dump(struct snd_sof_dev *sdev, u32 flags)
{}

/*
 * IPC Doorbell IRQ handler and thread.
 */

static irqreturn_t bdw_irq_handler(int irq, void *context)
{}

static irqreturn_t bdw_irq_thread(int irq, void *context)
{}

/*
 * IPC Mailbox IO
 */

static int bdw_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
{}

static int bdw_get_mailbox_offset(struct snd_sof_dev *sdev)
{}

static int bdw_get_window_offset(struct snd_sof_dev *sdev, u32 id)
{}

static void bdw_host_done(struct snd_sof_dev *sdev)
{}

static void bdw_dsp_done(struct snd_sof_dev *sdev)
{}

/*
 * Probe and remove.
 */
static int bdw_probe(struct snd_sof_dev *sdev)
{}

static struct snd_soc_acpi_mach *bdw_machine_select(struct snd_sof_dev *sdev)
{}

static void bdw_set_mach_params(struct snd_soc_acpi_mach *mach,
				struct snd_sof_dev *sdev)
{}

/* Broadwell DAIs */
static struct snd_soc_dai_driver bdw_dai[] =;

/* broadwell ops */
static const struct snd_sof_dsp_ops sof_bdw_ops =;

static const struct sof_intel_dsp_desc bdw_chip_info =;

static const struct sof_dev_desc sof_acpi_broadwell_desc =;

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

static int sof_broadwell_probe(struct platform_device *pdev)
{}

/* acpi_driver definition */
static struct platform_driver snd_sof_acpi_intel_bdw_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_IMPORT_NS();
MODULE_IMPORT_NS();
MODULE_IMPORT_NS();