1 /*****************************************************************************
2 * dvb.h : functions to control a DVB card under Linux with v4l2
3 *****************************************************************************
4 * Copyright (C) 1998-2004 VideoLAN
6 * Authors: Johan Bilien <jobi@via.ecp.fr>
7 * Jean-Paul Saman <jpsaman@saman>
8 * Christopher Ross <chris@tebibyte.org>
9 * Christophe Massiot <massiot@via.ecp.fr>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
27 /*****************************************************************************
29 *****************************************************************************/
30 #define DMX "/dev/dvb/adapter%d/demux%d"
31 #define FRONTEND "/dev/dvb/adapter%d/frontend%d"
32 #define DVR "/dev/dvb/adapter%d/dvr%d"
34 /*****************************************************************************
36 *****************************************************************************/
44 typedef struct frontend_t frontend_t;
51 demux_handle_t p_demux_handles[MAX_DEMUX];
52 frontend_t *p_frontend;
53 vlc_bool_t b_budget_mode;
60 #define TELETEXT0_TYPE 3
61 #define SUBTITLE0_TYPE 4
63 #define TYPE_INTERVAL 5
66 /*****************************************************************************
68 *****************************************************************************/
69 int E_(FrontendOpen)( access_t * );
70 int E_(FrontendSet)( access_t * );
71 void E_(FrontendClose)( access_t * );
73 int E_(DMXSetFilter)( access_t *, int i_pid, int * pi_fd, int i_type );
74 int E_(DMXUnsetFilter)( access_t *, int i_fd );
76 int E_(DVROpen)( access_t * );
77 void E_(DVRClose)( access_t * );
79 int E_(CAMOpen)( access_t * );
80 int E_(CAMSet)( access_t *, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t,
81 uint16_t, uint8_t * );
82 void E_(CAMClose)( access_t * );