summaryrefslogtreecommitdiffstats
path: root/include/uapi/media/isc-dev.h
blob: 61d4b9666037c58b7547561677798f56d5045ae2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Copyright (c) 2015-2018, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */

#ifndef __UAPI_ISC_DEV_H__
#define __UAPI_ISC_DEV_H__

#include <linux/ioctl.h>
#include <linux/types.h>

#define ISC_DEV_IOCTL_RW	_IOW('o', 1, struct isc_dev_package)

#ifdef CONFIG_COMPAT
#define ISC_DEV_IOCTL_RW32	_IOW('o', 1, struct isc_dev_package32)
#endif

#define ISC_DEV_PKG_FLAG_WR	1

struct __attribute__ ((__packed__)) isc_dev_package {
	__u16 offset;
	__u16 offset_len;
	__u32 size;
	__u32 flags;
	unsigned long buffer;
};

struct __attribute__ ((__packed__)) isc_dev_package32 {
	__u16 offset;
	__u16 offset_len;
	__u32 size;
	__u32 flags;
	__u32 buffer;
};

#endif  /* __UAPI_ISC_DEV_H__ */