struct pxp_irq_info is only used by PXP device driver, so it is unreasonable
to define it in pxp_dma.h which will be included by EPDC, V4L2 PXP and PXP
device driver.
Signed-off-by: Fancy Fang <B47543@freescale.com>
static DEFINE_SPINLOCK(pxp_chan_lock);
static LIST_HEAD(head);
static LIST_HEAD(list);
-static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
struct pxp_chan_handle {
int chan_id;
struct list_head list;
};
+struct pxp_irq_info {
+ wait_queue_head_t waitq;
+ int irq_pending;
+ int hist_status;
+ spinlock_t lock;
+};
+static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
+
static int pxp_alloc_dma_buffer(struct pxp_mem_desc *mem)
{
mem->cpu_addr = (unsigned long)
char eof_name[16]; /* EOF IRQ name for request_irq() */
};
-struct pxp_irq_info {
- wait_queue_head_t waitq;
- int irq_pending;
- int hist_status;
- spinlock_t lock;
-};
-
#define to_tx_desc(tx) container_of(tx, struct pxp_tx_desc, txd)
#define to_pxp_channel(d) container_of(d, struct pxp_channel, dma_chan)