Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Functions for incremental construction of fcx enabled I/O control blocks.
0004  *
0005  *    Copyright IBM Corp. 2008
0006  *    Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
0007  */
0008 
0009 #ifndef _ASM_S390_ITCW_H
0010 #define _ASM_S390_ITCW_H
0011 
0012 #include <linux/types.h>
0013 #include <asm/fcx.h>
0014 
0015 #define ITCW_OP_READ    0
0016 #define ITCW_OP_WRITE   1
0017 
0018 struct itcw;
0019 
0020 struct tcw *itcw_get_tcw(struct itcw *itcw);
0021 size_t itcw_calc_size(int intrg, int max_tidaws, int intrg_max_tidaws);
0022 struct itcw *itcw_init(void *buffer, size_t size, int op, int intrg,
0023                int max_tidaws, int intrg_max_tidaws);
0024 struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd,
0025              u8 cd_count, u32 count);
0026 struct tidaw *itcw_add_tidaw(struct itcw *itcw, u8 flags, void *addr,
0027                  u32 count);
0028 void itcw_set_data(struct itcw *itcw, void *addr, int use_tidal);
0029 void itcw_finalize(struct itcw *itcw);
0030 
0031 #endif /* _ASM_S390_ITCW_H */