aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozappif.h
diff options
context:
space:
mode:
authorChris Kelly <ckelly@ozmodevices.com>2012-02-20 16:12:17 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 12:26:51 -0500
commit23af8c2a088fe5ae142103fb32fa03755cda694c (patch)
tree4e5d0743dcaa290bab25cfa9aebe914e27cfc156 /drivers/staging/ozwpan/ozappif.h
parentb3147863b523912633bfd4876d242cd5ae7d8e7a (diff)
staging: ozwpan: Added character device support
The character device provides a management interface to the driver and also provides an additional service to the protocol for side band communication with the device. Signed-off-by: Chris Kelly <ckelly@ozmodevices.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozappif.h')
-rw-r--r--drivers/staging/ozwpan/ozappif.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/staging/ozwpan/ozappif.h b/drivers/staging/ozwpan/ozappif.h
new file mode 100644
index 00000000000..af027329387
--- /dev/null
+++ b/drivers/staging/ozwpan/ozappif.h
@@ -0,0 +1,46 @@
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
13struct oz_mac_addr {
14 unsigned char a[6];
15};
16
17#define OZ_MAX_PDS 8
18
19struct oz_pd_list {
20 int count;
21 struct oz_mac_addr addr[OZ_MAX_PDS];
22};
23
24#define OZ_MAX_BINDING_LEN 32
25
26struct oz_binding_info {
27 char name[OZ_MAX_BINDING_LEN];
28};
29
30struct oz_test {
31 int action;
32};
33
34#define OZ_IOCTL_GET_PD_LIST _IOR(OZ_IOCTL_MAGIC, 0, struct oz_pd_list)
35#define OZ_IOCTL_SET_ACTIVE_PD _IOW(OZ_IOCTL_MAGIC, 1, struct oz_mac_addr)
36#define OZ_IOCTL_GET_ACTIVE_PD _IOR(OZ_IOCTL_MAGIC, 2, struct oz_mac_addr)
37#define OZ_IOCTL_CLEAR_EVENTS _IO(OZ_IOCTL_MAGIC, 3)
38#define OZ_IOCTL_GET_EVENTS _IOR(OZ_IOCTL_MAGIC, 4, struct oz_evtlist)
39#define OZ_IOCTL_ADD_BINDING _IOW(OZ_IOCTL_MAGIC, 5, struct oz_binding_info)
40#define OZ_IOCTL_TEST _IOWR(OZ_IOCTL_MAGIC, 6, struct oz_test)
41#define OZ_IOCTL_SET_EVENT_MASK _IOW(OZ_IOCTL_MAGIC, 7, unsigned long)
42#define OZ_IOCTL_REMOVE_BINDING _IOW(OZ_IOCTL_MAGIC, 8, struct oz_binding_info)
43#define OZ_IOCTL_MAX 9
44
45
46#endif /* _OZAPPIF_H */