Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / include / linux / amba / pl330.h
blob12e023c19ac18270adf34d0ddf9675af3e3cc609
1 /* linux/include/linux/amba/pl330.h
3 * Copyright (C) 2010 Samsung Electronics Co. Ltd.
4 * Jaswinder Singh <jassi.brar@samsung.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #ifndef __AMBA_PL330_H_
13 #define __AMBA_PL330_H_
15 #include <linux/dmaengine.h>
16 #include <asm/hardware/pl330.h>
18 struct dma_pl330_platdata {
20 * Number of valid peripherals connected to DMAC.
21 * This may be different from the value read from
22 * CR0, as the PL330 implementation might have 'holes'
23 * in the peri list or the peri could also be reached
24 * from another DMAC which the platform prefers.
26 u8 nr_valid_peri;
27 /* Array of valid peripherals */
28 u8 *peri_id;
29 /* Operational capabilities */
30 dma_cap_mask_t cap_mask;
31 /* Bytes to allocate for MC buffer */
32 unsigned mcbuf_sz;
35 extern bool pl330_filter(struct dma_chan *chan, void *param);
36 #endif /* __AMBA_PL330_H_ */