tegrakernel/kernel/nvidia/include/uapi/media/isc-dev.h

45 lines
1.1 KiB
C

/*
* 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__ */