Commit | Line | Data |
---|---|---|
1a59d1b8 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
8722ff8c | 2 | /* |
3 | * Filename: rsxx.h | |
4 | * | |
8722ff8c | 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 | |
8722ff8c | 9 | */ |
10 | ||
11 | #ifndef __RSXX_H__ | |
12 | #define __RSXX_H__ | |
13 | ||
14 | /*----------------- IOCTL Definitions -------------------*/ | |
15 | ||
f3791203 PK |
16 | #define RSXX_MAX_DATA 8 |
17 | ||
8722ff8c | 18 | struct rsxx_reg_access { |
19 | __u32 addr; | |
20 | __u32 cnt; | |
21 | __u32 stat; | |
22 | __u32 stream; | |
f3791203 | 23 | __u32 data[RSXX_MAX_DATA]; |
8722ff8c | 24 | }; |
25 | ||
f3791203 | 26 | #define RSXX_MAX_REG_CNT (RSXX_MAX_DATA * (sizeof(__u32))) |
c206c709 | 27 | |
8722ff8c | 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_ */ |