From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 27334A00C4; Tue, 26 Apr 2022 10:33:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A752342806; Tue, 26 Apr 2022 10:32:40 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 27D9040042 for ; Sat, 23 Apr 2022 06:29:53 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id h1so9780919pfv.12 for ; Fri, 22 Apr 2022 21:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p8txLBA49Wf9JjMLrg/QljVI7XyklphucZw6+M19n1g=; b=DvQR7eaSZlmFrnfJu4U55LHBES+VU1gWXM5Wwfm3rwMf7bN6MkHUvw8HQaVE9iEUuk 5SPFQ0tpqtLxK9S6Q1jsFKyZZ7nEvaSDOoDO1t/4fU8LTpt5E8gRk2BiVE1exOf1jSLm hB7wzDob9TIFkLGQgj9vZ32uM0YUjq+pylC7I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p8txLBA49Wf9JjMLrg/QljVI7XyklphucZw6+M19n1g=; b=q4r+nVugyqzBsdkDdY7BcGTcbwEd46nywR9EY1d0kZ8uqTkDmE7sxnlSmtUME0Sajo UGlG/8foGEF+hIqG7JVw6y/o35A+Loe9bPP1zvoBWFieOBrhLBVrbKbVIehW3VQz9h4V NKlMIJbG7/jPVUXFmswwA4O3kfnVBI/GVcgknu64OCCHyZsviUsFDselNou1XJW1KxbH MW9DKrcaj5LBFe7FzHcyeTya9asj87QAFpxtlo5Nest13ZK2giZJevf1Xig32tYcMMNK jDSxZat2mo64TDVZ5ENCYxn2E2kg9gtefAA9jZQYq+0DRorb+tToN/AQ94R5RXhPYFHj da9A== X-Gm-Message-State: AOAM530hUAtz950VAgYR6slJj+XsalR3IJR06FHpwhxLJ7qjqFT+g3k6 Dt99O1bIe1Xgo3Jycb9zLNpzCg== X-Google-Smtp-Source: ABdhPJw3IFdN5oiMMeh+8xE5CEcQ+k8p2hJ1njHaKyd5DxIQWJ3oCG8SXOzF6N2qKvErX6dmHhn2EQ== X-Received: by 2002:a63:844a:0:b0:3aa:be8e:877c with SMTP id k71-20020a63844a000000b003aabe8e877cmr5712871pgd.241.1650688192198; Fri, 22 Apr 2022 21:29:52 -0700 (PDT) Received: from home-desktop.localdomain ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id g6-20020a17090a714600b001d7f3bb11d7sm4056438pjs.53.2022.04.22.21.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 21:29:51 -0700 (PDT) From: Srikanth Kaka To: Stephen Hemminger , Long Li Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Subject: [PATCH v5 02/14] bus/vmbus: move independent bus functions Date: Sat, 23 Apr 2022 09:58:37 +0530 Message-Id: <20220423042849.7718-3-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220423042849.7718-1-srikanth.k@oneconvergence.com> References: <20220418042915.5765-1-srikanth.k@oneconvergence.com> <20220423042849.7718-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 26 Apr 2022 10:32:34 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org move independent Linux bus functions to OS independent file Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_bus.c | 15 --------------- drivers/bus/vmbus/unix/vmbus_unix_bus.c | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/bus/vmbus/linux/vmbus_bus.c b/drivers/bus/vmbus/linux/vmbus_bus.c index e649537..18233a5 100644 --- a/drivers/bus/vmbus/linux/vmbus_bus.c +++ b/drivers/bus/vmbus/linux/vmbus_bus.c @@ -358,18 +358,3 @@ closedir(dir); return -1; } - -void rte_vmbus_irq_mask(struct rte_vmbus_device *device) -{ - vmbus_uio_irq_control(device, 1); -} - -void rte_vmbus_irq_unmask(struct rte_vmbus_device *device) -{ - vmbus_uio_irq_control(device, 0); -} - -int rte_vmbus_irq_read(struct rte_vmbus_device *device) -{ - return vmbus_uio_irq_read(device); -} diff --git a/drivers/bus/vmbus/unix/vmbus_unix_bus.c b/drivers/bus/vmbus/unix/vmbus_unix_bus.c index f76a361..96cb968 100644 --- a/drivers/bus/vmbus/unix/vmbus_unix_bus.c +++ b/drivers/bus/vmbus/unix/vmbus_unix_bus.c @@ -3,8 +3,10 @@ * All Rights Reserved. */ +#include #include +#include "private.h" #include "vmbus_unix.h" /* @@ -18,3 +20,18 @@ 0x91, 0x3f, 0xf2, 0xd2, 0xf9, 0x65, 0xed, 0xe }; + +void rte_vmbus_irq_mask(struct rte_vmbus_device *device) +{ + vmbus_uio_irq_control(device, 1); +} + +void rte_vmbus_irq_unmask(struct rte_vmbus_device *device) +{ + vmbus_uio_irq_control(device, 0); +} + +int rte_vmbus_irq_read(struct rte_vmbus_device *device) +{ + return vmbus_uio_irq_read(device); +} -- 1.8.3.1