virtio-rng.h 592 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Virtio RNG Support
  3. *
  4. * Copyright Red Hat, Inc. 2012
  5. * Copyright Amit Shah <amit.shah@redhat.com>
  6. *
  7. * This work is licensed under the terms of the GNU GPL, version 2 or
  8. * (at your option) any later version. See the COPYING file in the
  9. * top-level directory.
  10. */
  11. #ifndef _QEMU_VIRTIO_RNG_H
  12. #define _QEMU_VIRTIO_RNG_H
  13. #include "qemu/rng.h"
  14. #include "qemu/rng-random.h"
  15. /* The Virtio ID for the virtio rng device */
  16. #define VIRTIO_ID_RNG 4
  17. struct VirtIORNGConf {
  18. RngBackend *rng;
  19. uint64_t max_bytes;
  20. uint32_t period_ms;
  21. RndRandom *default_backend;
  22. };
  23. #endif