mirror of
https://github.com/tsukumijima/px4_drv.git
synced 2025-07-22 11:50:35 +02:00
include: ptx_ioctl: ioctl定義を追加
This commit is contained in:
@@ -3,6 +3,23 @@
|
||||
#ifndef __PTX_IOCTL_H__
|
||||
#define __PTX_IOCTL_H__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
// common definitions
|
||||
|
||||
enum ptx_system_type {
|
||||
PTX_UNSPECIFIED_SYSTEM = 0x00000000,
|
||||
PTX_ISDB_T_SYSTEM = 0x00000010,
|
||||
PTX_ISDB_S_SYSTEM = 0x00000020
|
||||
};
|
||||
|
||||
enum ptx_stream_type {
|
||||
PTX_UNSPECIFIED_STREAM = 0x00000000,
|
||||
PTX_MPEG_TRANSPORT_STREAM = 0x00000010 // MPEG2-TS
|
||||
};
|
||||
|
||||
// basic ioctls
|
||||
|
||||
struct ptx_freq {
|
||||
int freq_no;
|
||||
int slot;
|
||||
@@ -14,5 +31,61 @@ struct ptx_freq {
|
||||
#define PTX_GET_CNR _IOR(0x8d, 0x04, int *)
|
||||
#define PTX_ENABLE_LNB_POWER _IOW(0x8d, 0x05, int)
|
||||
#define PTX_DISABLE_LNB_POWER _IO(0x8d, 0x06)
|
||||
#define PTX_SET_SYSTEM_MODE _IOW(0x8d, 0x0b, int)
|
||||
|
||||
// extended ioctls
|
||||
|
||||
struct ptxt_cap {
|
||||
enum ptx_system_type systems;
|
||||
enum ptx_stream_type streams;
|
||||
};
|
||||
|
||||
struct ptxt_info {
|
||||
char name[64];
|
||||
struct ptxt_cap cap; // device capability information
|
||||
};
|
||||
|
||||
enum ptxt_param_code {
|
||||
PTXT_UNDEFINED_PARAM = 0,
|
||||
PTXT_BANDWIDTH_PARAM = 1,
|
||||
PTXT_STREAM_ID_PARAM = 16
|
||||
};
|
||||
|
||||
struct ptxt_additional_param {
|
||||
enum ptxt_param_code prop;
|
||||
__u32 data;
|
||||
};
|
||||
|
||||
struct ptxt_params {
|
||||
enum ptx_system_type system;
|
||||
__u32 freq; // ISDB-T: Hz, ISDB-S/S3: kHz
|
||||
__u32 num_prop;
|
||||
struct ptxt_additional_param *prop;
|
||||
};
|
||||
|
||||
enum ptxt_stat_code {
|
||||
PTXT_UNKNOWN_STAT = 0,
|
||||
PTXT_SIGNAL_STRENGTH_STAT,
|
||||
PTXT_CNR_STAT
|
||||
};
|
||||
|
||||
struct ptxt_stat {
|
||||
enum ptxt_stat_code stat;
|
||||
__u32 value;
|
||||
};
|
||||
|
||||
struct ptxt_stats {
|
||||
__u32 num_stat;
|
||||
struct ptxt_stat *stat;
|
||||
};
|
||||
|
||||
#define PTXT_GET_INFO _IOR(0xe7, 0x00, struct ptxt_info *)
|
||||
#define PTXT_GET_PARAMS _IOR(0xe7, 0x01, struct ptxt_params *)
|
||||
#define PTXT_SET_PARAMS _IOW(0xe7, 0x02, struct ptxt_params *)
|
||||
#define PTXT_CLEAR_PARAMS _IO(0xe7, 0x03)
|
||||
#define PTXT_TUNE _IO(0xe7, 0x04)
|
||||
#define PTXT_SET_LNB_VOLTAGE _IOW(0xe7, 0x05, int)
|
||||
#define PTXT_SET_CAPTURE _IOW(0xe7, 0x06, bool)
|
||||
#define PTXT_READ_STATS _IOR(0xe7, 0x07, struct ptxt_stats *)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user