1 /* SPDX-License-Identifier: GPL-2.0 */
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
13 #define LT_SENDLAP 0x13
14 #define LT_RCVLAP 0x14
16 /* the flag that we care about */
17 #define LT_FLAG_ALLLAP 0x04
20 unsigned char command
;
21 unsigned char mailbox
;
25 unsigned char command
;
26 unsigned char mailbox
;
27 unsigned short addr
; /* host order */
28 unsigned short length
; /* host order */
32 unsigned char command
;
33 unsigned char mailbox
;
38 unsigned char command
;
39 unsigned char mailbox
;
43 unsigned char command
;
44 unsigned char mailbox
;
49 unsigned char command
;
50 unsigned char mailbox
;
52 unsigned char laptype
;
53 unsigned short length
; /* host order */
57 unsigned char command
;
60 unsigned char laptype
;
61 unsigned short length
; /* host order */
65 struct lt_getresult getresult
;
67 struct lt_setflags setflags
;
68 struct lt_getflags getflags
;
70 struct lt_sendlap sendlap
;
71 struct lt_rcvlap rcvlap
;
73 typedef union lt_command lt_command
;