From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6E925A0561; Fri, 28 Feb 2020 07:07:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E94B1BFE9; Fri, 28 Feb 2020 07:07:49 +0100 (CET) Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by dpdk.org (Postfix) with ESMTP id 2F8921BFE1 for ; Fri, 28 Feb 2020 07:07:40 +0100 (CET) Received: by mail-lf1-f68.google.com with SMTP id n30so1222359lfh.6 for ; Thu, 27 Feb 2020 22:07:40 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=BkWHlKfwRxFEhM0KeO+M+zdVbYOClna/wx0d5w6C/+s=; b=aIpV8f57VovnbGJeC0JN1uV01vryJcYQzbEVQthoA8DRTRME0+rtYt8PV3okMChoYT wUcyJSu5kNqJYxWmAp3MnNywjINewvcO7yKN64cWwtyfeb3UTSTQ4D7ReHvwmtpzGFwf Thbu1LuqhTkU/MzUU4nOYL/cjXBWLOwLKbAX4Kw5sQhZsuZpJQiBGjJeKaXyr37OCvV0 KmtOeTTGcYSdyFZbIYAlcIY2Z6cChiQpiSC8tYCDrQ4TfrrLB9cYiUzAshvnq++/thMy 6Xi+Ne2KnjES9Qo85Udu74yBzqXMEw0d8eLqgUi1sthT8GjekfXY0sln17euH425yi+f 7ZYg== 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=BkWHlKfwRxFEhM0KeO+M+zdVbYOClna/wx0d5w6C/+s=; b=O62sX721ryg+FzPRIfVG2gh9h/r01wkM8lPNvv2k1lrhywTvN6qya2bihCd7IrOwps rFKtat+ULfMuUlg1zVd+11wbP3nAG4Zeh6bMT9wboGCcX+oiakDdG8J6naICh9jpYP1u Z5Oens2eyoXB4SNtAgcn7zgzvHPCmiuzKldWxUyNlHN5FZbWAONOw4bvYlbvK5g+H5Qo oS+Ub4MmJ7dxS2Apgr0OLTM7O49Cj6HL76N6XfWaJhIEs7BYMPmjnWRIc9dEojL6dNqE 4CJQ+HKt6X/yhjGIDDw0OgZexBGjbIhwdynnBx7nanIW99e0erzpa93HNkvpGM9wIKzq Rwcw== X-Gm-Message-State: ANhLgQ1/WL9Dmg9zDyJLWfRjob1CB8gIGoAe/MbCPqxbItJzpiKtiKm2 rWrBvitCsALvO/lKFhBLcfkFi53N X-Google-Smtp-Source: ADFU+vta+wCN76Rv5c5Bzlt6oLQjKRTz4GnmcDKzW1Wim7CR/1EJWbom4DRD1BPZawVxwMNbhqf1yg== X-Received: by 2002:ac2:4c29:: with SMTP id u9mr1637088lfq.141.1582870058979; Thu, 27 Feb 2020 22:07:38 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.googlemail.com with ESMTPSA id r12sm4819281ljh.105.2020.02.27.22.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 22:07:38 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk Date: Fri, 28 Feb 2020 09:07:23 +0300 Message-Id: <20200228060727.192491-2-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200228060727.192491-1-dmitry.kozliuk@gmail.com> References: <20200227071126.75162e92@Sovereign> <20200228060727.192491-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC PATCH 1/5] pci/windows: add stubs for port IO X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" NetUIO does not currently implement port I/O, which is used by some drivers, notable virtio-net in legacy mode. Signed-off-by: Dmitry Kozlyuk --- drivers/bus/pci/windows/pci.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/bus/pci/windows/pci.c b/drivers/bus/pci/windows/pci.c index 75168c542..387ed4f02 100644 --- a/drivers/bus/pci/windows/pci.c +++ b/drivers/bus/pci/windows/pci.c @@ -143,6 +143,38 @@ int rte_pci_write_config(const struct rte_pci_device *dev, return pci_config_io(dev, (void *)buf, len, offset, PCI_IO_WRITE); } +int +rte_pci_ioport_map(struct rte_pci_device *dev, int bar, + struct rte_pci_ioport *p) +{ + RTE_SET_USED(dev); + RTE_SET_USED(bar); + RTE_SET_USED(p); + RTE_LOG(ERR, EAL, "I/O port mapping not supported for Windows\n"); + return -1; +} + +void +rte_pci_ioport_read(struct rte_pci_ioport *p, + void *data, size_t len, off_t offset) +{ + RTE_SET_USED(p); + RTE_SET_USED(data); + RTE_SET_USED(len); + RTE_SET_USED(offset); + RTE_LOG(ERR, EAL, "I/O port read not implemented for Windows\n"); +} + +void +rte_pci_ioport_write(struct rte_pci_ioport *p, + const void *data, size_t len, off_t offset) +{ + RTE_SET_USED(p); + RTE_SET_USED(data); + RTE_SET_USED(len); + RTE_SET_USED(offset); + RTE_LOG(ERR, EAL, "I/O port write not implemented for Windows\n"); +} static int send_ioctl(HANDLE f, DWORD ioctl, -- 2.25.1