Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[cascardo/linux.git] / drivers / block / rsxx / rsxx.h
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
30 struct rsxx_reg_access {
31         __u32 addr;
32         __u32 cnt;
33         __u32 stat;
34         __u32 stream;
35         __u32 data[8];
36 };
37
38 #define RSXX_MAX_REG_CNT        (8 * (sizeof(__u32)))
39
40 #define RSXX_IOC_MAGIC 'r'
41
42 #define RSXX_GETREG _IOWR(RSXX_IOC_MAGIC, 0x20, struct rsxx_reg_access)
43 #define RSXX_SETREG _IOWR(RSXX_IOC_MAGIC, 0x21, struct rsxx_reg_access)
44
45 #endif /* __RSXX_H_ */