From patchwork Mon Mar 19 07:22:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10291727 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 AADA260349 for ; Mon, 19 Mar 2018 07:23:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F5B828E87 for ; Mon, 19 Mar 2018 07:23:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8283028E90; Mon, 19 Mar 2018 07:23:07 +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=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 D349228E87 for ; Mon, 19 Mar 2018 07:23:06 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C593026748B; Mon, 19 Mar 2018 08:22:45 +0100 (CET) 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 C5A312674D1; Mon, 19 Mar 2018 08:22:43 +0100 (CET) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by alsa0.perex.cz (Postfix) with ESMTP id 23A6C2673ED for ; Mon, 19 Mar 2018 08:22:39 +0100 (CET) Received: by mail-lf0-f67.google.com with SMTP id z143-v6so17571688lff.3 for ; Mon, 19 Mar 2018 00:22:39 -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=t4g7xq9uOEljkbcPrf+PdMf6bnEcXcmtQcajhfOx9q0=; b=AMteTefAVDne2rFlNnn915dTLAy0Ng2DZZ05GYSuQNEG7lJ/jVGyzxPpppo6O/MgiN V4RX85/VIkvaxfR+WjmMxTsi5MiNLnzj9xLlLaTMUtzWg9VQHsiJ3/nGMDck+oY9YcoG t02dSJiPQ3ulMwZ2aK0StHvFKGLbxuvtAb9QemSTZdDsDuqMsJ4j3XiwlsJotY9lncdB 2aQL603yg5lH7deylyimZfS6PO6Wab1Y3ZpgQGpEuWwoNMZOkDmjN7YW4PmjABMMlxuP byOkIOtaftUFxW3zin2RY3k81pPZCtgr63x/RNti98U1gA+SntUOOLdK13cIKvfW1sob SQRg== 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=t4g7xq9uOEljkbcPrf+PdMf6bnEcXcmtQcajhfOx9q0=; b=AzXexQ3EPSG1Pu/5RWz3Z+zg24e9EAFn3aBW336Y941CqcLLNsbqJcQFiFH0pmw6Ka pzJbRcgcZQdI+5MacNvLqOX0kM0YB2oqF45FUPCVcjvKyQElK4zgzdZvB4iP0VLJOgKs ihUSTXRKZtzmIEbZuZJnFINpkvEY7P+kOmZdb+u8u4C43EFAKfSQNOeWfSwoH0rEerHZ pHaU933cHeKd5SnWnJVRNeC9/3AaY+1o/SDlX5dt0hbhkkL+9A/kcQvooMoZD5lWrTBy Ti979nyj4XJrOKZLGq+MVYPZA2XQt/Iu60WUmmN9B0iunAkQNwKkPoHM1YPf8yxjdDGQ k0JQ== X-Gm-Message-State: AElRT7GEzvPbGrOvwAfKy+YObV3fqPnGiC2ZDfxVxiNP4SBRKRiy2SGZ mkMqNa/iNJjkmMbupi0R3S6kIQ== X-Google-Smtp-Source: AG47ELu+WhGkpmPMO9BH4Ko0pMaICEpL1n9PLUNwsgPCjly0sZj9NlAz/PI8WbDTryof3Qbp7/RFbQ== X-Received: by 10.46.21.10 with SMTP id s10mr3033900ljd.118.1521444158693; Mon, 19 Mar 2018 00:22:38 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id e123-v6sm3221317lfg.47.2018.03.19.00.22.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Mar 2018 00:22:38 -0700 (PDT) From: Oleksandr Andrushchenko To: alsa-devel@alsa-project.org, xen-devel@lists.xenproject.org, konrad.wilk@oracle.com, tiwai@suse.de Date: Mon, 19 Mar 2018 09:22:22 +0200 Message-Id: <1521444144-12451-4-git-send-email-andr2000@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521444144-12451-1-git-send-email-andr2000@gmail.com> References: <1521444144-12451-1-git-send-email-andr2000@gmail.com> Cc: andr2000@gmail.com, Oleksandr Andrushchenko Subject: [alsa-devel] [Xen-devel][PATCH v3 3/5] 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 From: Oleksandr Andrushchenko Extend the size of the requests and responses to 64 octets. Bump protocol version to 2. Signed-off-by: Oleksandr Andrushchenko --- xen/include/public/io/sndif.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xen/include/public/io/sndif.h b/xen/include/public/io/sndif.h index 916be1d3a13f..ec47ff990f2c 100644 --- a/xen/include/public/io/sndif.h +++ b/xen/include/public/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);