| 316 | } |
| 317 | |
| 318 | static void |
| 319 | modern_write_dev_config(struct virtio_hw *hw, size_t offset, |
| 320 | const void *src, int length) |
| 321 | { |
| 322 | struct virtio_pci_dev *dev = virtio_pci_get_dev(hw); |
| 323 | int i; |
| 324 | const uint8_t *p = src; |
| 325 | |
| 326 | for (i = 0; i < length; i++) |
| 327 | rte_write8((*p++), (((uint8_t *)dev->dev_cfg) + offset + i)); |
| 328 | } |
| 329 | |
| 330 | static uint64_t |
| 331 | modern_get_features(struct virtio_hw *hw) |
nothing calls this directly
no test coverage detected