diff options
-rw-r--r-- | AUTHORS | 6 | ||||
-rw-r--r-- | COPYING | 18 | ||||
-rw-r--r-- | Makefile.am | 19 | ||||
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | hwaproto.h | 206 | ||||
-rw-r--r-- | hwaproto.pc.in | 9 | ||||
-rw-r--r-- | hwaproto.txt | 1 | ||||
-rw-r--r-- | packaging/xorg-x11-proto-hwa.spec | 57 |
10 files changed, 342 insertions, 0 deletions
@@ -0,0 +1,6 @@ +Roman Peresipky <r.peresipkyn@samsung.com> +Oleksandr Rozov <o.rozov@samsung.com> +Sergii Voloshynov <s.voloshynov@samsung.com> +Sergey Sizonov <s.sizonov@samsung.com> +Andrey Sokolenko <a.sokolenko@samsung.com> +Roman Marchenko <r.marchenko@samsung.com>
\ No newline at end of file @@ -0,0 +1,18 @@ +Copyright (C) 2000 - 2012 Samsung Electronics co., Ltd. All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is fur- +nished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- +NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- +NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e7409c2 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,19 @@ +hwadir = $(includedir)/X11/extensions +hwa_HEADERS = hwaproto.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = hwaproto.pc + +dist_doc_DATA = hwaproto.txt + +MAINTAINERCLEANFILES = ChangeLog INSTALL + +.PHONY: ChangeLog INSTALL + +INSTALL: + $(INSTALL_CMD) + +ChangeLog: + $(CHANGELOG_CMD) + +dist-hook: ChangeLog INSTALL @@ -0,0 +1 @@ +[TODO] diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..bbc9f28 --- /dev/null +++ b/configure.ac @@ -0,0 +1,13 @@ +AC_PREREQ([2.60]) +AC_INIT([HWAProto], [0.1.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg]) +AM_INIT_AUTOMAKE([foreign dist-bzip2]) +AM_MAINTAINER_MODE + +# Require xorg-macros: XORG_DEFAULT_OPTIONS +m4_ifndef([XORG_MACROS_VERSION], + [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.3) +XORG_DEFAULT_OPTIONS + +AC_OUTPUT([Makefile + hwaproto.pc]) diff --git a/hwaproto.h b/hwaproto.h new file mode 100644 index 0000000..623316b --- /dev/null +++ b/hwaproto.h @@ -0,0 +1,206 @@ +/* + * Copyright © 2015 samsung + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that copyright + * notice and this permission notice appear in supporting documentation, and + * that the name of the copyright holders not be used in advertising or + * publicity pertaining to distribution of the software without specific, + * written prior permission. The copyright holders make no representations + * about the suitability of this software for any purpose. It is provided "as + * is" without express or implied warranty. + * + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THIS SOFTWARE. + */ + +#ifndef _HWA_PROTO_H_ +#define _HWA_PROTO_H_ + +#define HWA_NAME "HWA" +#define HWA_MAJOR 1 +#define HWA_MINOR 0 + +#define HWANumberErrors 0 +#define HWANumberEvents 0 + +/* Requests */ +#define X_HWAQueryVersion 0 +#define X_HWACursorEnable 1 +#define X_HWACursorRotate 2 +#define X_HWAScreenInvertNegative 3 +#define X_HWAScreenScale 4 +#define X_HWAShowLayer 5 +#define X_HWAHideLayer 6 + +/* Amount of requests */ +#define HWANumberRequests 7 + +/* Events */ +#define HWAConfigureNotify 0 + +/* Event Masks */ +#define HWAConfigureNotifyMask 1 + +#define HWAAllEvents (HWAConfigureNotifyMask) + + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 majorVersion B32; + CARD32 minorVersion B32; +} xHWAQueryVersionReq; +#define sz_xHWAQueryVersionReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 majorVersion B32; + CARD32 minorVersion B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; +} xHWAQueryVersionReply; +#define sz_xHWAQueryVersionReply 32 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD8 enable; + CARD8 pad0; + CARD16 pad1 B16; +} xHWACursorEnableReq; +#define sz_xHWACursorEnableReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + CARD8 pad0; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD16 status B16; + CARD16 pad1 B16; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xHWACursorEnableReply; +#define sz_xHWACursorEnableReply 32 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 crtc_id B32; + CARD16 degree B16; + CARD16 pad1 B16; +} xHWACursorRotateReq; +#define sz_xHWACursorRotateReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + CARD8 unused; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD16 status B16; + CARD16 degree B16; + CARD32 pad1 B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; +} xHWACursorRotateReply; +#define sz_xHWACursorRotateReply 32 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 crtc_id B32; + CARD8 enable; + CARD8 pad6; + CARD16 pad7 B16; +} xHWAScreenInvertNegativeReq; +#define sz_xHWAScreenInvertNegativeReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad8; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD8 status; + CARD8 pad9; + CARD16 pad10 B16; + CARD32 pad11 B32; + CARD32 pad12 B32; + CARD32 pad13 B32; + CARD32 pad14 B32; + CARD32 pad15 B32; +} xHWAScreenInvertNegativeReply; +#define sz_xHWAScreenInvertNegativeReply 32 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 crtc_id B32; + CARD8 enable; + CARD8 pad16; + CARD16 pad17 B16; + CARD32 x B32; + CARD32 y B32; + CARD32 w B32; + CARD32 h B32; +} xHWAScreenScaleReq; +#define sz_xHWAScreenScaleReq 28 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad18; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD8 status; + CARD8 pad19; + CARD16 pad20 B16; + CARD32 pad21 B32; + CARD32 pad22 B32; + CARD32 pad23 B32; + CARD32 pad24 B32; + CARD32 pad25 B32; +} xHWAScreenScaleReply; +#define sz_xHWAScreenScaleReply 32 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 crtc_id B32; + CARD16 ovrlayer B16; + CARD16 pad1 B16; +} xHWAShowLayerReq; +#define sz_xHWAShowLayerReq 12 + +typedef struct { + CARD8 reqType; + CARD8 hwaReqType; + CARD16 length B16; + CARD32 crtc_id B32; + CARD16 ovrlayer B16; + CARD16 pad1 B16; +} xHWAHideLayerReq; +#define sz_xHWAHideLayerReq 12 + + +#endif diff --git a/hwaproto.pc.in b/hwaproto.pc.in new file mode 100644 index 0000000..d6b38aa --- /dev/null +++ b/hwaproto.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: HWAProto +Description: HWA extension headers +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} diff --git a/hwaproto.txt b/hwaproto.txt new file mode 100644 index 0000000..aa0f644 --- /dev/null +++ b/hwaproto.txt @@ -0,0 +1 @@ +[TODO] diff --git a/packaging/xorg-x11-proto-hwa.spec b/packaging/xorg-x11-proto-hwa.spec new file mode 100644 index 0000000..6c13726 --- /dev/null +++ b/packaging/xorg-x11-proto-hwa.spec @@ -0,0 +1,57 @@ +Name: xorg-x11-proto-hwa +Summary: X.Org X11 Protocol hwaproto +Version: 0.1.1 +Release: 1 +VCS: framework/uifw/xorg/proto/x11proto-hwa#38ccb3606c2fbe64572793fd1be0aa7ab38f75aa +Group: Development/System +License: MIT +URL: http://www.x.org +Source0: %{name}-%{version}.tar.gz +Provides: hwaproto + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: pkgconfig +BuildRequires: pkgconfig(xorg-macros) + +%description +Description: %{summary} +This package provides development headers describing the wire protocol +for the H/W Access extension. + +More information about X.Org can be found at: +<URL:http://www.X.org> +<URL:http://xorg.freedesktop.org> +<URL:http://lists.freedesktop.org/mailman/listinfo/xorg> + +This package is built from the X.org hwaproto proto module. + +%prep +%setup -q + +%build + +./autogen.sh +%reconfigure --disable-static \ + --libdir=%{_datadir} \ + --without-xmlto + +# Call make instruction with smp support +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/license +cp -af COPYING %{buildroot}/usr/share/license/%{name} +%make_install + +%remove_docs + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +/usr/share/license/%{name} +%{_includedir}/X11/extensions/*.h +%{_datadir}/pkgconfig/*.pc |