summaryrefslogtreecommitdiff
path: root/bsp/xuantie/virt64/c908/board/virt.h
blob: 40fcf00648c1bebc82198b1c72396501d702d209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * 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_SMART
#include <mmu.h>
#include <ioremap.h>

#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