drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / media / pci / ivtv / ivtv-yuv.h
blobcc8e6ce4f286ed8879360ba6b7dc7524a26ebf38
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 yuv support
5 Copyright (C) 2007 Ian Armstrong <ian@iarmst.demon.co.uk>
7 */
9 #ifndef IVTV_YUV_H
10 #define IVTV_YUV_H
12 #define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */
14 /* Offset to filter table in firmware */
15 #define IVTV_YUV_HORIZONTAL_FILTER_OFFSET 0x025d8
16 #define IVTV_YUV_VERTICAL_FILTER_OFFSET 0x03358
18 #define IVTV_YUV_UPDATE_HORIZONTAL 0x01
19 #define IVTV_YUV_UPDATE_VERTICAL 0x02
20 #define IVTV_YUV_UPDATE_INVALID 0x04
22 extern const u32 yuv_offset[IVTV_YUV_BUFFERS];
24 int ivtv_yuv_filter_check(struct ivtv *itv);
25 void ivtv_yuv_setup_stream_frame(struct ivtv *itv);
26 int ivtv_yuv_udma_stream_frame(struct ivtv *itv, void __user *src);
27 void ivtv_yuv_frame_complete(struct ivtv *itv);
28 int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args);
29 void ivtv_yuv_close(struct ivtv *itv);
30 void ivtv_yuv_work_handler(struct ivtv *itv);
32 #endif