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 AB803A00BE; Tue, 19 Apr 2022 11:33:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43139427F4; Tue, 19 Apr 2022 11:33:41 +0200 (CEST) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 1888B4014F for ; Mon, 18 Apr 2022 06:29:36 +0200 (CEST) Received: by mail-pg1-f170.google.com with SMTP id r66so16763309pgr.3 for ; Sun, 17 Apr 2022 21:29:36 -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=r8nQ7ld2dbhKum0HvJbDZVZP0JIBHlA/R6YrvZw2SzM=; b=LR+tQwhC4JmCV2avGoJ6IZEz8twN4NGVv2ViLllO2rDoMEeOSEd7uCjKnTls75gj21 NhQEZz5FFBnLGSXT6dnqLVWmoHztwTFnT00jPdQSku4mf4Z5z8ESmFsOammsN5fL/pGn 8FxPfK5iw8j5vgIX2lTwKllb+aLAcydT9FWF0= 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=r8nQ7ld2dbhKum0HvJbDZVZP0JIBHlA/R6YrvZw2SzM=; b=vBO17vnEJOJf0w+u97Pw03Osds3vMVJyUmxLKdpavTgG5qqCh74LIWyMRL0qTEOa8Y 09nYFxPxUSY5AYUuKeuDyxBmlYX45ITNs6jTqlLFkEUUHTAa3wnVBKIxEVKU+TL92+M7 wgVdYhYqVHzyZm/l0FRdUyuWp6KhYRQdsYO1pQJg/sD4O4cD1Z4FGkVV2/zl2gUZiFZn QCPQ+m8BCLP6OTRPdZkr0A2iCXaupNGfmAeMPjUdgq+VBtEFyP3Zcyo/74mkWPPpsg+k 8A2kOH9J0bWzopVQGe+805ouPqx2/0b9S8y3hzGHZXVKvf+aXZd6To/1iPlZACh7WEl/ 9kQQ== X-Gm-Message-State: AOAM531D7FRq1H3yZW5Z9c0vxpa15B+zPT/LgbNPEQUdrK3bYzVWTPNH Ca2QOzL0zNYoVimBMI0yGxP5QJOaErcm0I4E X-Google-Smtp-Source: ABdhPJwKZjLpX1Zz2WVwGCXRhrPhSzX529JnGGxyDZSnV3GyVFX5yDn7ZHsdiouBMmBcWifIL2v+Wg== X-Received: by 2002:aa7:9041:0:b0:4fe:3d6c:1739 with SMTP id n1-20020aa79041000000b004fe3d6c1739mr10301735pfo.13.1650256175337; Sun, 17 Apr 2022 21:29:35 -0700 (PDT) Received: from srikanth-ThinkPad-T450.. ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id e14-20020aa78c4e000000b00506475da4cesm10377577pfd.49.2022.04.17.21.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 21:29:34 -0700 (PDT) From: Srikanth Kaka To: Stephen Hemminger , Long Li Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Subject: [PATCH v4 02/14] bus/vmbus: move independent bus functions Date: Mon, 18 Apr 2022 09:59:03 +0530 Message-Id: <20220418042915.5765-3-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220418042915.5765-1-srikanth.k@oneconvergence.com> References: <20220217160613.70161-16-srikanth.k@oneconvergence.com> <20220418042915.5765-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 19 Apr 2022 11:33:36 +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 OSI 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/osi/vmbus_osi_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 c9a07041a7..030f18020e 100644 --- a/drivers/bus/vmbus/linux/vmbus_bus.c +++ b/drivers/bus/vmbus/linux/vmbus_bus.c @@ -358,18 +358,3 @@ rte_vmbus_scan(void) 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/osi/vmbus_osi_bus.c b/drivers/bus/vmbus/osi/vmbus_osi_bus.c index 8437109717..4aaa5459a8 100644 --- a/drivers/bus/vmbus/osi/vmbus_osi_bus.c +++ b/drivers/bus/vmbus/osi/vmbus_osi_bus.c @@ -3,8 +3,10 @@ * All Rights Reserved. */ +#include #include +#include "private.h" #include "vmbus_osi.h" /* @@ -18,3 +20,18 @@ const rte_uuid_t vmbus_nic_uuid = { 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); +} -- 2.30.2