linux/sound/soc/amd/raven/acp3x.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * AMD ALSA SoC PCM Driver
 *
 * Copyright 2016 Advanced Micro Devices, Inc.
 */

#include "chip_offset_byte.h"
#include <sound/pcm.h>
#define I2S_SP_INSTANCE
#define I2S_BT_INSTANCE

#define TDM_ENABLE
#define TDM_DISABLE

#define ACP3x_DEVS
#define ACP3x_PHY_BASE_ADDRESS
#define ACP3x_I2S_MODE
#define ACP3x_REG_START
#define ACP3x_REG_END
#define ACP3x_I2STDM_REG_START
#define ACP3x_I2STDM_REG_END
#define ACP3x_BT_TDM_REG_START
#define ACP3x_BT_TDM_REG_END
#define I2S_MODE
#define I2S_RX_THRESHOLD
#define I2S_TX_THRESHOLD
#define BT_TX_THRESHOLD
#define BT_RX_THRESHOLD
#define ACP_ERR_INTR_MASK
#define ACP3x_POWER_ON
#define ACP3x_POWER_ON_IN_PROGRESS
#define ACP3x_POWER_OFF
#define ACP3x_POWER_OFF_IN_PROGRESS
#define ACP3x_SOFT_RESET__SoftResetAudDone_MASK

#define ACP_SRAM_PTE_OFFSET
#define ACP_SRAM_SP_PB_PTE_OFFSET
#define ACP_SRAM_SP_CP_PTE_OFFSET
#define ACP_SRAM_BT_PB_PTE_OFFSET
#define ACP_SRAM_BT_CP_PTE_OFFSET
#define PAGE_SIZE_4K_ENABLE
#define I2S_SP_TX_MEM_WINDOW_START
#define I2S_SP_RX_MEM_WINDOW_START
#define I2S_BT_TX_MEM_WINDOW_START
#define I2S_BT_RX_MEM_WINDOW_START

#define SP_PB_FIFO_ADDR_OFFSET
#define SP_CAPT_FIFO_ADDR_OFFSET
#define BT_PB_FIFO_ADDR_OFFSET
#define BT_CAPT_FIFO_ADDR_OFFSET
#define PLAYBACK_MIN_NUM_PERIODS
#define PLAYBACK_MAX_NUM_PERIODS
#define PLAYBACK_MAX_PERIOD_SIZE
#define PLAYBACK_MIN_PERIOD_SIZE
#define CAPTURE_MIN_NUM_PERIODS
#define CAPTURE_MAX_NUM_PERIODS
#define CAPTURE_MAX_PERIOD_SIZE
#define CAPTURE_MIN_PERIOD_SIZE

#define MAX_BUFFER
#define MIN_BUFFER
#define FIFO_SIZE
#define DMA_SIZE
#define FRM_LEN

#define SLOT_WIDTH_8
#define SLOT_WIDTH_16
#define SLOT_WIDTH_24
#define SLOT_WIDTH_32
#define ACP_PGFSM_CNTL_POWER_ON_MASK
#define ACP_PGFSM_CNTL_POWER_OFF_MASK
#define ACP_PGFSM_STATUS_MASK
#define ACP_POWERED_ON
#define ACP_POWER_ON_IN_PROGRESS
#define ACP_POWERED_OFF
#define ACP_POWER_OFF_IN_PROGRESS

#define ACP3x_ITER_IRER_SAMP_LEN_MASK
#define ACP_EXT_INTR_STAT_CLEAR_MASK

struct acp3x_platform_info {};

struct i2s_dev_data {};

struct i2s_stream_instance {};

static inline u32 rv_readl(void __iomem *base_addr)
{}

static inline void rv_writel(u32 val, void __iomem *base_addr)
{}

static inline u64 acp_get_byte_count(struct i2s_stream_instance *rtd,
							int direction)
{}