18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci yuv support 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci Copyright (C) 2007 Ian Armstrong <ian@iarmst.demon.co.uk> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef IVTV_YUV_H 108c2ecf20Sopenharmony_ci#define IVTV_YUV_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* Offset to filter table in firmware */ 158c2ecf20Sopenharmony_ci#define IVTV_YUV_HORIZONTAL_FILTER_OFFSET 0x025d8 168c2ecf20Sopenharmony_ci#define IVTV_YUV_VERTICAL_FILTER_OFFSET 0x03358 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define IVTV_YUV_UPDATE_HORIZONTAL 0x01 198c2ecf20Sopenharmony_ci#define IVTV_YUV_UPDATE_VERTICAL 0x02 208c2ecf20Sopenharmony_ci#define IVTV_YUV_UPDATE_INVALID 0x04 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciextern const u32 yuv_offset[IVTV_YUV_BUFFERS]; 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciint ivtv_yuv_filter_check(struct ivtv *itv); 258c2ecf20Sopenharmony_civoid ivtv_yuv_setup_stream_frame(struct ivtv *itv); 268c2ecf20Sopenharmony_ciint ivtv_yuv_udma_stream_frame(struct ivtv *itv, void __user *src); 278c2ecf20Sopenharmony_civoid ivtv_yuv_frame_complete(struct ivtv *itv); 288c2ecf20Sopenharmony_ciint ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args); 298c2ecf20Sopenharmony_civoid ivtv_yuv_close(struct ivtv *itv); 308c2ecf20Sopenharmony_civoid ivtv_yuv_work_handler(struct ivtv *itv); 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif 33