From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: dev@dpdk.org
Cc: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Subject: [dpdk-dev] [RFC PATCH 1/5] pci/windows: add stubs for port IO
Date: Fri, 28 Feb 2020 09:07:23 +0300 [thread overview]
Message-ID: <20200228060727.192491-2-dmitry.kozliuk@gmail.com> (raw)
In-Reply-To: <20200228060727.192491-1-dmitry.kozliuk@gmail.com>
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 <dmitry.kozliuk@gmail.com>
---
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
next prev parent reply other threads:[~2020-02-28 6:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 8:45 [dpdk-dev] Windows Draft Build Dmitry Kozlyuk
2020-02-10 5:03 ` Ranjit Menon
2020-02-10 6:14 ` Dmitry Kozlyuk
2020-02-17 1:14 ` Dmitry Kozlyuk
2020-02-18 21:44 ` Ranjit Menon
2020-02-25 2:37 ` Dmitry Kozlyuk
2020-02-25 9:06 ` Ranjit Menon
2020-02-26 6:22 ` Dmitry Kozlyuk
2020-02-27 4:11 ` Dmitry Kozlyuk
2020-02-27 15:25 ` William Tu
2020-02-27 15:42 ` David Marchand
2020-02-28 6:07 ` [dpdk-dev] [RFC PATCH 0/5] virtio-net support for Windows draft Dmitry Kozlyuk
2020-02-28 6:07 ` Dmitry Kozlyuk [this message]
2020-02-28 6:07 ` [dpdk-dev] [RFC PATCH 2/5] net: add stub for RARP packet generation on Windows Dmitry Kozlyuk
2020-02-28 6:07 ` [dpdk-dev] [RFC PATCH 3/5] pci/windows: split config I/O into series of fixed-size operations Dmitry Kozlyuk
2020-02-28 6:07 ` [dpdk-dev] [RFC PATCH 4/5] netuio: change class for Net to custom Dmitry Kozlyuk
2020-02-28 6:07 ` [dpdk-dev] [RFC PATCH 5/5] mk/windows: add virtio-net PMD Dmitry Kozlyuk
2021-08-14 15:55 ` William Tu
2021-08-14 17:00 ` Dmitry Kozlyuk
2021-08-15 14:28 ` William Tu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200228060727.192491-2-dmitry.kozliuk@gmail.com \
--to=dmitry.kozliuk@gmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).