From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E793EC07E96 for ; Thu, 15 Jul 2021 09:46:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5AD56120A for ; Thu, 15 Jul 2021 09:46:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5AD56120A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=akIW4e106i7A2mI9AkAI05hcnfmmqSUrz3huRzgsYDc=; b=DBC9G8jekU2+co VGpnImi2phSyyB++clFpRpUAmk4MIGziTkketjHGUPI+ujn6iOkWp1KA3GI5GHiVHurYLEnNiA3fC Nc1NIloqV+y4FwxDqpcOrxVkrJhYpjx4kZJ/2/pEUV8PcFfN20s4lqTZjIHCTgdml2vv7vcBpAjV4 4bGTNv0XiGhB6izMYELIfEDveXsA0+OLttK2ZQntDhyOEPmuu8FpbArR1wAToAqewTqIJv6fS1ffX 0hlRWIF8iPu6lhDwVU86gri11YYLQN/K55H/0pfNcmx5nEovPaJbg0tfpJ75SRmMJhp8nzWTpD9+c 5Wh6pUBt2wl/vies/NNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3xuB-000ICH-4U; Thu, 15 Jul 2021 09:43:44 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3xcz-000AKW-1r for linux-arm-kernel@lists.infradead.org; Thu, 15 Jul 2021 09:25:58 +0000 Received: by mail-pl1-x62f.google.com with SMTP id c15so2887793pls.13 for ; Thu, 15 Jul 2021 02:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aMXI9Mdj9z/HPVLPURXiRCm4s3Wy5duT1BMDaADDJh8=; b=Ad280bKSABKLCLMpJBsFT0sTvaP2B4Yr6QaoxVuUKwmFMMa1w2TUdHDTY6Ev1mtXUG pWbET+qABYWxkGhKEeL34lbuYWgsjler/hWqeL7RUzvQjGopW8Rl5EBaQVvuzB9Nx64g vFE1fJj83uMG1U8LHveoLcve58URBZmRM7RD/G3qJQ40lnZJcCGdxXO48NU9G2JBh+eO i/5t1nXj2phT21JSy0J+++DssTwNY57rxCFbq9q9uQ4hZTu34C0oYLVqYXudgg3zN2nE iu8dVILctJ9D2WgMWXD4cclU8ODUSrla2owNRQ5fI9Y3y+J8CGLTrp+FVhNkAoNkUpmf Xing== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aMXI9Mdj9z/HPVLPURXiRCm4s3Wy5duT1BMDaADDJh8=; b=kY7zPD2KETRxBVsy71cXn0uAvHRl1YKsy2qlRuHLSGceOe/ky1r5tMnyHdj8pcPY/q 55+edCIaEgKG9Lbpgr25e3D6d1pO8ilq3dGX4K91WK6hq/mfxpwSrohINO9LLo0HyqN4 w79wBdoJDgMokJdQq5xV0l4EEOCcMVspEDtbHb41miWNAD7Du5xPRP85caWgPwtvtwVe aCYwpKx5ES5GSFkDZl/I/bv9+G/5kcaRvwD8avVpPAz4ocEZz1gamuWbozlF2YQTDU9m 68ElqUAuTXft3IIaccMKxjR7rxAfBkWr0lApjwKzpfFOlGCAF6SWAatfmw1GauiuANhT yaXQ== X-Gm-Message-State: AOAM5323KgSAFUtBHqP6nApmbX3OQ2VlGCcKP+5KQyBxDWFFrTxdgtyR j2bd0EKUSiyZrOjxRzqrUdE= X-Google-Smtp-Source: ABdhPJysCyoNhM0i2lSCi+LeiSv1Ani1Nyw3PAHKsMTj4pTTWSpC4Z7DAv2YdmHxLikUkvpMeU59+g== X-Received: by 2002:a17:90a:4105:: with SMTP id u5mr9377171pjf.33.1626341155823; Thu, 15 Jul 2021 02:25:55 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id 11sm6662503pge.7.2021.07.15.02.25.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jul 2021 02:25:55 -0700 (PDT) From: dillon.minfei@gmail.com To: mchehab@kernel.org, mchehab+huawei@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@collabora.com, gnurou@gmail.com, pihsun@chromium.org, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org Cc: patrice.chotard@foss.st.com, hugues.fruchet@foss.st.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Dillon Min Subject: [PATCH v2 8/9] media: v4l: uapi: Add user control base for stm32 dma2d controls Date: Thu, 15 Jul 2021 17:24:27 +0800 Message-Id: <1626341068-20253-19-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626341068-20253-1-git-send-email-dillon.minfei@gmail.com> References: <1626341068-20253-1-git-send-email-dillon.minfei@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210715_022557_165368_4056310F X-CRM114-Status: GOOD ( 16.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Dillon Min Add a control base for stm32 controls, and reserve 16 controls. Signed-off-by: Dillon Min --- v2: reserved 16 ioctls from v4l2-controls.h for stm32, thanks Hans include/uapi/linux/stm32-media.h | 12 ++++++++++++ include/uapi/linux/v4l2-controls.h | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 include/uapi/linux/stm32-media.h diff --git a/include/uapi/linux/stm32-media.h b/include/uapi/linux/stm32-media.h new file mode 100644 index 000000000000..c5a05801a7a4 --- /dev/null +++ b/include/uapi/linux/stm32-media.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ +/* Copyright (C) 2021 Dillon Min, */ + +#ifndef __UAPI_STM32_MEDIA_H__ +#define __UAPI_STM32_MEDIA_H__ + +#include + +#define V4L2_CID_DMA2D_R2M_COLOR (V4L2_CID_USER_STM32_BASE + 1) +#define V4L2_CID_DMA2D_R2M_MODE (V4L2_CID_USER_STM32_BASE + 2) + +#endif diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index fdf97a6d7d18..72d0bb095732 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -212,6 +212,11 @@ enum v4l2_colorfx { */ #define V4L2_CID_USER_CCS_BASE (V4L2_CID_USER_BASE + 0x10f0) +/* The base for the stm32 dma2d driver controls. + * We reserve 16 controls for this driver. + */ +#define V4L2_CID_USER_STM32_BASE (V4L2_CID_USER_BASE + 0x1170) + /* MPEG-class control IDs */ /* The MPEG controls are applicable to all codec controls * and the 'MPEG' part of the define is historical */ -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel