.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * helper functions for SG DMA video4linux capture buffers |
---|
3 | 4 | * |
---|
.. | .. |
---|
12 | 13 | * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org> |
---|
13 | 14 | * (c) 2006 Mauro Carvalho Chehab, <mchehab@kernel.org> |
---|
14 | 15 | * (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 |
---|
19 | 16 | */ |
---|
20 | 17 | #ifndef _VIDEOBUF_DMA_SG_H |
---|
21 | 18 | #define _VIDEOBUF_DMA_SG_H |
---|
.. | .. |
---|
34 | 31 | * does memory allocation too using vmalloc_32(). |
---|
35 | 32 | * |
---|
36 | 33 | * videobuf_dma_*() |
---|
37 | | - * see Documentation/DMA-API-HOWTO.txt, these functions to |
---|
| 34 | + * see Documentation/core-api/dma-api-howto.rst, these functions to |
---|
38 | 35 | * basically the same. The map function does also build a |
---|
39 | 36 | * scatterlist for the buffer (and unmap frees it ...) |
---|
40 | 37 | * |
---|
.. | .. |
---|
63 | 60 | /* common */ |
---|
64 | 61 | struct scatterlist *sglist; |
---|
65 | 62 | int sglen; |
---|
66 | | - int nr_pages; |
---|
| 63 | + unsigned long nr_pages; |
---|
67 | 64 | int direction; |
---|
68 | 65 | }; |
---|
69 | 66 | |
---|