x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / drivers / media / platform / vsp1 / vsp1_video.h
blob50ea7f02205f1800cc39e81ba8961fd91453a6e5
1 /*
2 * vsp1_video.h -- R-Car VSP1 Video Node
4 * Copyright (C) 2013-2015 Renesas Electronics Corporation
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 #ifndef __VSP1_VIDEO_H__
14 #define __VSP1_VIDEO_H__
16 #include <linux/list.h>
17 #include <linux/spinlock.h>
19 #include <media/videobuf2-v4l2.h>
21 #include "vsp1_rwpf.h"
23 struct vsp1_vb2_buffer {
24 struct vb2_v4l2_buffer buf;
25 struct list_head queue;
26 struct vsp1_rwpf_memory mem;
29 static inline struct vsp1_vb2_buffer *
30 to_vsp1_vb2_buffer(struct vb2_v4l2_buffer *vbuf)
32 return container_of(vbuf, struct vsp1_vb2_buffer, buf);
35 struct vsp1_video {
36 struct list_head list;
37 struct vsp1_device *vsp1;
38 struct vsp1_rwpf *rwpf;
40 struct video_device video;
41 enum v4l2_buf_type type;
42 struct media_pad pad;
44 struct mutex lock;
46 unsigned int pipe_index;
48 struct vb2_queue queue;
49 spinlock_t irqlock;
50 struct list_head irqqueue;
53 static inline struct vsp1_video *to_vsp1_video(struct video_device *vdev)
55 return container_of(vdev, struct vsp1_video, video);
58 struct vsp1_video *vsp1_video_create(struct vsp1_device *vsp1,
59 struct vsp1_rwpf *rwpf);
60 void vsp1_video_cleanup(struct vsp1_video *video);
62 #endif /* __VSP1_VIDEO_H__ */