blob: 5195497b25a4550579c2ce106e690b1c4f8c5a72 (
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
|
#ifndef MEMORY_LAYOUT_H
#define MEMORY_LAYOUT_H
#if defined __cplusplus
extern "C" {
#endif
/*slave core0*/
/* 与linux共享的内存 */
#define SLAVE00_SOURCE_TABLE_ADDR 0xc0000000 /*与linux协商好的地址*/
#define SLAVE00_KICK_IO_ADDR 0xc0224000
/* MEM = |tx vring|rx vring|share buffer| */
#define SLAVE00_SHARE_MEM_ADDR 0xffffffff /*全F表示等待linux分配*/
#define SLAVE00_SHARE_MEM_SIZE 0x100000 /*共享内存大小*/
#define SLAVE00_VRING_SIZE 0x8000UL
#define SLAVE00_VRING_NUM 0x100
#define SLAVE00_TX_VRING_ADDR 0xffffffff /*全F表示等待linux分配*/
#define SLAVE00_RX_VRING_ADDR 0xffffffff /*全F表示等待linux分配*/
#define SLAVE00_SOURCE_TABLE_ATTRIBUTE (MT_NORMAL|MT_P_RW_U_NA)
#define SLAVE00_SHARE_BUFFER_ATTRIBUTE (MT_NORMAL|MT_P_RW_U_NA)
#if defined __cplusplus
}
#endif
#endif /* MEMORY_LAYOUT_H */
|