virt.h 578 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-02-17 GuEe-GUI the first version
  9. */
  10. #ifndef VIRT_H__
  11. #define VIRT_H__
  12. #include <rtdef.h>
  13. #ifdef RT_USING_SMART
  14. #include <mmu.h>
  15. #include <ioremap.h>
  16. #endif
  17. /* VirtIO */
  18. #define VIRTIO_MMIO_BASE 0x10001000
  19. #define VIRTIO_MMIO_SIZE 0x00001000
  20. #define VIRTIO_MAX_NR 8
  21. #define VIRTIO_IRQ_BASE 1
  22. #define VIRTIO_VENDOR_ID 0x554d4551 /* "QEMU" */
  23. #define MAX_HANDLERS 128
  24. #endif