Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / drivers / net / appletalk / ltpc.h
blobcd30544a3729743d918f05271919e0ca1f989523
1 /*** ltpc.h
4 ***/
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
15 /* the flag that we care about */
16 #define LT_FLAG_ALLLAP 0x04
18 struct lt_getresult {
19 unsigned char command;
20 unsigned char mailbox;
23 struct lt_mem {
24 unsigned char command;
25 unsigned char mailbox;
26 unsigned short addr; /* host order */
27 unsigned short length; /* host order */
30 struct lt_setflags {
31 unsigned char command;
32 unsigned char mailbox;
33 unsigned char flags;
36 struct lt_getflags {
37 unsigned char command;
38 unsigned char mailbox;
41 struct lt_init {
42 unsigned char command;
43 unsigned char mailbox;
44 unsigned char hint;
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 */
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 */
63 union 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;
72 typedef union lt_command lt_command;