blob: 8e3fd5e680ba2afb5757b166a855a426fa6e7e74 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/*
2 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef _QFP_FUSE_H_
16#define _QFP_FUSE_H_
17
18#include <linux/types.h>
19#include <linux/ioctl.h>
20
21#define QFP_FUSE_IOC_MAGIC 0x92
22
23#define QFP_FUSE_IOC_WRITE _IO(QFP_FUSE_IOC_MAGIC, 1)
24#define QFP_FUSE_IOC_READ _IO(QFP_FUSE_IOC_MAGIC, 2)
25
26
27/*
28 * This structure is used to exchange the fuse parameters with the user
29 * space application. The pointer to this structure is passed to the ioctl
30 * function.
31 * offset = offset from the QFPROM base for the data to be read/written.
32 * size = number of 32-bit words to be read/written.
33 * data = pointer to the 32 bit word denoting userspace data.
34 */
35struct qfp_fuse_req {
36 u32 offset;
37 u32 size;
38 u32 *data;
39};
40
41#endif