summaryrefslogtreecommitdiff
path: root/drivers/media/usb/tm6000/tm6000.h
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2012-10-04 17:04:28 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-04 20:54:21 +0400
commit16427faf28674451a7a0485ab0a929402f355ffd (patch)
tree954b9a70cffce0a8120a298b8254ec8fc83947c2 /drivers/media/usb/tm6000/tm6000.h
parent6823627b933decf5842fcfc37cc71c549f56c6a2 (diff)
downloadlinux-16427faf28674451a7a0485ab0a929402f355ffd.tar.xz
[media] tm6000: Add parameter to keep urb bufs allocated
On systems where it cannot be assured that enough continous memory is available all the time it can be very useful to only allocate the memory once when it is needed the first time. Afterwards the initially allocated memory will be reused, so it is ensured that the memory will stay available until the driver is unloaded. [mchehab@redhat.com: Codingstyle fixups] Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/tm6000/tm6000.h')
-rw-r--r--drivers/media/usb/tm6000/tm6000.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/usb/tm6000/tm6000.h b/drivers/media/usb/tm6000/tm6000.h
index 6df418658c9c..173dcd7a7284 100644
--- a/drivers/media/usb/tm6000/tm6000.h
+++ b/drivers/media/usb/tm6000/tm6000.h
@@ -264,6 +264,11 @@ struct tm6000_core {
spinlock_t slock;
+ /* urb dma buffers */
+ char **urb_buffer;
+ dma_addr_t *urb_dma;
+ unsigned int urb_size;
+
unsigned long quirks;
};