virt.h 605 B

12345678910111213141516171819202122232425262728293031
  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_LWP
  14. #include <mmu.h>
  15. #include <ioremap.h>
  16. extern rt_mmu_info mmu_info;
  17. #endif
  18. /* VirtIO */
  19. #define VIRTIO_MMIO_BASE 0x10001000
  20. #define VIRTIO_MMIO_SIZE 0x00001000
  21. #define VIRTIO_MAX_NR 8
  22. #define VIRTIO_IRQ_BASE 1
  23. #define VIRTIO_VENDOR_ID 0x554d4551 /* "QEMU" */
  24. #define MAX_HANDLERS 128
  25. #endif