annotate recpt1/recpt1.h @ 117:ac39bb18136e

commit test.
author naoyan@johnstown.minaminoshima.org
date Wed, 14 Apr 2010 00:29:21 +0900
parents aeba1988234f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100
aeba1988234f support macros to specify sid:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 96
diff changeset
1 /* -*- tab-width: 4; indent-tabs-mode: nil -*- */
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2 #ifndef _RECPT1_H_
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 #define _RECPT1_H_
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4
46
33c899c6cc9d logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 33
diff changeset
5 #define NUM_BSDEV 8
33c899c6cc9d logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 33
diff changeset
6 #define NUM_ISDB_T_DEV 8
18
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
7 #define CHTYPE_SATELLITE 0 /* satellite digital */
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
8 #define CHTYPE_GROUND 1 /* terrestrial digital */
11
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
9 #define MAX_QUEUE 8192
96
52f8e081763d add an option to specify the necessary service IDs.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 87
diff changeset
10 #define MAX_READ_SIZE (188 * 87) /* 188*87=16356 splitterが188アライメントを期待しているのでこの数字とする*/
11
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
11 #define WRITE_SIZE (1024 * 1024 * 2)
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
12 #define TRUE 1
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
13 #define FALSE 0
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
15 typedef struct _BUFSZ {
6
d898fd27547f cleanups
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 5
diff changeset
16 int size;
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
17 u_char buffer[MAX_READ_SIZE];
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
18 } BUFSZ;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
20 typedef struct _QUEUE_T {
18
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
21 unsigned int in; // 次に入れるインデックス
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
22 unsigned int out; // 次に出すインデックス
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
23 unsigned int size; // キューのサイズ
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
24 unsigned int num_avail; // 満タンになると 0 になる
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
25 unsigned int num_used; // 空っぽになると 0 になる
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
26 pthread_mutex_t mutex;
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
27 pthread_cond_t cond_avail; // データが満タンのときに待つための cond
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
28 pthread_cond_t cond_used; // データが空のときに待つための cond
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
29 BUFSZ *buffer[1]; // バッファポインタ
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
30 } QUEUE_T;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
32 typedef struct _ISDB_T_FREQ_CONV_TABLE {
18
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
33 int set_freq; // 実際にioctl()を行う値
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
34 int type; // チャンネルタイプ
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
35 int add_freq; // 追加する周波数(BS/CSの場合はスロット番号)
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
36 char *parm_freq; // パラメータで受ける値
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
37 } ISDB_T_FREQ_CONV_TABLE;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
38
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
39 #endif