diff --git a/bsp/qemu-vexpress-gemini/.config b/bsp/qemu-vexpress-gemini/.config index 572f15f7861ea45672209e0d75f0505142e776da..a403198e78c36e83205cd697f6acb62f64541ad8 100644 --- a/bsp/qemu-vexpress-gemini/.config +++ b/bsp/qemu-vexpress-gemini/.config @@ -183,7 +183,6 @@ CONFIG_RT_VBUS_USING_FLOW_CONTROL=y CONFIG_RT_VBUS_USING_TESTS=y CONFIG__RT_VBUS_RING_BASE=0x6f800000 CONFIG__RT_VBUS_RING_SZ=2097152 -CONFIG_RT_VMM_RB_BLK_NR=32767 CONFIG_RT_VBUS_GUEST_VIRQ=14 CONFIG_RT_VBUS_HOST_VIRQ=15 CONFIG_RT_VBUS_SHELL_DEV_NAME="vbser0" diff --git a/bsp/qemu-vexpress-gemini/rtconfig.h b/bsp/qemu-vexpress-gemini/rtconfig.h index d0c93855aae3b58640a17086a8b2d6623f17a00c..a5b23d1604acdc61f6b6b8108d3e68f60e3f4597 100644 --- a/bsp/qemu-vexpress-gemini/rtconfig.h +++ b/bsp/qemu-vexpress-gemini/rtconfig.h @@ -166,7 +166,6 @@ #define RT_VBUS_USING_TESTS #define _RT_VBUS_RING_BASE 0x6f800000 #define _RT_VBUS_RING_SZ 2097152 -#define RT_VMM_RB_BLK_NR 32767 #define RT_VBUS_GUEST_VIRQ 14 #define RT_VBUS_HOST_VIRQ 15 #define RT_VBUS_SHELL_DEV_NAME "vbser0" diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig index d1b38ec90faa0dc20bad75008ba11988a9c0e98f..c1afca994f5a84b076b50c51de7569825e45f7f8 100644 --- a/components/vbus/Kconfig +++ b/components/vbus/Kconfig @@ -39,11 +39,6 @@ if RT_USING_VBUS help 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 int "RT_VBUS_GUEST_VIRQ" help diff --git a/components/vbus/share_hdr/vbus_api.h b/components/vbus/share_hdr/vbus_api.h index 71fd4165c3b471468d6a5a23fa6e285f5fc581aa..3ad2a9ae6829d679c8c8d63551cfc2b912599c96 100644 --- a/components/vbus/share_hdr/vbus_api.h +++ b/components/vbus/share_hdr/vbus_api.h @@ -6,6 +6,8 @@ #define RT_VBUS_BLK_HEAD_SZ 4 #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__ #include /* For size_t */