um_xdi.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* $Id: um_xdi.h,v 1.1.2.2 2002/10/02 14:38:38 armin Exp $ */
  3. #ifndef __DIVA_USER_MODE_XDI_H__
  4. #define __DIVA_USER_MODE_XDI_H__
  5. /*
  6. Contains declaratiom of structures shared between application
  7. and user mode idi driver
  8. */
  9. typedef struct _diva_um_idi_adapter_features {
  10. dword type;
  11. dword features;
  12. dword channels;
  13. dword serial_number;
  14. char name[128];
  15. } diva_um_idi_adapter_features_t;
  16. #define DIVA_UM_IDI_REQ_MASK 0x0000FFFF
  17. #define DIVA_UM_IDI_REQ_TYPE_MASK (~(DIVA_UM_IDI_REQ_MASK))
  18. #define DIVA_UM_IDI_GET_FEATURES 1 /* trigger features indication */
  19. #define DIVA_UM_IDI_REQ 2
  20. #define DIVA_UM_IDI_REQ_TYPE_MAN 0x10000000
  21. #define DIVA_UM_IDI_REQ_TYPE_SIG 0x20000000
  22. #define DIVA_UM_IDI_REQ_TYPE_NET 0x30000000
  23. #define DIVA_UM_IDI_REQ_MAN (DIVA_UM_IDI_REQ | DIVA_UM_IDI_REQ_TYPE_MAN)
  24. #define DIVA_UM_IDI_REQ_SIG (DIVA_UM_IDI_REQ | DIVA_UM_IDI_REQ_TYPE_SIG)
  25. #define DIVA_UM_IDI_REQ_NET (DIVA_UM_IDI_REQ | DIVA_UM_IDI_REQ_TYPE_NET)
  26. /*
  27. data_length bytes will follow this structure
  28. */
  29. typedef struct _diva_um_idi_req_hdr {
  30. dword type;
  31. dword Req;
  32. dword ReqCh;
  33. dword data_length;
  34. } diva_um_idi_req_hdr_t;
  35. typedef struct _diva_um_idi_ind_parameters {
  36. dword Ind;
  37. dword IndCh;
  38. } diva_um_idi_ind_parameters_t;
  39. typedef struct _diva_um_idi_rc_parameters {
  40. dword Rc;
  41. dword RcCh;
  42. } diva_um_idi_rc_parameters_t;
  43. typedef union _diva_um_idi_ind {
  44. diva_um_idi_adapter_features_t features;
  45. diva_um_idi_ind_parameters_t ind;
  46. diva_um_idi_rc_parameters_t rc;
  47. } diva_um_idi_ind_t;
  48. #define DIVA_UM_IDI_IND_FEATURES 1 /* features indication */
  49. #define DIVA_UM_IDI_IND 2
  50. #define DIVA_UM_IDI_IND_RC 3
  51. /*
  52. data_length bytes of data follow
  53. this structure
  54. */
  55. typedef struct _diva_um_idi_ind_hdr {
  56. dword type;
  57. diva_um_idi_ind_t hdr;
  58. dword data_length;
  59. } diva_um_idi_ind_hdr_t;
  60. #endif