// SPDX-License-Identifier: GPL-2.0-only /* * Sample fifo dma implementation * * Copyright (C) 2010 Stefani Seibold <[email protected]> */ #include <linux/init.h> #include <linux/kfifo.h> #include <linux/module.h> #include <linux/scatterlist.h> /* * This module shows how to handle fifo dma operations. */ /* fifo size in elements (bytes) */ #define FIFO_SIZE … static struct kfifo fifo; static int __init example_init(void) { … } static void __exit example_exit(void) { … } module_init(example_init); module_exit(example_exit); MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; MODULE_AUTHOR(…) …;