MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / usb / net / Zydas / common.h
blob94dda96dfb602895b232bfd2faa2c098badd2d37
1 #ifndef ZD_COMMON_H
2 #define ZD_COMMON_H
4 #include <linux/if.h>
6 struct zd_point
8 caddr_t pointer;
9 __u16 length;
12 struct zdreq
14 union
16 char ifrn_name[IFNAMSIZ];
17 } ifr_ifrn;
19 union
21 struct zd_point data;
22 } u;
25 typedef struct oid_wrap
27 u16 request;
28 u16 seq;
30 union
32 struct
34 u16 status;
35 } dev;
37 struct
39 u32 oid;
40 u32 status;
41 u32 length;
42 u8 data[512];
43 } info;
44 } u;
46 } oid_wrap_t;
48 #define ZD_GENERIC_OID_HDR_LEN \
49 ((int) (&((struct oid_wrap *) 0)->u.info.data))
51 #endif