* demux.c: Rebuild the PAT when changing the output configuration (DVB->non-DVB)...
[dvblast.git] / comm.h
blob017a96da37b27a96848289964e59d6ab36b094f7
1 /*****************************************************************************
2 * comm.h
3 *****************************************************************************
4 * Copyright (C) 2008 VideoLAN
5 * $Id$
7 * Authors: Christophe Massiot <massiot@via.ecp.fr>
9 * This program is free software. It comes without any warranty, to
10 * the extent permitted by applicable law. You can redistribute it
11 * and/or modify it under the terms of the Do What The Fuck You Want
12 * To Public License, Version 2, as published by Sam Hocevar. See
13 * http://sam.zoy.org/wtfpl/COPYING for more details.
14 *****************************************************************************/
16 /* DVB Card Drivers */
17 #include <linux/dvb/version.h>
18 #include <linux/dvb/dmx.h>
19 #include <linux/dvb/frontend.h>
20 #include <linux/dvb/ca.h>
22 #define COMM_BUFFER_SIZE 4096
23 #define COMM_HEADER_SIZE 4
24 #define COMM_HEADER_MAGIC 0x48
26 #define CMD_RELOAD 1
27 #define CMD_SHUTDOWN 2
28 #define CMD_FRONTEND_STATUS 3
29 #define CMD_MMI_STATUS 4
30 #define CMD_MMI_SLOT_STATUS 5 /* arg: slot */
31 #define CMD_MMI_OPEN 6 /* arg: slot */
32 #define CMD_MMI_CLOSE 7 /* arg: slot */
33 #define CMD_MMI_RECV 8 /* arg: slot */
34 #define CMD_MMI_SEND 9 /* arg: slot, en50221_mmi_object_t */
36 #define RET_OK 0
37 #define RET_ERR 1
38 #define RET_FRONTEND_STATUS 2
39 #define RET_MMI_STATUS 3
40 #define RET_MMI_SLOT_STATUS 4
41 #define RET_MMI_RECV 5
42 #define RET_MMI_WAIT 6
43 #define RET_HUH 255
45 struct ret_frontend_status
47 struct dvb_frontend_info info;
48 fe_status_t i_status;
49 int32_t i_ber, i_strength, i_snr;
52 struct ret_mmi_status
54 ca_caps_t caps;
57 struct ret_mmi_slot_status
59 ca_slot_info_t sinfo;
62 struct ret_mmi_recv
64 en50221_mmi_object_t object;
67 struct cmd_mmi_send
69 uint8_t i_slot;
70 en50221_mmi_object_t object;