Loading...
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
18struct lt_getresult {
19 unsigned char command;
20 unsigned char mailbox;
21};
22
23struct lt_mem {
24 unsigned char command;
25 unsigned char mailbox;
26 unsigned short addr; /* host order */
27 unsigned short length; /* host order */
28};
29
30struct lt_setflags {
31 unsigned char command;
32 unsigned char mailbox;
33 unsigned char flags;
34};
35
36struct lt_getflags {
37 unsigned char command;
38 unsigned char mailbox;
39};
40
41struct lt_init {
42 unsigned char command;
43 unsigned char mailbox;
44 unsigned char hint;
45};
46
47struct 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
55struct 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
63union lt_command {
64 struct lt_getresult getresult;
65 struct lt_mem mem;
66 struct lt_setflags setflags;
67 struct lt_getflags getflags;
68 struct lt_init init;
69 struct lt_sendlap sendlap;
70 struct lt_rcvlap rcvlap;
71};
72typedef union lt_command lt_command;
73
1/* SPDX-License-Identifier: GPL-2.0 */
2/*** ltpc.h
3 *
4 *
5 ***/
6
7#define LT_GETRESULT 0x00
8#define LT_WRITEMEM 0x01
9#define LT_READMEM 0x02
10#define LT_GETFLAGS 0x04
11#define LT_SETFLAGS 0x05
12#define LT_INIT 0x10
13#define LT_SENDLAP 0x13
14#define LT_RCVLAP 0x14
15
16/* the flag that we care about */
17#define LT_FLAG_ALLLAP 0x04
18
19struct lt_getresult {
20 unsigned char command;
21 unsigned char mailbox;
22};
23
24struct lt_mem {
25 unsigned char command;
26 unsigned char mailbox;
27 unsigned short addr; /* host order */
28 unsigned short length; /* host order */
29};
30
31struct lt_setflags {
32 unsigned char command;
33 unsigned char mailbox;
34 unsigned char flags;
35};
36
37struct lt_getflags {
38 unsigned char command;
39 unsigned char mailbox;
40};
41
42struct lt_init {
43 unsigned char command;
44 unsigned char mailbox;
45 unsigned char hint;
46};
47
48struct lt_sendlap {
49 unsigned char command;
50 unsigned char mailbox;
51 unsigned char dnode;
52 unsigned char laptype;
53 unsigned short length; /* host order */
54};
55
56struct lt_rcvlap {
57 unsigned char command;
58 unsigned char dnode;
59 unsigned char snode;
60 unsigned char laptype;
61 unsigned short length; /* host order */
62};
63
64union lt_command {
65 struct lt_getresult getresult;
66 struct lt_mem mem;
67 struct lt_setflags setflags;
68 struct lt_getflags getflags;
69 struct lt_init init;
70 struct lt_sendlap sendlap;
71 struct lt_rcvlap rcvlap;
72};
73typedef union lt_command lt_command;
74