linux/sound/soc/sof/intel/atom.h

/* 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) 2017-2021 Intel Corporation
 *
 * Author: Liam Girdwood <[email protected]>
 */

#ifndef __SOF_INTEL_ATOM_H
#define __SOF_INTEL_ATOM_H

/* DSP memories */
#define IRAM_OFFSET
#define IRAM_SIZE
#define DRAM_OFFSET
#define DRAM_SIZE
#define SHIM_OFFSET
#define SHIM_SIZE_BYT
#define SHIM_SIZE_CHT
#define MBOX_OFFSET
#define MBOX_SIZE
#define EXCEPT_OFFSET
#define EXCEPT_MAX_HDR_SIZE

/* DSP peripherals */
#define DMAC0_OFFSET
#define DMAC1_OFFSET
#define DMAC2_OFFSET
#define DMAC_SIZE
#define SSP0_OFFSET
#define SSP1_OFFSET
#define SSP2_OFFSET
#define SSP3_OFFSET
#define SSP4_OFFSET
#define SSP5_OFFSET
#define SSP_SIZE

#define STACK_DUMP_SIZE

#define PCI_BAR_SIZE

#define PANIC_OFFSET(x)

/*
 * Debug
 */

#define MBOX_DUMP_SIZE

/* BARs */
#define DSP_BAR
#define PCI_BAR
#define IMR_BAR

irqreturn_t atom_irq_handler(int irq, void *context);
irqreturn_t atom_irq_thread(int irq, void *context);

int atom_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
int atom_get_mailbox_offset(struct snd_sof_dev *sdev);
int atom_get_window_offset(struct snd_sof_dev *sdev, u32 id);

int atom_run(struct snd_sof_dev *sdev);
int atom_reset(struct snd_sof_dev *sdev);
void atom_dump(struct snd_sof_dev *sdev, u32 flags);

struct snd_soc_acpi_mach *atom_machine_select(struct snd_sof_dev *sdev);
void atom_set_mach_params(struct snd_soc_acpi_mach *mach,
			  struct snd_sof_dev *sdev);

extern struct snd_soc_dai_driver atom_dai[];

#endif