hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/include/media/videobuf-dma-sg.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * helper functions for SG DMA video4linux capture buffers
34 *
....@@ -12,10 +13,6 @@
1213 * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org>
1314 * (c) 2006 Mauro Carvalho Chehab, <mchehab@kernel.org>
1415 * (c) 2006 Ted Walther and John Sokol
15
- *
16
- * This program is free software; you can redistribute it and/or modify
17
- * it under the terms of the GNU General Public License as published by
18
- * the Free Software Foundation; either version 2
1916 */
2017 #ifndef _VIDEOBUF_DMA_SG_H
2118 #define _VIDEOBUF_DMA_SG_H
....@@ -34,7 +31,7 @@
3431 * does memory allocation too using vmalloc_32().
3532 *
3633 * videobuf_dma_*()
37
- * see Documentation/DMA-API-HOWTO.txt, these functions to
34
+ * see Documentation/core-api/dma-api-howto.rst, these functions to
3835 * basically the same. The map function does also build a
3936 * scatterlist for the buffer (and unmap frees it ...)
4037 *
....@@ -63,7 +60,7 @@
6360 /* common */
6461 struct scatterlist *sglist;
6562 int sglen;
66
- int nr_pages;
63
+ unsigned long nr_pages;
6764 int direction;
6865 };
6966