mirror of
https://github.com/tsukumijima/px4_drv.git
synced 2025-07-23 04:03:01 +02:00
今までは既存の ISDB2056 向けドライバを ISDB2056N 向けに改造していたため逆に既存の ISDB2056 では動作しなくなっていた この変更により、両方のデバイスを /dev/isdb2056video* として区別なく扱えるようになる
58 lines
1.3 KiB
C
58 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* PTX driver definitions for Digibest ISDB2056 device (isdb2056_device.h)
|
|
*
|
|
* Copyright (c) 2018-2021 nns779
|
|
*/
|
|
|
|
#ifndef __ISDB2056_DEVICE_H__
|
|
#define __ISDB2056_DEVICE_H__
|
|
|
|
#include <linux/atomic.h>
|
|
#include <linux/kref.h>
|
|
#include <linux/mutex.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/device.h>
|
|
|
|
#include "ptx_chrdev.h"
|
|
#include "it930x.h"
|
|
#include "tc90522.h"
|
|
#include "r850.h"
|
|
#include "rt710.h"
|
|
|
|
#define ISDB2056_CHRDEV_NUM 1
|
|
|
|
enum isdb2056_model {
|
|
ISDB2056_MODEL = 0,
|
|
ISDB2056N_MODEL,
|
|
};
|
|
|
|
struct isdb2056_chrdev {
|
|
struct ptx_chrdev *chrdev;
|
|
struct tc90522_demod tc90522_t;
|
|
struct tc90522_demod tc90522_s;
|
|
struct tc90522_demod tc90522_s0;
|
|
struct r850_tuner r850;
|
|
struct rt710_tuner rt710;
|
|
};
|
|
|
|
struct isdb2056_device {
|
|
struct kref kref;
|
|
atomic_t available;
|
|
struct device *dev;
|
|
enum isdb2056_model isdb2056_model;
|
|
struct completion *quit_completion;
|
|
struct ptx_chrdev_group *chrdev_group;
|
|
struct isdb2056_chrdev chrdev2056;
|
|
struct it930x_bridge it930x;
|
|
void *stream_ctx;
|
|
};
|
|
|
|
int isdb2056_device_init(struct isdb2056_device *isdb2056, struct device *dev,
|
|
enum isdb2056_model isdb2056_model,
|
|
struct ptx_chrdev_context *chrdev_ctx,
|
|
struct completion *quit_completion);
|
|
void isdb2056_device_term(struct isdb2056_device *isdb2056);
|
|
|
|
#endif
|