nmtrap.h
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef __TV_nmtrap_h_
#define __TV_nmtrap_h_
/*
** nmtrap.h
**
** Interface to send Network Management Trap
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
** hctSystem Trap
*/
#define TV_HCTCOLDSTART 101
#define TV_HCTSHUTDOWN 102
#define TV_HCTHARDWAREFAILURE 103
#define TV_HCTSOFTWAREFAILURE 104
#define TV_HARDERRFORWARDAPP 2
#define TV_HARDERRFORWARDCTR 3
#define TV_HARDERRAUDIODECOMP 6
#define TV_HARDERRVIDEODECOMP 7
#define TV_HARDERRCTRMICRO 8
#define TV_HCT8600FSNDISABLED 9
#define TV_HCT8600FSNTIMEDOUT 10
#define TV_HCT8600FSNTAMPER 11
/*
** hctAppMan Trap
*/
#define TV_HCTSTARTAPP 401
#define TV_HCTABORTAPP 402
#define TV_MNTRAP_MAXDATALEN (32 - sizeof(TVushort)*4) /* 24 bytes */
typedef union TVNMTrapMsgStr {
struct {
TVushort type;
TVushort len;
TVushort module;
TVushort trapType;
TVuchar trapData[TV_MNTRAP_MAXDATALEN];
} msg;
TVMessage notused;
} TVNMTrapMsg;
int tvNmSendTrap(TVushort module, TVushort trapType, TVushort len,
TVuchar *data);
int tvNmHdwTrap(TVulong trapCode);
int tvNmSftTrap(TVulong trapCode);
typedef union TVNMRetuneMsgStr {
struct {
TVushort type;
TVushort tuner;
TVulong frequency;
} msg;
struct {
TVushort type;
int reply;
} msgreply;
TVMessage notused;
} TVNMRetuneMsg;
int tvNmRetune(TVushort tuner, TVulong frequency);
#ifdef __cplusplus
}
#endif
#endif /* __TV_nmtrap_h_ */