logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

hsi_char.h (1243B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Part of the HSI character device driver.
  4. *
  5. * Copyright (C) 2010 Nokia Corporation. All rights reserved.
  6. *
  7. * Contact: Andras Domokos <andras.domokos at nokia.com>
  8. */
  9. #ifndef __HSI_CHAR_H
  10. #define __HSI_CHAR_H
  11. #include <linux/types.h>
  12. #define HSI_CHAR_MAGIC 'k'
  13. #define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype)
  14. #define HSC_IOR(num, dtype) _IOR(HSI_CHAR_MAGIC, num, dtype)
  15. #define HSC_IOWR(num, dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype)
  16. #define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num)
  17. #define HSC_RESET HSC_IO(16)
  18. #define HSC_SET_PM HSC_IO(17)
  19. #define HSC_SEND_BREAK HSC_IO(18)
  20. #define HSC_SET_RX HSC_IOW(19, struct hsc_rx_config)
  21. #define HSC_GET_RX HSC_IOW(20, struct hsc_rx_config)
  22. #define HSC_SET_TX HSC_IOW(21, struct hsc_tx_config)
  23. #define HSC_GET_TX HSC_IOW(22, struct hsc_tx_config)
  24. #define HSC_PM_DISABLE 0
  25. #define HSC_PM_ENABLE 1
  26. #define HSC_MODE_STREAM 1
  27. #define HSC_MODE_FRAME 2
  28. #define HSC_FLOW_SYNC 0
  29. #define HSC_ARB_RR 0
  30. #define HSC_ARB_PRIO 1
  31. struct hsc_rx_config {
  32. __u32 mode;
  33. __u32 flow;
  34. __u32 channels;
  35. };
  36. struct hsc_tx_config {
  37. __u32 mode;
  38. __u32 channels;
  39. __u32 speed;
  40. __u32 arb_mode;
  41. };
  42. #endif /* __HSI_CHAR_H */