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-dev.h
/*
 *
 *	V 4 L 2   D R I V E R   H E L P E R   A P I
 *
 * Moved from videodev2.h
 *
 *	Some commonly needed functions for drivers (v4l2-common.o module)
 */
#ifndef _V4L2_DEV_H
#define _V4L2_DEV_H

#include <linux/poll.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <linux/mutex.h>
#include <linux/videodev2.h>

#include <media/media-entity.h>

#define VIDEO_MAJOR	81

#define VFL_TYPE_GRABBER	0
#define VFL_TYPE_VBI		1
#define VFL_TYPE_RADIO		2
#define VFL_TYPE_SUBDEV		3
#define VFL_TYPE_MAX		4

/* Is this a receiver, transmitter or mem-to-mem? */
/* Ignored for VFL_TYPE_SUBDEV. */
#define VFL_DIR_RX		0
#define VFL_DIR_TX		1
#define VFL_DIR_M2M		2

struct v4l2_ioctl_callbacks;
struct video_device;
struct v4l2_device;
struct v4l2_ctrl_handler;

/* Flag to mark the video_device struct as registered.
   Drivers can clear this flag if they want to block all future
   device access. It is cleared by video_unregister_device. */
#define V4L2_FL_REGISTERED	(0)
/* file->private_data points to struct v4l2_fh */
#define V4L2_FL_USES_V4L2_FH	(1)
/* Use the prio field of v4l2_fh for core priority checking */
#define V4L2_FL_USE_FH_PRIO	(2)

/* Priority helper functions */

struct v4l2_prio_state {
	atomic_t prios[4];
};

void v4l2_prio_init(struct v4l2_prio_state *global);
int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
		     enum v4l2_priority new);
void v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
void v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority local);
enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority local);


struct v4l2_file_operations {
	struct module *owner;
	ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
	ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
	unsigned int (*poll) (struct file *, struct poll_table_struct *);
	long (*ioctl) (struct file *, unsigned int, unsigned long);
	long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
#ifdef CONFIG_COMPAT
	long (*compat_ioctl32) (struct file *, unsigned int, unsigned long);
#endif
	unsigned long (*get_unmapped_area) (struct file *, unsigned long,
				unsigned long, unsigned long, unsigned long);
	int (*mmap) (struct file *, struct vm_area_struct *);
	int (*open) (struct file *);
	int (*release) (struct file *);
};

/*
 * Newer version of video_device, handled by videodev2.c
 * 	This version moves redundant code from video device code to
 *	the common handler
 */

struct video_device
{
#if defined(CONFIG_MEDIA_CONTROLLER)
	struct media_entity entity;
#endif
	/* device ops */
	const struct v4l2_file_operations *fops;

	/* sysfs */
	struct device dev;		/* v4l device */
	struct cdev *cdev;		/* character device */

	/* Set either parent or v4l2_dev if your driver uses v4l2_device */
	struct device *parent;		/* device parent */
	struct v4l2_device *v4l2_dev;	/* v4l2_device parent */

	/* Control handler associated with this device node. May be NULL. */
	struct v4l2_ctrl_handler *ctrl_handler;

	/* vb2_queue associated with this device node. May be NULL. */
	struct vb2_queue *queue;

	/* Priority state. If NULL, then v4l2_dev->prio will be used. */
	struct v4l2_prio_state *prio;

	/* device info */
	char name[32];
	int vfl_type;	/* device type */
	int vfl_dir;	/* receiver, transmitter or m2m */
	/* 'minor' is set to -1 if the registration failed */
	int minor;
	u16 num;
	/* use bitops to set/clear/test flags */
	unsigned long flags;
	/* attribute to differentiate multiple indices on one physical device */
	int index;

	/* V4L2 file handles */
	spinlock_t		fh_lock; /* Lock for all v4l2_fhs */
	struct list_head	fh_list; /* List of struct v4l2_fh */

	int debug;			/* Activates debug level*/

	/* Video standard vars */
	v4l2_std_id tvnorms;		/* Supported tv norms */
	v4l2_std_id current_norm;	/* Current tvnorm */

	/* callbacks */
	void (*release)(struct video_device *vdev);

	/* ioctl callbacks */
	const struct v4l2_ioctl_ops *ioctl_ops;
	DECLARE_BITMAP(valid_ioctls, BASE_VIDIOC_PRIVATE);

	/* serialization lock */
	DECLARE_BITMAP(disable_locking, BASE_VIDIOC_PRIVATE);
	struct mutex *lock;
};

#define media_entity_to_video_device(__e) \
	container_of(__e, struct video_device, entity)
/* dev to video-device */
#define to_video_device(cd) container_of(cd, struct video_device, dev)

int __must_check __video_register_device(struct video_device *vdev, int type,
		int nr, int warn_if_nr_in_use, struct module *owner);

/* Register video devices. Note that if video_register_device fails,
   the release() callback of the video_device structure is *not* called, so
   the caller is responsible for freeing any data. Usually that means that
   you call video_device_release() on failure. */
static inline int __must_check video_register_device(struct video_device *vdev,
		int type, int nr)
{
	return __video_register_device(vdev, type, nr, 1, vdev->fops->owner);
}

/* Same as video_register_device, but no warning is issued if the desired
   device node number was already in use. */
static inline int __must_check video_register_device_no_warn(
		struct video_device *vdev, int type, int nr)
{
	return __video_register_device(vdev, type, nr, 0, vdev->fops->owner);
}

/* Unregister video devices. Will do nothing if vdev == NULL or
   video_is_registered() returns false. */
void video_unregister_device(struct video_device *vdev);

/* helper functions to alloc/release struct video_device, the
   latter can also be used for video_device->release(). */
struct video_device * __must_check video_device_alloc(void);

/* this release function frees the vdev pointer */
void video_device_release(struct video_device *vdev);

/* this release function does nothing, use when the video_device is a
   static global struct. Note that having a static video_device is
   a dubious construction at best. */
void video_device_release_empty(struct video_device *vdev);

/* returns true if cmd is a known V4L2 ioctl */
bool v4l2_is_known_ioctl(unsigned int cmd);

/* mark that this command shouldn't use core locking */
static inline void v4l2_disable_ioctl_locking(struct video_device *vdev, unsigned int cmd)
{
	if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE)
		set_bit(_IOC_NR(cmd), vdev->disable_locking);
}

/* Mark that this command isn't implemented. This must be called before
   video_device_register. See also the comments in determine_valid_ioctls().
   This function allows drivers to provide just one v4l2_ioctl_ops struct, but
   disable ioctls based on the specific card that is actually found. */
static inline void v4l2_disable_ioctl(struct video_device *vdev, unsigned int cmd)
{
	if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE)
		set_bit(_IOC_NR(cmd), vdev->valid_ioctls);
}

/* helper functions to access driver private data. */
static inline void *video_get_drvdata(struct video_device *vdev)
{
	return dev_get_drvdata(&vdev->dev);
}

static inline void video_set_drvdata(struct video_device *vdev, void *data)
{
	dev_set_drvdata(&vdev->dev, data);
}

struct video_device *video_devdata(struct file *file);

/* Combine video_get_drvdata and video_devdata as this is
   used very often. */
static inline void *video_drvdata(struct file *file)
{
	return video_get_drvdata(video_devdata(file));
}

static inline const char *video_device_node_name(struct video_device *vdev)
{
	return dev_name(&vdev->dev);
}

static inline int video_is_registered(struct video_device *vdev)
{
	return test_bit(V4L2_FL_REGISTERED, &vdev->flags);
}

#endif /* _V4L2_DEV_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