1200110Snetchild/*
2200110Snetchild * $FreeBSD$
3200110Snetchild */
4200110Snetchild
5200110Snetchild/*
6200110Snetchild * This file defines compatibility versions of several video structures
7200110Snetchild * defined in the Linux videodev.h header (linux_videodev.h).  The
8200110Snetchild * structures defined in this file are the ones that have been determined
9200110Snetchild * to have 32- to 64-bit size dependencies.
10200110Snetchild */
11200110Snetchild
12200110Snetchild#ifndef _LINUX_VIDEODEV_COMPAT_H_
13200110Snetchild#define	_LINUX_VIDEODEV_COMPAT_H_
14200110Snetchild
15200110Snetchildstruct l_video_tuner
16200110Snetchild{
17200110Snetchild	l_int		tuner;
18200110Snetchild#define LINUX_VIDEO_TUNER_NAME_SIZE	32
19200110Snetchild	char		name[LINUX_VIDEO_TUNER_NAME_SIZE];
20200110Snetchild	l_ulong		rangelow, rangehigh;
21200110Snetchild	uint32_t	flags;
22200110Snetchild	uint16_t	mode;
23200110Snetchild	uint16_t	signal;
24200110Snetchild};
25200110Snetchild
26200110Snetchildstruct l_video_clip
27200110Snetchild{
28200110Snetchild	int32_t		x, y;
29200110Snetchild	int32_t		width, height;
30200110Snetchild	l_uintptr_t	next;
31200110Snetchild};
32200110Snetchild
33200110Snetchildstruct l_video_window
34200110Snetchild{
35200110Snetchild	uint32_t	x, y;
36200110Snetchild	uint32_t	width, height;
37200110Snetchild	uint32_t	chromakey;
38200110Snetchild	uint32_t	flags;
39200110Snetchild	l_uintptr_t	clips;
40200110Snetchild	l_int		clipcount;
41200110Snetchild};
42200110Snetchild
43200110Snetchildstruct l_video_buffer
44200110Snetchild{
45200110Snetchild	l_uintptr_t	base;
46200110Snetchild	l_int		height, width;
47200110Snetchild	l_int		depth;
48200110Snetchild	l_int		bytesperline;
49200110Snetchild};
50200110Snetchild
51200110Snetchildstruct l_video_code
52200110Snetchild{
53200110Snetchild#define LINUX_VIDEO_CODE_LOADWHAT_SIZE	16
54200110Snetchild	char		loadwhat[LINUX_VIDEO_CODE_LOADWHAT_SIZE];
55200110Snetchild	l_int		datasize;
56200110Snetchild	l_uintptr_t	data;
57200110Snetchild};
58200110Snetchild
59200110Snetchild#endif /* !_LINUX_VIDEODEV_COMPAT_H_ */
60