.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd. */ |
---|
3 | 3 | |
---|
| 4 | +#include <linux/compat.h> |
---|
4 | 5 | #include <linux/delay.h> |
---|
5 | 6 | #include <linux/interrupt.h> |
---|
6 | 7 | #include <linux/iommu.h> |
---|
.. | .. |
---|
340 | 341 | rkispp_reg_withstream = arg; |
---|
341 | 342 | *rkispp_reg_withstream = rkispp_is_reg_withstream_global(); |
---|
342 | 343 | break; |
---|
| 344 | + #if IS_ENABLED(CONFIG_VIDEO_ROCKCHIP_ISPP_VERSION_V10) |
---|
343 | 345 | case RKISPP_CMD_GET_TNRBUF_FD: |
---|
344 | 346 | ret = rkispp_get_tnrbuf_fd(ispp_dev, (struct rkispp_buf_idxfd *)arg); |
---|
345 | 347 | break; |
---|
.. | .. |
---|
349 | 351 | case RKISPP_CMD_TRIGGER_MODE: |
---|
350 | 352 | rkispp_set_trigger_mode(ispp_dev, (struct rkispp_trigger_mode *)arg); |
---|
351 | 353 | break; |
---|
| 354 | + #endif |
---|
352 | 355 | default: |
---|
353 | 356 | ret = -ENOIOCTLCMD; |
---|
354 | 357 | } |
---|
.. | .. |
---|
382 | 385 | ret = rkispp_ioctl(sd, cmd, &fecsize); |
---|
383 | 386 | break; |
---|
384 | 387 | case RKISPP_CMD_GET_TNRBUF_FD: |
---|
| 388 | + case RKISPP_CMD_GET_NRBUF_FD: |
---|
385 | 389 | ret = rkispp_ioctl(sd, cmd, &idxfd); |
---|
386 | 390 | if (!ret && copy_to_user(up, &idxfd, sizeof(idxfd))) |
---|
387 | 391 | ret = -EFAULT; |
---|