| 77 | } |
| 78 | |
| 79 | static uint64_t |
| 80 | modern_get_features(struct virtio_crypto_hw *hw) |
| 81 | { |
| 82 | uint32_t features_lo, features_hi; |
| 83 | |
| 84 | rte_write32(0, &hw->common_cfg->device_feature_select); |
| 85 | features_lo = rte_read32(&hw->common_cfg->device_feature); |
| 86 | |
| 87 | rte_write32(1, &hw->common_cfg->device_feature_select); |
| 88 | features_hi = rte_read32(&hw->common_cfg->device_feature); |
| 89 | |
| 90 | return ((uint64_t)features_hi << 32) | features_lo; |
| 91 | } |
| 92 | |
| 93 | static void |
| 94 | modern_set_features(struct virtio_crypto_hw *hw, uint64_t features) |
nothing calls this directly
no test coverage detected