vdr
1.7.27
|
00001 /********************************************************************** 00002 * 00003 * HDFF firmware command interface library 00004 * 00005 * Copyright (C) 2011 Andreas Regel 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation; either version 2 00010 * of the License, or (at your option) any later version. 00011 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the 00019 * Free Software Foundation, Inc., 00020 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 * 00022 *********************************************************************/ 00023 00024 #ifndef HDFFCMD_BASE_H 00025 #define HDFFCMD_BASE_H 00026 00027 #include <linux/dvb/osd.h> 00028 00029 #if !defined OSD_RAW_CMD 00030 typedef struct osd_raw_cmd_s { 00031 const void *cmd_data; 00032 int cmd_len; 00033 void *result_data; 00034 int result_len; 00035 } osd_raw_cmd_t; 00036 00037 typedef struct osd_raw_data_s { 00038 const void *data_buffer; 00039 int data_length; 00040 int data_handle; 00041 } osd_raw_data_t; 00042 00043 #define OSD_RAW_CMD _IOWR('o', 162, osd_raw_cmd_t) 00044 #define OSD_RAW_DATA _IOWR('o', 163, osd_raw_data_t) 00045 #endif 00046 00047 #include "bitbuffer.h" 00048 #include "hdffcmd_defs.h" 00049 00050 void HdffCmdBuildHeader(BitBuffer_t * MsgBuf, HdffMessageType_t MsgType, 00051 HdffMessageGroup_t MsgGroup, HdffMessageId_t MsgId); 00052 00053 uint32_t HdffCmdSetLength(BitBuffer_t * MsgBuf); 00054 00055 #endif /* HDFFCMD_BASE_H */