Commit | Line | Data |
---|---|---|
8722ff8c | 1 | /* |
2 | * Filename: rsxx.h | |
3 | * | |
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 | * This program is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU General Public License as | |
12 | * published by the Free Software Foundation; either version 2 of the | |
13 | * License, or (at your option) any later version. | |
14 | * | |
15 | * This program is distributed in the hope that it will be useful, but | |
16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | * General Public License for more details. | |
19 | * | |
20 | * You should have received a copy of the GNU General Public License | |
21 | * along with this program; if not, write to the Free Software Foundation, | |
22 | * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
23 | */ | |
24 | ||
25 | #ifndef __RSXX_H__ | |
26 | #define __RSXX_H__ | |
27 | ||
28 | /*----------------- IOCTL Definitions -------------------*/ | |
29 | ||
f3791203 PK |
30 | #define RSXX_MAX_DATA 8 |
31 | ||
8722ff8c | 32 | struct rsxx_reg_access { |
33 | __u32 addr; | |
34 | __u32 cnt; | |
35 | __u32 stat; | |
36 | __u32 stream; | |
f3791203 | 37 | __u32 data[RSXX_MAX_DATA]; |
8722ff8c | 38 | }; |
39 | ||
f3791203 | 40 | #define RSXX_MAX_REG_CNT (RSXX_MAX_DATA * (sizeof(__u32))) |
c206c709 | 41 | |
8722ff8c | 42 | #define RSXX_IOC_MAGIC 'r' |
43 | ||
44 | #define RSXX_GETREG _IOWR(RSXX_IOC_MAGIC, 0x20, struct rsxx_reg_access) | |
45 | #define RSXX_SETREG _IOWR(RSXX_IOC_MAGIC, 0x21, struct rsxx_reg_access) | |
46 | ||
47 | #endif /* __RSXX_H_ */ |