patch-2.1.17 linux/drivers/sbus/audio/bounce.h

Next file: linux/drivers/sbus/char/cgsix.c
Previous file: linux/drivers/sbus/audio/bounce.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/drivers/sbus/audio/bounce.h linux/drivers/sbus/audio/bounce.h
@@ -0,0 +1,23 @@
+#ifndef _BOUNCE_H_
+#define _BOUNCE_H_
+
+#include <linux/types.h>
+
+/* Each page that is used for a bounce buffer has the following header
+ * at the top which points to the next page in the free or in-use list
+ * and provides some other stats for drivers.
+ */
+
+#define NR_BOUNCE_PAGES 32
+
+struct bounce_page
+{
+  struct bounce_page *next;
+  __u32 size;
+  __u32 remaining;
+  __u8 *current;
+  __u8 data[PAGE_SIZE - 1*sizeof(struct bounce_page *)
+	   - 2*sizeof(__u32) - sizeof(__u8)];
+};
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov