Skip to contentSkip to conversation

REV 2 USB virt 2.6 split driver---concrete local buffer reference types

PATCH New harry 1 participant 1 message Nov 23, 2005

lore
Share & tools
lore

harry

author
#0 lore raw

PATCH 5/17 REV 2 USB virt 2.6 split driver---concrete local buffer reference types

This patch implements a local buffer reference type for kernel virtual address space and a remote buffer reference type for buffers up to 16 pages based on grant tables. These types are used by the USB driver for bulk data transfer.

linux-2.6-xen-sparse/drivers/xen/xenidc/Makefile +2 -0
diff -r ec6442c07549 -r 7c011e163562 linux-2.6-xen-sparse/drivers/xen/xenidc/Makefile
@@ -8,3 +8,5 @@
 xenidc-objs += xenidc_remote_buffer_reference.o
 xenidc-objs += xenidc_concatenate.o
 xenidc-objs += xenidc_wrapping.o
+xenidc-objs += xenidc_grant_table.o
+xenidc-objs += xenidc_vaddress.o
linux-2.6-xen-sparse/include/asm-xen/xenidc_remote_buffer_reference.h +2 -1
diff -r ec6442c07549 -r 7c011e163562 linux-2.6-xen-sparse/include/asm-xen/xenidc_remote_buffer_reference.h
@@ -38,7 +38,8 @@
 
 typedef u32 xenidc_rbr_type;
 
-#define XENIDC_RBR_TYPE_NULL 0
+#define XENIDC_RBR_TYPE_NULL        0
+#define XENIDC_RBR_TYPE_GRANT_TABLE 1
 
 #define XENIDC_RBR_ACCESS_FLAGS_READ  1
 #define XENIDC_RBR_ACCESS_FLAGS_WRITE 2
linux-2.6-xen-sparse/drivers/xen/xenidc/xenidc_grant_table.c new file +228 -0

228 lines not on this page · raw message

linux-2.6-xen-sparse/drivers/xen/xenidc/xenidc_vaddress.c new file +249 -0

249 lines not on this page · raw message

linux-2.6-xen-sparse/include/asm-xen/xenidc_grant_table.h new file +60 -0

60 lines not on this page · raw message

linux-2.6-xen-sparse/include/asm-xen/xenidc_vaddress.h new file +43 -0

43 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel