linux/sound/soc/sof/iomem-utils.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-2022 Intel Corporation
//
// Author: Keyon Jie <[email protected]>
//

#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/platform_device.h>
#include <asm/unaligned.h>
#include <sound/soc.h>
#include <sound/sof.h>
#include "sof-priv.h"
#include "ops.h"

/*
 * Register IO
 *
 * The sof_io_xyz() wrappers are typically referenced in snd_sof_dsp_ops
 * structures and cannot be inlined.
 */

void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value)
{}
EXPORT_SYMBOL();

u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr)
{}
EXPORT_SYMBOL();

void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value)
{}
EXPORT_SYMBOL();

u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr)
{}
EXPORT_SYMBOL();

/*
 * IPC Mailbox IO
 */

void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
		       void *message, size_t bytes)
{}
EXPORT_SYMBOL();

void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
		      void *message, size_t bytes)
{}
EXPORT_SYMBOL();

/*
 * Memory copy.
 */

int sof_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
		    u32 offset, void *src, size_t size)
{}
EXPORT_SYMBOL();

int sof_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
		   u32 offset, void *dest, size_t size)
{}
EXPORT_SYMBOL();