From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [PATCH RFC 06/24] drm/lima: add lima uapi header Date: Mon, 21 May 2018 12:51:33 -0700 Message-ID: <871se4u6re.fsf@anholt.net> References: <20180519065243.27600-1-yuq825@gmail.com> <20180519065243.27600-7-yuq825@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1856723541==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 93AF86E02E for ; Mon, 21 May 2018 19:51:36 +0000 (UTC) In-Reply-To: <20180519065243.27600-7-yuq825@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org Cc: Simon Shields , Marek Vasut , Connor Abbott , Neil Armstrong , Andrei Paulau <7134956@gmail.com>, Vasily Khoruzhick , Qiang Yu , Erico Nunes List-Id: dri-devel@lists.freedesktop.org --===============1856723541== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Qiang Yu writes: > Signed-off-by: Qiang Yu > --- > include/uapi/drm/lima_drm.h | 195 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 195 insertions(+) > create mode 100644 include/uapi/drm/lima_drm.h > > diff --git a/include/uapi/drm/lima_drm.h b/include/uapi/drm/lima_drm.h > new file mode 100644 > index 000000000000..9df95e46fb2c > --- /dev/null > +++ b/include/uapi/drm/lima_drm.h > @@ -0,0 +1,195 @@ > +/* > + * Copyright (C) 2017-2018 Lima Project Unless you've made some legal organization, your copyrights should probably be held by the individuals that wrote the code. It would be nice to have some comments explaining the API being described here. However, it does seem to follow our 32-vs-64 ABI rules, so it's in pretty good shape. > + * > + * 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 furnished 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, > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL > + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR > + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +#define LIMA_CTX_OP_CREATE 1 > +#define LIMA_CTX_OP_FREE 2 > + > +struct drm_lima_ctx { > + __u32 op; /* in */ > + __u32 id; /* in/out */ > +}; I would recommend separate ioctls for these, given that the implementations are totally separate. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlsDI0UACgkQtdYpNtH8 nugxaxAAm0RUvk/Tm7jpS0DSfyA7VEyo75+0zj43l10hgv8fn/7TwlLFasUK62X9 H9I1dX/6PwWCnkbK3vjHKMgq0GB+vrQjmYHON/8bgLxYWN9q7lIjop0Fs6pmTT4o DYDnEIOn1pAr3aV4nCQZQnA00zIZvFjlqCi61NBUP3xkp2LIRWAujGnNxdjIrXxd l+aQ4tC6F6hf8YNGSjtb17MFhh2d8LLbpeSkHuAVH9DpunlLM+Zl1RHqsVjn6jep 0ZIvjwngzBDCP5UcikcFGh262tmGLxyu1wqas1HTQGtHcyJ5WY7lbgZt8LF60ttt 33tQAAChwkfig7r9/BfGlvc5H3fgKoX4M8dsJkSLj197K1EOl6g8al34ypfotSCK SKP1k2cpiCw0STsVJrgkHMlrKqxPaKj3Gii6anDGMntaGpW4gdTTmdEq7pzSfdIw pN7Tjz9E2VfS1uQTK0HxhGxphlmewPiMNnxS+rB1MrXa2wcU57oaTSuNR+yIRFwL xQfvH6ZDJg8ta1UT2/3JamjJ44VyXlzYuETD3qPBHwJuHDAjrSBoQFcGRUo1A693 Ob3vQ3WLdKVjjads9G5Bx4p9bk90VTYd88SjRVjYF/UStZ6QFFGG4lXhueZ01Scb P3aCP0PGNtnins7GL6Yfw+bl/VoVgFM8nbqJipjVhVM0assBDpE= =Z07o -----END PGP SIGNATURE----- --=-=-=-- --===============1856723541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1856723541==--