summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorshaojinchun <[email protected]>2018-08-27 18:15:38 +0800
committershaojinchun <[email protected]>2018-08-27 18:15:38 +0800
commit84e8c6568337fee7f6daa936cb1b822c1154b4e6 (patch)
tree58c6e3991cb71d82017d8972a01904b40f4df1e8 /components
parent000887795f935b6088c9172c03e51420d4589a15 (diff)
RT_VMM_RB_BLK_NR now is calculated from _RT_VBUS_RING_SZ
Diffstat (limited to 'components')
-rw-r--r--components/vbus/Kconfig5
-rw-r--r--components/vbus/share_hdr/vbus_api.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig
index d1b38ec90f..c1afca994f 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 71fd4165c3..3ad2a9ae68 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 <stddef.h> /* For size_t */