um_xdi.h 1.8 KB

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