forked from Minki/linux
a733291d69
* .: (268 commits) Linux 3.16-rc6 um: segv: Save regs only in case of a kernel mode fault um: Fix hung task in fix_range_common() um: Ensure that a stub page cannot get unmapped Revert "um: Fix wait_stub_done() error handling" btrfs: test for valid bdev before kobj removal in btrfs_rm_device Btrfs: fix abnormal long waiting in fsync random: check for increase of entropy_count because of signed conversion ARM: EXYNOS: Fix core ID used by platsmp and hotplug code ahci: add support for the Promise FastTrak TX8660 SATA HBA (ahci mode) ARM: at91/dt: add missing clocks property to pwm node in sam9x5.dtsi ARM: at91/dt: fix usb0 clocks definition in sam9n12 dtsi ARM: at91: at91sam9x5: correct typo error for ohci clock irqchip: gic: Fix core ID calculation when topology is read from DT GFS2: fs/gfs2/rgrp.c: kernel-doc warning fixes GFS2: memcontrol: Spelling s/invlidate/invalidate/ GFS2: Allow caching of glocks for flock GFS2: Allow flocks to use normal glock dq rather than dq_wait GFS2: replace count*size kzalloc by kcalloc GFS2: Use GFP_NOFS when allocating glocks ... Conflicts: drivers/media/dvb-frontends/si2168.c drivers/media/dvb-frontends/si2168_priv.h drivers/media/tuners/si2157.c
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
/*
|
|
* Silicon Labs Si2168 DVB-T/T2/C demodulator driver
|
|
*
|
|
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef SI2168_PRIV_H
|
|
#define SI2168_PRIV_H
|
|
|
|
#include "si2168.h"
|
|
#include "dvb_frontend.h"
|
|
#include <linux/firmware.h>
|
|
#include <linux/i2c-mux.h>
|
|
|
|
#define SI2168_A20_FIRMWARE "dvb-demod-si2168-a20-01.fw"
|
|
#define SI2168_A30_FIRMWARE "dvb-demod-si2168-a30-01.fw"
|
|
#define SI2168_B40_FIRMWARE "dvb-demod-si2168-b40-01.fw"
|
|
#define SI2168_B40_FIRMWARE_FALLBACK "dvb-demod-si2168-02.fw"
|
|
|
|
/* state struct */
|
|
struct si2168 {
|
|
struct i2c_client *client;
|
|
struct i2c_adapter *adapter;
|
|
struct mutex i2c_mutex;
|
|
struct dvb_frontend fe;
|
|
fe_delivery_system_t delivery_system;
|
|
fe_status_t fe_status;
|
|
bool active;
|
|
};
|
|
|
|
/* firmare command struct */
|
|
#define SI2168_ARGLEN 30
|
|
struct si2168_cmd {
|
|
u8 args[SI2168_ARGLEN];
|
|
unsigned wlen;
|
|
unsigned rlen;
|
|
};
|
|
|
|
#endif
|