RT_VMM_RB_BLK_NR now is calculated from _RT_VBUS_RING_SZ

This commit is contained in:
shaojinchun 2018-08-27 18:15:38 +08:00
parent 000887795f
commit 84e8c65683
4 changed files with 2 additions and 7 deletions

View File

@ -183,7 +183,6 @@ CONFIG_RT_VBUS_USING_FLOW_CONTROL=y
CONFIG_RT_VBUS_USING_TESTS=y CONFIG_RT_VBUS_USING_TESTS=y
CONFIG__RT_VBUS_RING_BASE=0x6f800000 CONFIG__RT_VBUS_RING_BASE=0x6f800000
CONFIG__RT_VBUS_RING_SZ=2097152 CONFIG__RT_VBUS_RING_SZ=2097152
CONFIG_RT_VMM_RB_BLK_NR=32767
CONFIG_RT_VBUS_GUEST_VIRQ=14 CONFIG_RT_VBUS_GUEST_VIRQ=14
CONFIG_RT_VBUS_HOST_VIRQ=15 CONFIG_RT_VBUS_HOST_VIRQ=15
CONFIG_RT_VBUS_SHELL_DEV_NAME="vbser0" CONFIG_RT_VBUS_SHELL_DEV_NAME="vbser0"

View File

@ -166,7 +166,6 @@
#define RT_VBUS_USING_TESTS #define RT_VBUS_USING_TESTS
#define _RT_VBUS_RING_BASE 0x6f800000 #define _RT_VBUS_RING_BASE 0x6f800000
#define _RT_VBUS_RING_SZ 2097152 #define _RT_VBUS_RING_SZ 2097152
#define RT_VMM_RB_BLK_NR 32767
#define RT_VBUS_GUEST_VIRQ 14 #define RT_VBUS_GUEST_VIRQ 14
#define RT_VBUS_HOST_VIRQ 15 #define RT_VBUS_HOST_VIRQ 15
#define RT_VBUS_SHELL_DEV_NAME "vbser0" #define RT_VBUS_SHELL_DEV_NAME "vbser0"

View File

@ -39,11 +39,6 @@ if RT_USING_VBUS
help help
VBUS size of the ring buffer. VBUS size of the ring buffer.
config RT_VMM_RB_BLK_NR
int "RT_VMM_RB_BLK_NR"
help
Number of ring buffer.
config RT_VBUS_GUEST_VIRQ config RT_VBUS_GUEST_VIRQ
int "RT_VBUS_GUEST_VIRQ" int "RT_VBUS_GUEST_VIRQ"
help help

View File

@ -6,6 +6,8 @@
#define RT_VBUS_BLK_HEAD_SZ 4 #define RT_VBUS_BLK_HEAD_SZ 4
#define RT_VBUS_MAX_PKT_SZ (256 - RT_VBUS_BLK_HEAD_SZ) #define RT_VBUS_MAX_PKT_SZ (256 - RT_VBUS_BLK_HEAD_SZ)
#define RT_VMM_RB_BLK_NR (_RT_VBUS_RING_SZ / 64 - 1)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <stddef.h> /* For size_t */ #include <stddef.h> /* For size_t */