um_idi.h 1.3 KB

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