um_idi.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* $Id: um_idi.h,v 1.6 2004/03/21 17:26:01 armin Exp $ */
  2. #ifndef __DIVA_USER_MODE_IDI_CORE_H__
  3. #define __DIVA_USER_MODE_IDI_CORE_H__
  4. /*
  5. interface between UM IDI core and OS dependent part
  6. */
  7. int diva_user_mode_idi_init(void);
  8. void diva_user_mode_idi_finit(void);
  9. void *divas_um_idi_create_entity(dword adapter_nr, void *file);
  10. int divas_um_idi_delete_entity(int adapter_nr, void *entity);
  11. typedef int (*divas_um_idi_copy_to_user_fn_t) (void *os_handle,
  12. void *dst,
  13. const void *src,
  14. int length);
  15. typedef int (*divas_um_idi_copy_from_user_fn_t) (void *os_handle,
  16. void *dst,
  17. const void *src,
  18. int length);
  19. int diva_um_idi_read(void *entity,
  20. void *os_handle,
  21. void *dst,
  22. int max_length, divas_um_idi_copy_to_user_fn_t cp_fn);
  23. int diva_um_idi_write(void *entity,
  24. void *os_handle,
  25. const void *src,
  26. int length, divas_um_idi_copy_from_user_fn_t cp_fn);
  27. int diva_user_mode_idi_ind_ready(void *entity, void *os_handle);
  28. void *diva_um_id_get_os_context(void *entity);
  29. int diva_os_get_context_size(void);
  30. int divas_um_idi_entity_assigned(void *entity);
  31. int divas_um_idi_entity_start_remove(void *entity);
  32. void diva_um_idi_start_wdog(void *entity);
  33. void diva_um_idi_stop_wdog(void *entity);
  34. #endif