]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/media/platform/mxc/output/mxc_pxp_v4l2.h
ENGR00293132-1 pxp/v4l2: change memory alloc policy for PxP output buffer
[karo-tx-linux.git] / drivers / media / platform / mxc / output / mxc_pxp_v4l2.h
index f1d3da78c345886cb5bdcf8be58b093941396004..8abb4c17f3fd901f17d5eed811e89fdbfe1c987c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2014 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -37,6 +37,12 @@ struct pxp_buffer {
        struct scatterlist                      sg[3];
 };
 
+struct dma_mem {
+       void *vaddr;
+       dma_addr_t paddr;
+       size_t size;
+};
+
 struct pxps {
        struct platform_device *pdev;
 
@@ -51,11 +57,9 @@ struct pxps {
        struct list_head outq;
        struct pxp_channel      *pxp_channel[1];        /* We need 1 channel */
        struct pxp_config_data pxp_conf;
+       struct dma_mem outbuf;
 
        int output;
-       u32 *outb;
-       dma_addr_t outb_phys;
-       u32 outb_size;
 
        /* Current S0 configuration */
        struct pxp_data_format *s0_fmt;