treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
[linux-block.git] / drivers / media / pci / ivtv / ivtv-yuv.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1a0adaf3
HV
2/*
3 yuv support
4
5 Copyright (C) 2007 Ian Armstrong <ian@iarmst.demon.co.uk>
6
1a0adaf3
HV
7 */
8
612570f2
HV
9#ifndef IVTV_YUV_H
10#define IVTV_YUV_H
11
612570f2
HV
12#define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */
13
14/* Offset to filter table in firmware */
15#define IVTV_YUV_HORIZONTAL_FILTER_OFFSET 0x025d8
16#define IVTV_YUV_VERTICAL_FILTER_OFFSET 0x03358
17
33c0fcad
HV
18#define IVTV_YUV_UPDATE_HORIZONTAL 0x01
19#define IVTV_YUV_UPDATE_VERTICAL 0x02
0bfeb04a 20#define IVTV_YUV_UPDATE_INVALID 0x04
33c0fcad 21
a3e5f5e2 22extern const u32 yuv_offset[IVTV_YUV_BUFFERS];
612570f2 23
1a0adaf3 24int ivtv_yuv_filter_check(struct ivtv *itv);
77aded6b 25void ivtv_yuv_setup_stream_frame(struct ivtv *itv);
b0510f8d 26int ivtv_yuv_udma_stream_frame(struct ivtv *itv, void __user *src);
77aded6b 27void ivtv_yuv_frame_complete(struct ivtv *itv);
1a0adaf3
HV
28int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args);
29void ivtv_yuv_close(struct ivtv *itv);
77aded6b 30void ivtv_yuv_work_handler(struct ivtv *itv);
612570f2
HV
31
32#endif