Merge tag 'pm+acpi-4.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux/fpc-iii.git] / arch / s390 / include / asm / itcw.h
blobfb1bedd3dc0d7d3c42b41ae7af7d63ea13d26a0f
1 /*
2 * Functions for incremental construction of fcx enabled I/O control blocks.
4 * Copyright IBM Corp. 2008
5 * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
6 */
8 #ifndef _ASM_S390_ITCW_H
9 #define _ASM_S390_ITCW_H
11 #include <linux/types.h>
12 #include <asm/fcx.h>
14 #define ITCW_OP_READ 0
15 #define ITCW_OP_WRITE 1
17 struct itcw;
19 struct tcw *itcw_get_tcw(struct itcw *itcw);
20 size_t itcw_calc_size(int intrg, int max_tidaws, int intrg_max_tidaws);
21 struct itcw *itcw_init(void *buffer, size_t size, int op, int intrg,
22 int max_tidaws, int intrg_max_tidaws);
23 struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd,
24 u8 cd_count, u32 count);
25 struct tidaw *itcw_add_tidaw(struct itcw *itcw, u8 flags, void *addr,
26 u32 count);
27 void itcw_set_data(struct itcw *itcw, void *addr, int use_tidal);
28 void itcw_finalize(struct itcw *itcw);
30 #endif /* _ASM_S390_ITCW_H */