From patchwork Wed Mar 11 15:27:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davor Joja X-Patchwork-Id: 5986691 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E6F559F380 for ; Wed, 11 Mar 2015 15:35:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D532203AA for ; Wed, 11 Mar 2015 15:35:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B246203AC for ; Wed, 11 Mar 2015 15:35:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754066AbbCKPda (ORCPT ); Wed, 11 Mar 2015 11:33:30 -0400 Received: from mail.logicbricks.com ([89.201.165.134]:27597 "EHLO mail.logicbricks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753338AbbCKPd3 (ORCPT ); Wed, 11 Mar 2015 11:33:29 -0400 X-Greylist: delayed 334 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Mar 2015 11:33:15 EDT From: Davor Joja To: , , , CC: Davor Joja Subject: [PATCH 07/10] uapi: linux: Xylon framebuffer driver header file Date: Wed, 11 Mar 2015 16:27:08 +0100 X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426087631-9952-1-git-send-email-davorjoja@logicbricks.com> References: <1426087631-9952-1-git-send-email-davorjoja@logicbricks.com> MIME-Version: 1.0 X-Originating-IP: [192.168.0.95] Message-ID: <475f3ca4-2c0a-4c98-96bf-2831b5396966@mail.xylon.local> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Driver header file containing structures and IOCTLs for user space applications to be able to use advanced logiCVC hw functionality. Signed-off-by: Davor Joja --- include/uapi/linux/xylonfb.h | 85 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 include/uapi/linux/xylonfb.h diff --git a/include/uapi/linux/xylonfb.h b/include/uapi/linux/xylonfb.h new file mode 100644 index 0000000..662c02f --- /dev/null +++ b/include/uapi/linux/xylonfb.h @@ -0,0 +1,85 @@ +/* + * Xylon logiCVC frame buffer driver IOCTL parameters + * + * Copyright (C) 2015 Xylon d.o.o. + * Author: Davor Joja + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that 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 __XYLONFB_H__ +#define __XYLONFB_H__ + +#include + +struct xylonfb_hw_access { + __u32 offset; + __u32 value; + bool set; +}; + +/* Used only with logiCVC 3.x */ +struct xylonfb_layer_buffer { + __u8 id; + bool set; +}; + +struct xylonfb_layer_color { + __u32 raw_rgb; + __u8 use_raw; + __u8 r; + __u8 g; + __u8 b; + bool set; +}; + +struct xylonfb_layer_geometry { + __u16 x; + __u16 y; + __u16 width; + __u16 height; + __u16 x_offset; + __u16 y_offset; + bool set; +}; + +struct xylonfb_layer_transparency { + __u8 alpha; + bool set; +}; + +/* Xylon FB IOCTL's */ +#define XYLONFB_IOW(num, dtype) _IOW('x', num, dtype) +#define XYLONFB_IOR(num, dtype) _IOR('x', num, dtype) +#define XYLONFB_IOWR(num, dtype) _IOWR('x', num, dtype) +#define XYLONFB_IO(num) _IO('x', num) + +#define XYLONFB_VSYNC_CTRL XYLONFB_IOR(30, bool) +#define XYLONFB_LAYER_IDX XYLONFB_IOR(31, unsigned int) +#define XYLONFB_LAYER_ALPHA \ + XYLONFB_IOR(32, struct xylonfb_layer_transparency) +#define XYLONFB_LAYER_COLOR_TRANSP_CTRL XYLONFB_IOW(33, bool) +#define XYLONFB_LAYER_COLOR_TRANSP \ + XYLONFB_IOR(34, struct xylonfb_layer_color) +#define XYLONFB_LAYER_GEOMETRY \ + XYLONFB_IOR(35, struct xylonfb_layer_geometry) +#define XYLONFB_LAYER_BUFFER \ + XYLONFB_IOR(36, struct xylonfb_layer_buffer) +#define XYLONFB_LAYER_BUFFER_OFFSET XYLONFB_IOR(37, unsigned int) +#define XYLONFB_BACKGROUND_COLOR \ + XYLONFB_IOR(38, struct xylonfb_layer_color) +#define XYLONFB_LAYER_EXT_BUFF_SWITCH XYLONFB_IOW(39, bool) +#define XYLONFB_HW_ACCESS \ + XYLONFB_IOR(40, struct xylonfb_hw_access) +#define XYLONFB_IP_CORE_VERSION XYLONFB_IOR(41, __u32) +#define XYLONFB_WAIT_EDID XYLONFB_IOW(42, unsigned int) +#define XYLONFB_GET_EDID XYLONFB_IOR(43, char) + +#endif /* __XYLONFB_H__ */