ecf2d82159
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <zhangbingru@rt-thread.com> Co-authored-by: zhkag <zhkag@foxmail.com>
32 lines
611 B
C
32 lines
611 B
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2021-02-17 GuEe-GUI the first version
|
|
*/
|
|
|
|
#ifndef VIRT_H__
|
|
#define VIRT_H__
|
|
|
|
#include <rtdef.h>
|
|
|
|
#ifdef RT_USING_USERSPACE
|
|
#include <mmu.h>
|
|
#include <ioremap.h>
|
|
|
|
extern rt_mmu_info mmu_info;
|
|
#endif
|
|
|
|
/* VirtIO */
|
|
#define VIRTIO_MMIO_BASE 0x10001000
|
|
#define VIRTIO_MMIO_SIZE 0x00001000
|
|
#define VIRTIO_MAX_NR 8
|
|
#define VIRTIO_IRQ_BASE 1
|
|
#define VIRTIO_VENDOR_ID 0x554d4551 /* "QEMU" */
|
|
|
|
#define MAX_HANDLERS 128
|
|
#endif
|