Move two struct definitions defined in pxp_device.c to pxp_device.h.
Now the pxp_device.h has been created for PXP device driver. So all
the type definition should stay in header file not c source file.
Signed-off-by: Fancy Fang <B47543@freescale.com>
static DEFINE_SPINLOCK(pxp_mem_lock);
static LIST_HEAD(head);
-/* To track the allocated memory buffer */
-struct memalloc_record {
- struct list_head list;
- struct pxp_mem_desc mem;
-};
-
-struct pxp_irq_info {
- wait_queue_head_t waitq;
- int irq_pending;
- int hist_status;
- spinlock_t lock;
-};
-
static struct dma_chan *dma_chans[NR_PXP_VIRT_CHANNEL];
static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
#include <uapi/linux/pxp_device.h>
+/* To track the allocated memory buffer */
+struct memalloc_record {
+ struct list_head list;
+ struct pxp_mem_desc mem;
+};
+
+struct pxp_irq_info {
+ wait_queue_head_t waitq;
+ int irq_pending;
+ int hist_status;
+ spinlock_t lock;
+};
+
#endif