mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-18 19:25:43 +00:00
Instead of using PAGE_SIZE as base of definitions in headers, use generic size defines. While x86 platforms use 4096 as page size, there are platforms which use different page sizes. Two of changed defines are for memory windows on DSP side, which have fixed size independent of host side page size. Another one is for CLDMA buffer which also doesn't need to change with page size. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20230929112436.787058-3-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
32 lines
916 B
C
32 lines
916 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright(c) 2021-2022 Intel Corporation. All rights reserved.
|
|
*
|
|
* Author: Cezary Rojewski <cezary.rojewski@intel.com>
|
|
*/
|
|
|
|
#ifndef __SOUND_SOC_INTEL_AVS_CLDMA_H
|
|
#define __SOUND_SOC_INTEL_AVS_CLDMA_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
#define AVS_CL_DEFAULT_BUFFER_SIZE SZ_128K
|
|
|
|
struct hda_cldma;
|
|
extern struct hda_cldma code_loader;
|
|
|
|
void hda_cldma_fill(struct hda_cldma *cl);
|
|
void hda_cldma_transfer(struct hda_cldma *cl, unsigned long start_delay);
|
|
|
|
int hda_cldma_start(struct hda_cldma *cl);
|
|
int hda_cldma_stop(struct hda_cldma *cl);
|
|
int hda_cldma_reset(struct hda_cldma *cl);
|
|
|
|
void hda_cldma_set_data(struct hda_cldma *cl, void *data, unsigned int size);
|
|
void hda_cldma_setup(struct hda_cldma *cl);
|
|
int hda_cldma_init(struct hda_cldma *cl, struct hdac_bus *bus, void __iomem *dsp_ba,
|
|
unsigned int buffer_size);
|
|
void hda_cldma_free(struct hda_cldma *cl);
|
|
|
|
#endif
|