linux/sound/soc/intel/common/sst-dsp.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Intel Smart Sound Technology (SST) DSP Core Driver
 *
 * Copyright (C) 2013, Intel Corporation
 */

#include <linux/slab.h>
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/delay.h>

#include "sst-dsp.h"
#include "sst-dsp-priv.h"

#define CREATE_TRACE_POINTS
#include <trace/events/intel-sst.h>

/* Internal generic low-level SST IO functions - can be overidden */
void sst_shim32_write(void __iomem *addr, u32 offset, u32 value)
{}
EXPORT_SYMBOL_GPL();

u32 sst_shim32_read(void __iomem *addr, u32 offset)
{}
EXPORT_SYMBOL_GPL();

void sst_shim32_write64(void __iomem *addr, u32 offset, u64 value)
{}
EXPORT_SYMBOL_GPL();

u64 sst_shim32_read64(void __iomem *addr, u32 offset)
{}
EXPORT_SYMBOL_GPL();

/* Public API */
void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value)
{}
EXPORT_SYMBOL_GPL();

u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset)
{}
EXPORT_SYMBOL_GPL();

void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value)
{}
EXPORT_SYMBOL_GPL();

u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset)
{}
EXPORT_SYMBOL_GPL();

int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset,
				u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

/* This is for registers bits with attribute RWC */
void sst_dsp_shim_update_bits_forced_unlocked(struct sst_dsp *sst, u32 offset,
				u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset,
				u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

/* This is for registers bits with attribute RWC */
void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset,
				u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask,
			 u32 target, u32 time, char *operation)
{}
EXPORT_SYMBOL_GPL();

int sst_dsp_mailbox_init(struct sst_dsp *sst, u32 inbox_offset, size_t inbox_size,
	u32 outbox_offset, size_t outbox_size)
{}
EXPORT_SYMBOL_GPL();

void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes)
{}
EXPORT_SYMBOL_GPL();

void sst_dsp_outbox_read(struct sst_dsp *sst, void *message, size_t bytes)
{}
EXPORT_SYMBOL_GPL();

void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes)
{}
EXPORT_SYMBOL_GPL();

void sst_dsp_inbox_read(struct sst_dsp *sst, void *message, size_t bytes)
{}
EXPORT_SYMBOL_GPL();

/* Module information */
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();