itcw.h 911 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Functions for incremental construction of fcx enabled I/O control blocks.
  3. *
  4. * Copyright IBM Corp. 2008
  5. * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
  6. */
  7. #ifndef _ASM_S390_ITCW_H
  8. #define _ASM_S390_ITCW_H
  9. #include <linux/types.h>
  10. #include <asm/fcx.h>
  11. #define ITCW_OP_READ 0
  12. #define ITCW_OP_WRITE 1
  13. struct itcw;
  14. struct tcw *itcw_get_tcw(struct itcw *itcw);
  15. size_t itcw_calc_size(int intrg, int max_tidaws, int intrg_max_tidaws);
  16. struct itcw *itcw_init(void *buffer, size_t size, int op, int intrg,
  17. int max_tidaws, int intrg_max_tidaws);
  18. struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd,
  19. u8 cd_count, u32 count);
  20. struct tidaw *itcw_add_tidaw(struct itcw *itcw, u8 flags, void *addr,
  21. u32 count);
  22. void itcw_set_data(struct itcw *itcw, void *addr, int use_tidal);
  23. void itcw_finalize(struct itcw *itcw);
  24. #endif /* _ASM_S390_ITCW_H */