From patchwork Thu Apr 12 16:01:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10338919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A4FAC600D0 for ; Thu, 12 Apr 2018 16:05:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B8D427D16 for ; Thu, 12 Apr 2018 16:05:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A3E427F60; Thu, 12 Apr 2018 16:05:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAA3028814 for ; Thu, 12 Apr 2018 16:01:56 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B5632267403; Thu, 12 Apr 2018 18:01:36 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2FC60267403; Thu, 12 Apr 2018 18:01:34 +0200 (CEST) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by alsa0.perex.cz (Postfix) with ESMTP id 55F3A2673F4 for ; Thu, 12 Apr 2018 18:01:30 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id b189-v6so8492324lfe.2 for ; Thu, 12 Apr 2018 09:01:30 -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=dIBIPijqiGiq9gUr/gTTNxIaJ8+w7iHNG5Dp06MgiuU=; b=s33wqz5BoCzKkmHSrlx/A0P6qxoTKi7esR3nX2KM8pTWTOaVcugY/OnLNPVM7DpioM HLx2mpwN2gN4yqirR8tzzaYtVbnrffhUs9Mz3M5EyuhW5ODYu5AL0FPYCqokhpRhMJFq cEpyHpOTzrBppG46nI7E3eF/rSfY0lR68GCQNcDQ1AhTeo0P+1FtvvkGHcCwPn0WxqgZ dBR6JoDRL/cWg14qk5MqYSs3nTjKaSVqExjd0kKaW1EMlCl+w1GkcdgVfyvR6Id3/w+l ijUCUYAcyS2GsryT5PYFW8Pc550KdSH7bkqvKTaBHEb2nz84ngRC2W/ER+T/3Zd8tp9r ZfBA== 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=dIBIPijqiGiq9gUr/gTTNxIaJ8+w7iHNG5Dp06MgiuU=; b=gYzCvAZCyT4mkRnyGyOQVa10y9QxBZSodL+ZRBUcAZteqSiI+wsE2MC4GGwW4dJgGC hPp4UzDOZBkS5elhRtrohQ21XkHcVriENiz+20LH7SBCi2bEIgbz04Z45m2ZwFoSAYVw VF+FI3sOt1I3SsMKv4Eve5O2zbyunpeZkNSenWKkoBq7t/9ILVWTlTGmlAXIKbYKD6uk 1TZlVnnvLrn7bJWUfOZ8jRlj0Jx4mZlysNo7a2Y2ABgu8Lu0wQjeRfOzkVuVFofeVHfu S55+yAKfdB7quYJesPFZhhwt9zelu+UJgldyNKmKrO/+nslx+kEH9omAW32KYtktCAbh GwOw== X-Gm-Message-State: ALQs6tBDeb3mSa6dBOAIkUqPtLL2TzyfTjToRXzFL8pL3dgfzPNr9En8 jstmmo6wqCE8ObCKf1BpH/KAJg== X-Google-Smtp-Source: AIpwx49jHl9b9JT1a4EKZ3M7ZAPwe5KUvH5gYzG5SPqZ/QizdUPQHUWR8jqyvn9BpkckInlh/KUdoA== X-Received: by 2002:a19:4c56:: with SMTP id z83-v6mr5805256lfa.141.1523548889740; Thu, 12 Apr 2018 09:01:29 -0700 (PDT) Received: from localhost.localdomain (207-17-94-178.pool.ukrtel.net. [178.94.17.207]) by smtp.gmail.com with ESMTPSA id m11sm644541ljh.37.2018.04.12.09.01.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 09:01:28 -0700 (PDT) From: Oleksandr Andrushchenko X-Google-Original-From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Thu, 12 Apr 2018 19:01:00 +0300 Message-Id: <20180412160102.15833-4-oleksandr_andrushchenko@epam.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180412160102.15833-1-oleksandr_andrushchenko@epam.com> References: <20180412160102.15833-1-oleksandr_andrushchenko@epam.com> Cc: jgross@suse.com, iurii.konovalenko@globallogic.com, konrad.wilk@oracle.com, tiwai@suse.de, oleksandr.dmytryshyn@globallogic.com, andr2000@gmail.com, boris.ostrovsky@oracle.com Subject: [alsa-devel] [PATCH 3/5] xen/sndif: Make requests and responses 64 octets long X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Extend the size of the requests and responses to 64 octets. Bump protocol version to 2. Signed-off-by: Oleksandr Andrushchenko --- include/xen/interface/io/sndif.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/xen/interface/io/sndif.h b/include/xen/interface/io/sndif.h index b775df96f021..d48175f1a3d2 100644 --- a/include/xen/interface/io/sndif.h +++ b/include/xen/interface/io/sndif.h @@ -41,7 +41,7 @@ * Protocol version ****************************************************************************** */ -#define XENSND_PROTOCOL_VERSION 1 +#define XENSND_PROTOCOL_VERSION 2 /* ****************************************************************************** @@ -533,7 +533,7 @@ * *---------------------------------- Requests --------------------------------- * - * All request packets have the same length (32 octets) + * All request packets have the same length (64 octets) * All request packets have common header: * 0 1 2 3 octet * +----------------+----------------+----------------+----------------+ @@ -570,7 +570,7 @@ * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * pcm_rate - uint32_t, stream data rate, Hz @@ -639,7 +639,7 @@ struct xensnd_page_directory { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * Request read/write - used for read (for capture) or write (for playback): @@ -657,7 +657,7 @@ struct xensnd_page_directory { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_READ for read or XENSND_OP_WRITE for write @@ -684,7 +684,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_SET_VOLUME for volume set @@ -726,7 +726,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_MUTE for mute or XENSND_OP_UNMUTE for unmute @@ -759,7 +759,7 @@ struct xensnd_rw_req { /* *---------------------------------- Responses -------------------------------- * - * All response packets have the same length (32 octets) + * All response packets have the same length (64 octets) * * Response for all requests: * 0 1 2 3 octet @@ -772,7 +772,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * id - uint16_t, copied from the request @@ -787,7 +787,7 @@ struct xensnd_req { union { struct xensnd_open_req open; struct xensnd_rw_req rw; - uint8_t reserved[24]; + uint8_t reserved[56]; } op; }; @@ -796,7 +796,7 @@ struct xensnd_resp { uint8_t operation; uint8_t reserved; int32_t status; - uint8_t reserved1[24]; + uint8_t reserved1[56]; }; DEFINE_RING_TYPES(xen_sndif, struct xensnd_req, struct xensnd_resp);