From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH 5/7] eal/linux: mmap ioports on ppc64 Date: Fri, 13 May 2016 16:33:17 +0200 Message-ID: References: <1463143859-3105-1-git-send-email-olivier.matz@6wind.com> <1463143859-3105-6-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" , Chao Zhu To: Olivier Matz Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 798F32C6B for ; Fri, 13 May 2016 16:33:37 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id g17so33504363wme.1 for ; Fri, 13 May 2016 07:33:37 -0700 (PDT) In-Reply-To: <1463143859-3105-6-git-send-email-olivier.matz@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, May 13, 2016 at 2:50 PM, Olivier Matz wrote: > On PPC64, the ioports are mapped in memory. Implement the missing part > of ioport API for PPC64 when using uio. This may also work on other > architectures but it has not been tested. > > Signed-off-by: David Marchand > Signed-off-by: Olivier Matz > --- > lib/librte_eal/common/include/rte_pci.h | 4 +- > lib/librte_eal/linuxapp/eal/eal_pci.c | 4 +- > lib/librte_eal/linuxapp/eal/eal_pci_init.h | 6 ++ > lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 119 +++++++++++++++++++++++------ > 4 files changed, 107 insertions(+), 26 deletions(-) > > diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h > index fd049d1..4657396 100644 > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -105,7 +105,8 @@ extern struct pci_device_list pci_device_list; /**< Global list of PCI devices. > /** Nb. of values in PCI resource format. */ > #define PCI_RESOURCE_FMT_NVAL 3 > > -/** IO resource type: memory address space */ > +/** IO resource type: */ > +#define IORESOURCE_IO 0x00000100 > #define IORESOURCE_MEM 0x00000200 > > /** This could go in a linux-specific header. > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c > index 1a93725..f1ea52b 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci.c > +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c > @@ -191,9 +191,9 @@ pci_find_max_end_va(void) > } > > /* parse one line of the "resource" sysfs file (note that the 'line' > - * string is modified) > + * string is modified > */ Garbage ? -- David Marchand