From patchwork Thu Apr 1 12:12:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 413604 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp499269jai; Thu, 1 Apr 2021 05:14:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9JShIGqBt++r3yz2WLm+b+ExcwjWg5Wq2yO4tIcXNuwPe1WfSZrXwgRsTPcAvHLOiPOyx X-Received: by 2002:a92:c612:: with SMTP id p18mr6399812ilm.148.1617279244024; Thu, 01 Apr 2021 05:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617279244; cv=none; d=google.com; s=arc-20160816; b=kwSVf57UYLW5JASYXFSEIXkZFmXmTS5vZbxK5vJf7MtTPJLeqrqAvlV/TjIDRoL3tL LwDIMMkyvCQNIz6T6tENgHF3jpHN571p7PTuCO2szgT7utKXLuFKXO2+aLI+4VT4QAme +yRd7rH/y8OkNtq5J7zBzcYQ5JpneUYJteuAcWLfGbs2MOhmt0eVo2WNibsDkk10q7vz ua4PRZJaaGbObInKwp5Cy+FBgmAjzrNu7EMmxuF9Ts6l8m8R996d4YwGRUCw7mJi36e6 EJORlAkUjTWk8cYlhn+ehX3rTOJotEXrM05tIQ1QiOwM8MeRQ42n3Ud9imUucUafjtgY ZtUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Qpna+j/iGaaxi0QXVwjA+9BLwCSZkAAM2isUXvU5/SM=; b=EXwjYwQU4dYQK/79KzvcX15DggQN+DgaZJgqjwCnlbFvHhFX33j7QxKTojFNYDl3fQ n41FEv0rbfnIKILXD0Ni7ljzL6/QNWhDRMQ0K1tc+k0GdbTGeQEANQ5pX7Qv3S0YsM6i UccO3Tu924hN0mzHtBV21//RN4Tx2PRLz9WnHauDoSFS9rz7ZolwREizy3ozkmK/JYu2 eSN9D4o/HYHqrHzzNk9Vi6kej+xa72VavQ8IBQ0agjFlNqaaPkKxd9NuB5/iE4qJKzrV E9VnqAmjY7j66F3ZES6mtCmOUCSFpz3vnESpr8tku75fWCrRs25nTkNW36ILcPMq0wEK FDuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RPTqm4gm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p9si4673504iov.92.2021.04.01.05.14.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Apr 2021 05:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RPTqm4gm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRwD5-0000YI-EE for patch@linaro.org; Thu, 01 Apr 2021 08:14:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRwCH-0000Vw-6N for qemu-devel@nongnu.org; Thu, 01 Apr 2021 08:13:13 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:35686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRwCC-0004N0-VM for qemu-devel@nongnu.org; Thu, 01 Apr 2021 08:13:12 -0400 Received: by mail-pl1-x62d.google.com with SMTP id e14so932354plj.2 for ; Thu, 01 Apr 2021 05:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qpna+j/iGaaxi0QXVwjA+9BLwCSZkAAM2isUXvU5/SM=; b=RPTqm4gmEKBwNg5UZdc2f8DZKLN+49ch7L0+yU03gzKBfdFeFzG/Duzf/JW6uCzWHl nd9TC+mJzgPBANg1pm+KOH+gt+um+PzMKDz1l6ec+VHc3vGncMyw/toxu8KF1HvvFQMj lIXF1a9znryVEfsVoX95Z3QyEx+bLg5bckNyWIyqI8KYbPKFS7qeL2VFjHpqLm+W6ONC rzrzZ78ZG1l8NKiWOSSvWonG9izlMpjyKcXlPSwMbWTyDUKViMp880UlsL+0idWTQ6Js TwwmFPLie8luZAof0nInIFw+Nl6/lsH2m3y0SVg8I3JbnyK1dFcqDNFvA/JEQ3lHI26Q yLyg== 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:mime-version:content-transfer-encoding; bh=Qpna+j/iGaaxi0QXVwjA+9BLwCSZkAAM2isUXvU5/SM=; b=HulQnT/NYa+bXdnzLcRmsHxsdEgVMKGV0q0nZj/74uhgIQ7D3SQK8ZlTG/iymk+WY0 A1HvtBEnTTCma8eawzwrgFv0PhegJZgUyUvVgTaryWY30/JPjUcKjLpDdsN4vhqKuXmk hDZ4byQH7X4fbSr2j+jQgXfEpJY5zvRP2QM9NsxDSwA9UPo64lbHhbJIz+tJ52s9KEze xjy/3u0fEeqTjX5DXOztfrExowcprxMnhLcaLYb71PA5D5Sa+0z8XsgZlWVjAH2XCbFY 9GAPKU1RST0PWAMGcirfQQTXi5M0kPuKL2BizB8xCFb4PmxBJXxftD8pAThPBhXUBL4F vyMA== X-Gm-Message-State: AOAM530UiF/72rlzUjfTbPelRHm/G/uSI060FxXtjcmii+GY0J1ZEn2+ wyG8nGPscL5DjUs2oRPZb+zzn4ZNHFkDNA== X-Received: by 2002:a17:903:4106:b029:e7:49bd:4266 with SMTP id r6-20020a1709034106b02900e749bd4266mr7745634pld.56.1617279187619; Thu, 01 Apr 2021 05:13:07 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id b3sm5535575pjg.41.2021.04.01.05.13.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Apr 2021 05:13:07 -0700 (PDT) From: Viresh Kumar To: qemu-devel@nongnu.org Subject: [PATCH V2 1/6] !Merge: Update virtio headers from kernel Date: Thu, 1 Apr 2021 17:42:30 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=viresh.kumar@linaro.org; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vincent Guittot , Jie Deng , Viresh Kumar , Bill Mills , Arnd Bergmann , Mike Holmes , =?utf-8?q?Alex_Benn=C3=A9e?= , stratos-dev@op-lists.linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" DO NOT MERGE Update Linux virtio headers with help of ./scripts/update-linux-headers.sh ~/lsrc/linux.git Signed-off-by: Viresh Kumar --- include/standard-headers/linux/virtio_i2c.h | 40 +++++++++++++++++++++ include/standard-headers/linux/virtio_ids.h | 1 + 2 files changed, 41 insertions(+) create mode 100644 include/standard-headers/linux/virtio_i2c.h -- 2.25.0.rc1.19.g042ed3e048af diff --git a/include/standard-headers/linux/virtio_i2c.h b/include/standard-headers/linux/virtio_i2c.h new file mode 100644 index 000000000000..378d31c4a527 --- /dev/null +++ b/include/standard-headers/linux/virtio_i2c.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */ +/* + * Definitions for virtio I2C Adpter + * + * Copyright (c) 2021 Intel Corporation. All rights reserved. + */ + +#ifndef _LINUX_VIRTIO_I2C_H +#define _LINUX_VIRTIO_I2C_H + +#include "standard-headers/linux/types.h" + +/* The bit 0 of the @virtio_i2c_out_hdr.@flags, used to group the requests */ +#define VIRTIO_I2C_FLAGS_FAIL_NEXT 0x00000001 + +/** + * struct virtio_i2c_out_hdr - the virtio I2C message OUT header + * @addr: the controlled device address + * @padding: used to pad to full dword + * @flags: used for feature extensibility + */ +struct virtio_i2c_out_hdr { + uint16_t addr; + uint16_t padding; + uint32_t flags; +}; + +/** + * struct virtio_i2c_in_hdr - the virtio I2C message IN header + * @status: the processing result from the backend + */ +struct virtio_i2c_in_hdr { + uint8_t status; +}; + +/* The final status written by the device */ +#define VIRTIO_I2C_MSG_OK 0 +#define VIRTIO_I2C_MSG_ERR 1 + +#endif /* _LINUX_VIRTIO_I2C_H */ diff --git a/include/standard-headers/linux/virtio_ids.h b/include/standard-headers/linux/virtio_ids.h index bc1c0621f5ed..b89391dff6c9 100644 --- a/include/standard-headers/linux/virtio_ids.h +++ b/include/standard-headers/linux/virtio_ids.h @@ -54,5 +54,6 @@ #define VIRTIO_ID_FS 26 /* virtio filesystem */ #define VIRTIO_ID_PMEM 27 /* virtio pmem */ #define VIRTIO_ID_MAC80211_HWSIM 29 /* virtio mac80211-hwsim */ +#define VIRTIO_ID_I2C_ADAPTER 34 /* virtio i2c adapter */ #endif /* _LINUX_VIRTIO_IDS_H */