Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ltpc.h
Go to the documentation of this file.
1 /*** ltpc.h
2  *
3  *
4  ***/
5 
6 #define LT_GETRESULT 0x00
7 #define LT_WRITEMEM 0x01
8 #define LT_READMEM 0x02
9 #define LT_GETFLAGS 0x04
10 #define LT_SETFLAGS 0x05
11 #define LT_INIT 0x10
12 #define LT_SENDLAP 0x13
13 #define LT_RCVLAP 0x14
14 
15 /* the flag that we care about */
16 #define LT_FLAG_ALLLAP 0x04
17 
18 struct lt_getresult {
19  unsigned char command;
20  unsigned char mailbox;
21 };
22 
23 struct lt_mem {
24  unsigned char command;
25  unsigned char mailbox;
26  unsigned short addr; /* host order */
27  unsigned short length; /* host order */
28 };
29 
30 struct lt_setflags {
31  unsigned char command;
32  unsigned char mailbox;
33  unsigned char flags;
34 };
35 
36 struct lt_getflags {
37  unsigned char command;
38  unsigned char mailbox;
39 };
40 
41 struct lt_init {
42  unsigned char command;
43  unsigned char mailbox;
44  unsigned char hint;
45 };
46 
47 struct lt_sendlap {
48  unsigned char command;
49  unsigned char mailbox;
50  unsigned char dnode;
51  unsigned char laptype;
52  unsigned short length; /* host order */
53 };
54 
55 struct lt_rcvlap {
56  unsigned char command;
57  unsigned char dnode;
58  unsigned char snode;
59  unsigned char laptype;
60  unsigned short length; /* host order */
61 };
62 
63 union lt_command {
65  struct lt_mem mem;
68  struct lt_init init;
70  struct lt_rcvlap rcvlap;
71 };
72 typedef union lt_command lt_command;
73