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 11 #ifndef VIRT_H__ 12 #define VIRT_H__ 13 14 #include <rtdef.h> 15 16 #ifdef RT_USING_SMART 17 #include <mmu.h> 18 #include <ioremap.h> 19 20 #endif 21 22 /* VirtIO */ 23 #define VIRTIO_MMIO_BASE 0x10001000 24 #define VIRTIO_MMIO_SIZE 0x00001000 25 #define VIRTIO_MAX_NR 8 26 #define VIRTIO_IRQ_BASE 1 27 #define VIRTIO_VENDOR_ID 0x554d4551 /* "QEMU" */ 28 29 #define MAX_HANDLERS 128 30 #endif 31