1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Filename: rsxx.h
4 *
5 * Authors: Joshua Morris <josh.h.morris@us.ibm.com>
6 *	Philip Kelleher <pjk1939@linux.vnet.ibm.com>
7 *
8 * (C) Copyright 2013 IBM Corporation
9 */
10 
11 #ifndef __RSXX_H__
12 #define __RSXX_H__
13 
14 /*----------------- IOCTL Definitions -------------------*/
15 
16 #define RSXX_MAX_DATA 8
17 
18 struct rsxx_reg_access {
19 	__u32 addr;
20 	__u32 cnt;
21 	__u32 stat;
22 	__u32 stream;
23 	__u32 data[RSXX_MAX_DATA];
24 };
25 
26 #define RSXX_MAX_REG_CNT	(RSXX_MAX_DATA * (sizeof(__u32)))
27 
28 #define RSXX_IOC_MAGIC 'r'
29 
30 #define RSXX_GETREG _IOWR(RSXX_IOC_MAGIC, 0x20, struct rsxx_reg_access)
31 #define RSXX_SETREG _IOWR(RSXX_IOC_MAGIC, 0x21, struct rsxx_reg_access)
32 
33 #endif /* __RSXX_H_ */
34