ozappif.h 989 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #define OZ_IOCTL_MAGIC 0xf4
  9. struct oz_mac_addr {
  10. __u8 a[6];
  11. };
  12. #define OZ_MAX_PDS 8
  13. struct oz_pd_list {
  14. __u32 count;
  15. struct oz_mac_addr addr[OZ_MAX_PDS];
  16. };
  17. #define OZ_MAX_BINDING_LEN 32
  18. struct oz_binding_info {
  19. char name[OZ_MAX_BINDING_LEN];
  20. };
  21. #define OZ_IOCTL_GET_PD_LIST _IOR(OZ_IOCTL_MAGIC, 0, struct oz_pd_list)
  22. #define OZ_IOCTL_SET_ACTIVE_PD _IOW(OZ_IOCTL_MAGIC, 1, struct oz_mac_addr)
  23. #define OZ_IOCTL_GET_ACTIVE_PD _IOR(OZ_IOCTL_MAGIC, 2, struct oz_mac_addr)
  24. #define OZ_IOCTL_ADD_BINDING _IOW(OZ_IOCTL_MAGIC, 3, struct oz_binding_info)
  25. #define OZ_IOCTL_REMOVE_BINDING _IOW(OZ_IOCTL_MAGIC, 4, struct oz_binding_info)
  26. #define OZ_IOCTL_MAX 5
  27. #endif /* _OZAPPIF_H */