diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-10-25 21:44:51 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-10-25 21:44:51 +0100 |
commit | 5e64624059d6f984f4304abf336cce05cdb0212f (patch) | |
tree | 95fff68ddba9921771d458d755c87489a5fccf08 /drivers/media/tdmb/tcc3170/inc/tcpal | |
parent | b673969b102cece38c5de54d35617425459174f5 (diff) | |
download | kernel_samsung_smdk4412-5e64624059d6f984f4304abf336cce05cdb0212f.zip kernel_samsung_smdk4412-5e64624059d6f984f4304abf336cce05cdb0212f.tar.gz kernel_samsung_smdk4412-5e64624059d6f984f4304abf336cce05cdb0212f.tar.bz2 |
remove more unused drivers, readd accidentally removed iommu, reenable graphics settings
Diffstat (limited to 'drivers/media/tdmb/tcc3170/inc/tcpal')
-rw-r--r-- | drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_debug.h | 75 | ||||
-rw-r--r-- | drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_os.h | 62 | ||||
-rw-r--r-- | drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_queue.h | 66 | ||||
-rw-r--r-- | drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_types.h | 50 |
4 files changed, 0 insertions, 253 deletions
diff --git a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_debug.h b/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_debug.h deleted file mode 100644 index cb115b0..0000000 --- a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_debug.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * tcpal_debug.h - * - * Author: <linux@telechips.com> - * Description: Telechips broadcast driver - * - * Copyright (c) Telechips, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __TCPAL_DEBUG_H__ -#define __TCPAL_DEBUG_H__ - -#define DEBUG_ERROR 0x00000001 -#define DEBUG_INFO 0x00000002 -#define DEBUG_DRV_IO 0x00000004 -#define DEBUG_API_COMMON 0x00000008 -#define DEBUG_TCPAL_OS 0x00000010 -#define DEBUG_TCHAL 0x00000020 -#define DEBUG_TCPAL_CSPI 0x00000040 -#define DEBUG_DRV_COMP 0x00000080 -#define DEBUG_DRV_RF 0x00000100 -#define DEBUG_TCPAL_I2C 0x00000200 -#define DEBUG_DRV_PERI 0x00000400 -#define DEBUG_STREAM_PARSER 0x00000800 -#define DEBUG_PARSING_TIME 0x00001000 -#define DEBUG_PARSING_PROC 0x00002000 -#define DEBUG_INTRRUPT 0x00004000 -#define DEBUG_STREAM_READ 0x00008000 -#define DEBUG_STREAM_STACK 0x00010000 -#define DEBUG_STATUS 0x00020000 -#define DEBUG_PARSE_HEADER 0x00040000 - -#define MAX_SIZE_DSP_ROM (1024*10) -#define MAX_PATH 128 - -s32 printk(const char *fmt, ...); - -#define tcbd_debug(__class, __msg, ...)\ -do {\ - if (__class&tcbd_debug_class) {\ - if (__class == DEBUG_ERROR)\ - printk(KERN_ERR"[%s:%d] " __msg,\ - __func__, __LINE__, ##__VA_ARGS__);\ - else if (__class == DEBUG_INFO)\ - printk(KERN_INFO __msg, ##__VA_ARGS__);\ - else\ - printk(KERN_INFO"[%s:%d] " __msg,\ - __func__, __LINE__, ##__VA_ARGS__);\ - } \ -} while (0) - -s32 tcbd_debug_spur_dbg(void); -s32 tcbd_debug_rom_from_fs(void); -s32 *tcbd_debug_spur_clk_cfg(void); -char *tcbd_debug_rom_path(void); - -void tcbd_debug_mbox_rx(u16 *_cmd, s32 *_len, u32 **_data); -void tcbd_debug_mbox_tx(u16 *_cmd, s32 *_len, u32 **_data); - -extern u32 tcbd_debug_class; - -#endif /*__TCPAL_DEBUG_H_*/ diff --git a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_os.h b/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_os.h deleted file mode 100644 index 85e4a3d..0000000 --- a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_os.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * tcpal_os.h - * - * Author: <linux@telechips.com> - * Description: Telechips broadcast driver - * - * Copyright (c) Telechips, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __TCPAL_OS_H__ -#define __TCPAL_OS_H__ -#include "tcpal_types.h" -#include <linux/init.h> -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/moduleparam.h> -#include <linux/fs.h> -#include <linux/uaccess.h> - -/* For TimeCheck */ -#define TCPAL_MAX_TIMECNT 0xFFFFFFFFFFFFFFFFULL -TCBB_FUNC u64 tcpal_get_time(void); -TCBB_FUNC u64 tcpal_diff_time(u64 _start_timeCount); - -/* for sleep */ -TCBB_FUNC void tcpal_msleep(s32 _ms); -TCBB_FUNC void tcpal_usleep(s32 _us); - -/* for memory allocation, free, set */ -TCBB_FUNC void *tcpal_malloc(u32 _size); -TCBB_FUNC void tcpal_free(void *_ptr); - -/* For Semaphore */ -#define TCPAL_INFINITE_SEMAPHORE 0xFFFFFFFFUL - -TCBB_FUNC s32 tcpal_create_lock( - u32 *_semaphore, - char *_name, - u32 _initialCount); -TCBB_FUNC s32 tcpal_destroy_lock(u32 *_semaphore); -TCBB_FUNC s32 tcpal_lock(u32 *_semaphore); -TCBB_FUNC s32 tcpal_unlock(u32 *_semaphore); - -TCBB_FUNC s32 tcpal_irq_register_handler(void *_device); -TCBB_FUNC s32 tcpal_irq_unregister_handler(void); -TCBB_FUNC s32 tcpal_irq_enable(void); -TCBB_FUNC s32 tcpal_irq_disable(void); - -#endif /*__TCPAL_OS_H__*/ diff --git a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_queue.h b/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_queue.h deleted file mode 100644 index 05e7982..0000000 --- a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_queue.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * tcpal_queue.c - * - * Author: <linux@telechips.com> - * Description: Telechips broadcast driver - * - * Copyright (c) Telechips, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#ifndef __TCBD_QUEUE_H__ -#define __TCBD_QUEUE_H__ - -#define TCBD_QUEUE_SIZE 50 - -struct tcbd_queue_item { - u8 *buffer; - u8 subch_id; - s32 size; - s32 type; -}; - -struct tcbd_queue { - s32 front; - s32 rear; - s32 qsize; - s32 pointer; - s32 buff_size; - u8 *global_buffer; - u32 sem; - struct tcbd_queue_item q[TCBD_QUEUE_SIZE]; -}; - -TCBB_FUNC void tcbd_init_queue( - struct tcbd_queue *_queue, u8* buffer, s32 _buff_size); -TCBB_FUNC void tcbd_deinit_queue(struct tcbd_queue *_queue); - -TCBB_FUNC s32 tcbd_enqueue( - struct tcbd_queue *_queue, u8 *_chunk, s32 _size, - u8 _subch_id, s32 _type); - -TCBB_FUNC s32 tcbd_dequeue( - struct tcbd_queue *_queue, u8 *_chunk, s32 *_size, - u8 *_subch_id, s32 *_type); - -TCBB_FUNC s32 tcbd_dequeue_ptr( - struct tcbd_queue *_queue, u8 **_chunk, s32 *_size, s32 *_type); - -TCBB_FUNC s32 tcbd_get_first_queue_ptr( - struct tcbd_queue *_queue, u8 **_chunk, s32 *_size, s32 *_type); - -TCBB_FUNC s32 tcbd_queue_is_empty(struct tcbd_queue *_queue); -TCBB_FUNC s32 tcbd_queue_is_full(struct tcbd_queue *_queue); -TCBB_FUNC void tcbd_reset_queue(struct tcbd_queue *_queue); -#endif /*__TCBD_QUEUE_H__*/ diff --git a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_types.h b/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_types.h deleted file mode 100644 index e0bb984..0000000 --- a/drivers/media/tdmb/tcc3170/inc/tcpal/tcpal_types.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * tcpal_types.h - * - * Author: <linux@telechips.com> - * Description: Telechips broadcast driver - * - * Copyright (c) Telechips, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __TCPAL_TYPES_H__ -#define __TCPAL_TYPES_H__ - -#ifdef NULL - #undef NULL - #define NULL (void *)0 -#else - #define NULL (void *)0 -#endif - -#define TCBB_FUNC - -#define SWAP16(x) \ - ((u16)(\ - (((u16)(x)&(u16)0x00ffU) << 8) |\ - (((u16)(x)&(u16)0xff00U) >> 8))) - -#define SWAP32(x)\ - ((u32)(\ - (((u32)(x)&(u32)0x000000ffUL) << 24)| \ - (((u32)(x)&(u32)0x0000ff00UL) << 8)| \ - (((u32)(x)&(u32)0x00ff0000UL) >> 8)| \ - (((u32)(x)&(u32)0xff000000UL) >> 24))) - -#define MIN(x, y) ((x) < (y) ? (x) : (y)) -#define MAX(x, y) ((x) > (y) ? (x) : (y)) - -#endif |