[dpdk-dev] [PATCH v3 3/4] eal: introduce pci ioport api

2016-02-16 Thread Yuanhan Liu
On Tue, Feb 16, 2016 at 07:09:49AM +0100, David Marchand wrote: > On Tue, Feb 16, 2016 at 3:36 AM, Yuanhan Liu > wrote: > > On Mon, Feb 15, 2016 at 02:24:25PM +0100, David Marchand wrote: > >> +/** > >> + * A structure used to access io resources for a pci device. > >> + * rte_pci_ioport is arch,

[dpdk-dev] [PATCH v3 3/4] eal: introduce pci ioport api

2016-02-16 Thread Yuanhan Liu
On Mon, Feb 15, 2016 at 02:24:25PM +0100, David Marchand wrote: > +/** > + * A structure used to access io resources for a pci device. > + * rte_pci_ioport is arch, os, driver specific, and should not be used > outside > + * of pci ioport api. > + */ > +struct rte_pci_ioport { > + struct

[dpdk-dev] [PATCH v3 3/4] eal: introduce pci ioport api

2016-02-16 Thread David Marchand
On Tue, Feb 16, 2016 at 3:36 AM, Yuanhan Liu wrote: > On Mon, Feb 15, 2016 at 02:24:25PM +0100, David Marchand wrote: >> +/** >> + * A structure used to access io resources for a pci device. >> + * rte_pci_ioport is arch, os, driver specific, and should not be used >> outside >> + * of pci

[dpdk-dev] [PATCH v3 3/4] eal: introduce pci ioport api

2016-02-15 Thread David Marchand
Most of the code is inspired on virtio driver. rte_pci_ioport structure is filled at map time with anything needed for later read / write calls. At the moment, offset field is used to store a x86 ioport (uint16_t) and will be reused for other arches. TODO: check multi process, check intr_handle