2 * Media controller interface library
4 * Copyright (C) 2010-2011 Ideas on board SPRL
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 Lesser General Public License as published
10 * by the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __MEDIA_PRIV_H__
23 #define __MEDIA_PRIV_H__
25 #include <linux/media.h>
30 struct media_device *media;
31 struct media_entity_desc info;
32 struct media_pad *pads;
33 struct media_link *links;
34 unsigned int max_links;
35 unsigned int num_links;
46 struct media_device_info info;
47 struct media_entity *entities;
48 unsigned int entities_count;
50 void (*debug_handler)(void *, ...);
54 #define media_dbg(media, ...) \
55 (media)->debug_handler((media)->debug_priv, __VA_ARGS__)
57 #endif /* __MEDIA_PRIV_H__ */