// 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 <asm/unaligned.h> #include <linux/io-64-nonatomic-lo-hi.h> #include <linux/device.h> #include <sound/memalloc.h> #include <linux/module.h> #include "sof-utils.h" /* * Generic buffer page table creation. * Take the each physical page address and drop the least significant unused * bits from each (based on PAGE_SIZE). Then pack valid page address bits * into compressed page table. */ int snd_sof_create_page_table(struct device *dev, struct snd_dma_buffer *dmab, unsigned char *page_table, size_t size) { … } EXPORT_SYMBOL(…); MODULE_LICENSE(…) …; MODULE_DESCRIPTION(…) …;