Commit | Line | Data |
---|---|---|
23af8c2a CK |
1 | /* ----------------------------------------------------------------------------- |
2 | * Copyright (c) 2011 Ozmo Inc | |
3 | * Released under the GNU General Public License Version 2 (GPLv2). | |
4 | * ----------------------------------------------------------------------------- | |
5 | */ | |
6 | #ifndef _OZAPPIF_H | |
7 | #define _OZAPPIF_H | |
8 | ||
9 | #include "ozeventdef.h" | |
10 | ||
11 | #define OZ_IOCTL_MAGIC 0xf4 | |
12 | ||
13 | struct oz_mac_addr { | |
68a75f3f | 14 | __u8 a[6]; |
23af8c2a CK |
15 | }; |
16 | ||
17 | #define OZ_MAX_PDS 8 | |
18 | ||
19 | struct oz_pd_list { | |
68a75f3f | 20 | __u32 count; |
23af8c2a CK |
21 | struct oz_mac_addr addr[OZ_MAX_PDS]; |
22 | }; | |
23 | ||
24 | #define OZ_MAX_BINDING_LEN 32 | |
25 | ||
26 | struct oz_binding_info { | |
27 | char name[OZ_MAX_BINDING_LEN]; | |
28 | }; | |
29 | ||
23af8c2a CK |
30 | #define OZ_IOCTL_GET_PD_LIST _IOR(OZ_IOCTL_MAGIC, 0, struct oz_pd_list) |
31 | #define OZ_IOCTL_SET_ACTIVE_PD _IOW(OZ_IOCTL_MAGIC, 1, struct oz_mac_addr) | |
32 | #define OZ_IOCTL_GET_ACTIVE_PD _IOR(OZ_IOCTL_MAGIC, 2, struct oz_mac_addr) | |
df49093a RG |
33 | #define OZ_IOCTL_ADD_BINDING _IOW(OZ_IOCTL_MAGIC, 3, struct oz_binding_info) |
34 | #define OZ_IOCTL_REMOVE_BINDING _IOW(OZ_IOCTL_MAGIC, 4, struct oz_binding_info) | |
35 | #define OZ_IOCTL_MAX 5 | |
23af8c2a CK |
36 | |
37 | ||
38 | #endif /* _OZAPPIF_H */ |