License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6/btrfs-unstable.git] / drivers / net / appletalk / ltpc.h
blob58cf945732a42da1dcadd199086a7c4db4bd87ef
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*** ltpc.h
5 ***/
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
16 /* the flag that we care about */
17 #define LT_FLAG_ALLLAP 0x04
19 struct lt_getresult {
20 unsigned char command;
21 unsigned char mailbox;
24 struct lt_mem {
25 unsigned char command;
26 unsigned char mailbox;
27 unsigned short addr; /* host order */
28 unsigned short length; /* host order */
31 struct lt_setflags {
32 unsigned char command;
33 unsigned char mailbox;
34 unsigned char flags;
37 struct lt_getflags {
38 unsigned char command;
39 unsigned char mailbox;
42 struct lt_init {
43 unsigned char command;
44 unsigned char mailbox;
45 unsigned char hint;
48 struct lt_sendlap {
49 unsigned char command;
50 unsigned char mailbox;
51 unsigned char dnode;
52 unsigned char laptype;
53 unsigned short length; /* host order */
56 struct lt_rcvlap {
57 unsigned char command;
58 unsigned char dnode;
59 unsigned char snode;
60 unsigned char laptype;
61 unsigned short length; /* host order */
64 union 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;
73 typedef union lt_command lt_command;