Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright(c) 2021-2022 Intel Corporation. All rights reserved.
0004  *
0005  * Author: Cezary Rojewski <cezary.rojewski@intel.com>
0006  */
0007 
0008 #ifndef __SOUND_SOC_INTEL_AVS_CLDMA_H
0009 #define __SOUND_SOC_INTEL_AVS_CLDMA_H
0010 
0011 #define AVS_CL_DEFAULT_BUFFER_SIZE  (32 * PAGE_SIZE)
0012 
0013 struct hda_cldma;
0014 extern struct hda_cldma code_loader;
0015 
0016 void hda_cldma_fill(struct hda_cldma *cl);
0017 void hda_cldma_transfer(struct hda_cldma *cl, unsigned long start_delay);
0018 
0019 int hda_cldma_start(struct hda_cldma *cl);
0020 int hda_cldma_stop(struct hda_cldma *cl);
0021 int hda_cldma_reset(struct hda_cldma *cl);
0022 
0023 void hda_cldma_set_data(struct hda_cldma *cl, void *data, unsigned int size);
0024 void hda_cldma_setup(struct hda_cldma *cl);
0025 int hda_cldma_init(struct hda_cldma *cl, struct hdac_bus *bus, void __iomem *dsp_ba,
0026            unsigned int buffer_size);
0027 void hda_cldma_free(struct hda_cldma *cl);
0028 
0029 #endif