[dpdk-dev] [PATCH 3/3] virtio: Add a new layer to abstract pci access method

2016-01-19 Thread Tetsuya Mukawa
On 2016/01/18 22:46, Yuanhan Liu wrote: > On Mon, Jan 18, 2016 at 06:13:09PM +0900, Tetsuya Mukawa wrote: >> +struct virtio_pci_access_ops { >> +uint8_t (*legacy_read8)(struct virtio_hw *hw, uint8_t *addr); >> +uint16_t (*legacy_read16)(struct virtio_hw *hw, uint16_t *addr); >> +uint32_

[dpdk-dev] [PATCH 3/3] virtio: Add a new layer to abstract pci access method

2016-01-19 Thread Xie, Huawei
On 1/18/2016 9:44 PM, Yuanhan Liu wrote: > On Mon, Jan 18, 2016 at 06:13:09PM +0900, Tetsuya Mukawa wrote: >> +struct virtio_pci_access_ops { >> +uint8_t (*legacy_read8)(struct virtio_hw *hw, uint8_t *addr); >> +uint16_t (*legacy_read16)(struct virtio_hw *hw, uint16_t *addr); >> +uint32

[dpdk-dev] [PATCH 3/3] virtio: Add a new layer to abstract pci access method

2016-01-18 Thread Yuanhan Liu
On Mon, Jan 18, 2016 at 06:13:09PM +0900, Tetsuya Mukawa wrote: > +struct virtio_pci_access_ops { > + uint8_t (*legacy_read8)(struct virtio_hw *hw, uint8_t *addr); > + uint16_t (*legacy_read16)(struct virtio_hw *hw, uint16_t *addr); > + uint32_t (*legacy_read32)(struct virtio_hw *hw, ui

[dpdk-dev] [PATCH 3/3] virtio: Add a new layer to abstract pci access method

2016-01-18 Thread Tetsuya Mukawa
This patch adds below function pointers to abstract pci access method. - legacy_read8/16/32 - legacy_write8/16/32 - modern_read8/16/32 - modern_write8/16/32 - map_pci_cfg - unmap_pci_cfg - get_cfg_addr - read_pci_cfg This layer will be used when virtio-net PMD supports container extension.