-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: e-Better DTV02-1T1S-U (Digibest ISDB2056) のドライバを試験的に追加
それに伴い、px4.c内にあったコードの一部を別の複数のファイルへ移動 なお、DTV02-1T1S-Uが正常に動作するかは未確認
- Loading branch information
Showing
11 changed files
with
1,922 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
/* | ||
* Module initiator of the driver (driver.c) | ||
* | ||
* Copyright (c) 2019 nns779 | ||
*/ | ||
|
||
#include <linux/types.h> | ||
#include <linux/kernel.h> | ||
#include <linux/module.h> | ||
|
||
#include "driver.h" | ||
#include "revision.h" | ||
#include "firmware.h" | ||
#include "px4.h" | ||
#include "isdb2056.h" | ||
|
||
MODULE_VERSION(DRIVER_VERSION); | ||
MODULE_AUTHOR("nns779"); | ||
MODULE_DESCRIPTION("Unofficial Linux driver for PLEX PX-W3U4/Q3U4/W3PE4/Q3PE4 ISDB-T/S receivers"); | ||
MODULE_LICENSE("GPL v2"); | ||
|
||
MODULE_FIRMWARE(FIRMWARE_FILENAME); | ||
|
||
static int driver_module_init(void) | ||
{ | ||
int ret = 0; | ||
|
||
pr_info(KBUILD_MODNAME | ||
#ifdef DRIVER_VERSION | ||
" version " DRIVER_VERSION | ||
#endif | ||
#ifdef REVISION_NUMBER | ||
#if defined(DRIVER_VERSION) | ||
"," | ||
#endif | ||
" rev: " REVISION_NUMBER | ||
#endif | ||
#ifdef COMMIT_HASH | ||
#if defined(PX4_DRIVER_VERSION) || defined(REVISION_NUMBER) | ||
"," | ||
#endif | ||
" commit: " COMMIT_HASH | ||
#endif | ||
#ifdef REVISION_NAME | ||
" @ " REVISION_NAME | ||
#endif | ||
"\n"); | ||
|
||
ret = px4_register(); | ||
if (ret) | ||
goto exit; | ||
|
||
ret = isdb2056_register(); | ||
if (ret) | ||
goto exit; | ||
|
||
exit: | ||
return ret; | ||
} | ||
|
||
static void driver_module_exit(void) | ||
{ | ||
px4_unregister(); | ||
isdb2056_unregister(); | ||
} | ||
|
||
module_init(driver_module_init); | ||
module_exit(driver_module_exit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// driver.h | ||
|
||
#ifndef __DRIVER_H__ | ||
#define __DRIVER_H__ | ||
|
||
#define DRIVER_VERSION "0.2.1" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// firmware.h | ||
|
||
#ifndef __FIRMWARE_H__ | ||
#define __FIRMWARE_H__ | ||
|
||
#if !defined(FIRMWARE_FILENAME) | ||
#define FIRMWARE_FILENAME "it930x-firmware.bin" | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.