| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | bttv-risc.c -- interfaces to other kernel modules |
|---|
| .. | .. |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | (c) 2000-2003 Gerd Knorr <kraxel@bytesex.org> |
|---|
| 10 | 11 | |
|---|
| 11 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 12 | | - it under the terms of the GNU General Public License as published by |
|---|
| 13 | | - the Free Software Foundation; either version 2 of the License, or |
|---|
| 14 | | - (at your option) any later version. |
|---|
| 15 | | - |
|---|
| 16 | | - This program is distributed in the hope that it will be useful, |
|---|
| 17 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 | | - GNU General Public License for more details. |
|---|
| 20 | | - |
|---|
| 21 | | - You should have received a copy of the GNU General Public License |
|---|
| 22 | | - along with this program; if not, write to the Free Software |
|---|
| 23 | | - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 24 | 12 | |
|---|
| 25 | 13 | */ |
|---|
| 26 | 14 | |
|---|
| .. | .. |
|---|
| 32 | 20 | #include <linux/pci.h> |
|---|
| 33 | 21 | #include <linux/vmalloc.h> |
|---|
| 34 | 22 | #include <linux/interrupt.h> |
|---|
| 23 | +#include <linux/pgtable.h> |
|---|
| 35 | 24 | #include <asm/page.h> |
|---|
| 36 | | -#include <asm/pgtable.h> |
|---|
| 37 | 25 | #include <media/v4l2-ioctl.h> |
|---|
| 38 | 26 | |
|---|
| 39 | 27 | #include "bttvp.h" |
|---|
| .. | .. |
|---|
| 93 | 81 | *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); |
|---|
| 94 | 82 | offset+=bpl; |
|---|
| 95 | 83 | } else { |
|---|
| 96 | | - /* scanline needs to be splitted */ |
|---|
| 84 | + /* scanline needs to be split */ |
|---|
| 97 | 85 | todo = bpl; |
|---|
| 98 | 86 | *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL| |
|---|
| 99 | 87 | (sg_dma_len(sg)-offset)); |
|---|
| .. | .. |
|---|
| 711 | 699 | const struct bttv_tvnorm *tvnorm = bttv_tvnorms + buf->tvnorm; |
|---|
| 712 | 700 | struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); |
|---|
| 713 | 701 | |
|---|
| 714 | | - dprintk("%d: buffer field: %s format: %s size: %dx%d\n", |
|---|
| 702 | + dprintk("%d: buffer field: %s format: 0x%08x size: %dx%d\n", |
|---|
| 715 | 703 | btv->c.nr, v4l2_field_names[buf->vb.field], |
|---|
| 716 | | - buf->fmt->name, buf->vb.width, buf->vb.height); |
|---|
| 704 | + buf->fmt->fourcc, buf->vb.width, buf->vb.height); |
|---|
| 717 | 705 | |
|---|
| 718 | 706 | /* packed pixel modes */ |
|---|
| 719 | 707 | if (buf->fmt->flags & FORMAT_FLAGS_PACKED) { |
|---|
| .. | .. |
|---|
| 872 | 860 | struct bttv_buffer *buf) |
|---|
| 873 | 861 | { |
|---|
| 874 | 862 | /* check interleave, bottom+top fields */ |
|---|
| 875 | | - dprintk("%d: overlay fields: %s format: %s size: %dx%d\n", |
|---|
| 863 | + dprintk("%d: overlay fields: %s format: 0x%08x size: %dx%d\n", |
|---|
| 876 | 864 | btv->c.nr, v4l2_field_names[buf->vb.field], |
|---|
| 877 | | - fmt->name, ov->w.width, ov->w.height); |
|---|
| 865 | + fmt->fourcc, ov->w.width, ov->w.height); |
|---|
| 878 | 866 | |
|---|
| 879 | 867 | /* calculate geometry */ |
|---|
| 880 | 868 | bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height, |
|---|