split dev_queue
[cor.git] / drivers / block / rsxx / rsxx.h
blob4f84905a6fd2e2c03abf5a2553b76fe421246461
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Filename: rsxx.h
5 * Authors: Joshua Morris <josh.h.morris@us.ibm.com>
6 * Philip Kelleher <pjk1939@linux.vnet.ibm.com>
8 * (C) Copyright 2013 IBM Corporation
9 */
11 #ifndef __RSXX_H__
12 #define __RSXX_H__
14 /*----------------- IOCTL Definitions -------------------*/
16 #define RSXX_MAX_DATA 8
18 struct rsxx_reg_access {
19 __u32 addr;
20 __u32 cnt;
21 __u32 stat;
22 __u32 stream;
23 __u32 data[RSXX_MAX_DATA];
26 #define RSXX_MAX_REG_CNT (RSXX_MAX_DATA * (sizeof(__u32)))
28 #define RSXX_IOC_MAGIC 'r'
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)
33 #endif /* __RSXX_H_ */