itcw.h 950 B

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