diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
| commit | 282f445a779ed76fca9884fe377bf56a3088b208 (patch) | |
| tree | d9abcf526baee0100672851e0a8894c19e762a39 /include/linux/amba | |
| parent | 68f30fbee19cc67849b9fa8e153ede70758afe81 (diff) | |
| parent | 90a4c0f51e8e44111a926be6f4c87af3938a79c3 (diff) | |
Merge remote-tracking branch 'linus/master' into x86/urgent
Diffstat (limited to 'include/linux/amba')
| -rw-r--r-- | include/linux/amba/bus.h | 7 | ||||
| -rw-r--r-- | include/linux/amba/mmci.h | 2 | ||||
| -rw-r--r-- | include/linux/amba/pl022.h | 4 | ||||
| -rw-r--r-- | include/linux/amba/pl061.h | 2 | ||||
| -rw-r--r-- | include/linux/amba/pl08x.h | 4 | ||||
| -rw-r--r-- | include/linux/amba/pl330.h | 15 |
6 files changed, 15 insertions, 19 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index fcbbe71a3cc1..724c69c40bb8 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
| 18 | #include <linux/device.h> | 18 | #include <linux/device.h> |
| 19 | #include <linux/mod_devicetable.h> | ||
| 19 | #include <linux/err.h> | 20 | #include <linux/err.h> |
| 20 | #include <linux/resource.h> | 21 | #include <linux/resource.h> |
| 21 | #include <linux/regulator/consumer.h> | 22 | #include <linux/regulator/consumer.h> |
| @@ -35,12 +36,6 @@ struct amba_device { | |||
| 35 | unsigned int irq[AMBA_NR_IRQS]; | 36 | unsigned int irq[AMBA_NR_IRQS]; |
| 36 | }; | 37 | }; |
| 37 | 38 | ||
| 38 | struct amba_id { | ||
| 39 | unsigned int id; | ||
| 40 | unsigned int mask; | ||
| 41 | void *data; | ||
| 42 | }; | ||
| 43 | |||
| 44 | struct amba_driver { | 39 | struct amba_driver { |
| 45 | struct device_driver drv; | 40 | struct device_driver drv; |
| 46 | int (*probe)(struct amba_device *, const struct amba_id *); | 41 | int (*probe)(struct amba_device *, const struct amba_id *); |
diff --git a/include/linux/amba/mmci.h b/include/linux/amba/mmci.h index 21114810c7c0..0101e9c17fa1 100644 --- a/include/linux/amba/mmci.h +++ b/include/linux/amba/mmci.h | |||
| @@ -30,6 +30,7 @@ struct dma_chan; | |||
| 30 | * @cd_invert: true if the gpio_cd pin value is active low | 30 | * @cd_invert: true if the gpio_cd pin value is active low |
| 31 | * @capabilities: the capabilities of the block as implemented in | 31 | * @capabilities: the capabilities of the block as implemented in |
| 32 | * this platform, signify anything MMC_CAP_* from mmc/host.h | 32 | * this platform, signify anything MMC_CAP_* from mmc/host.h |
| 33 | * @capabilities2: more capabilities, MMC_CAP2_* from mmc/host.h | ||
| 33 | * @dma_filter: function used to select an appropriate RX and TX | 34 | * @dma_filter: function used to select an appropriate RX and TX |
| 34 | * DMA channel to be used for DMA, if and only if you're deploying the | 35 | * DMA channel to be used for DMA, if and only if you're deploying the |
| 35 | * generic DMA engine | 36 | * generic DMA engine |
| @@ -52,6 +53,7 @@ struct mmci_platform_data { | |||
| 52 | int gpio_cd; | 53 | int gpio_cd; |
| 53 | bool cd_invert; | 54 | bool cd_invert; |
| 54 | unsigned long capabilities; | 55 | unsigned long capabilities; |
| 56 | unsigned long capabilities2; | ||
| 55 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); | 57 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); |
| 56 | void *dma_rx_param; | 58 | void *dma_rx_param; |
| 57 | void *dma_tx_param; | 59 | void *dma_tx_param; |
diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h index 4ce98f54186b..572f637299c9 100644 --- a/include/linux/amba/pl022.h +++ b/include/linux/amba/pl022.h | |||
| @@ -238,6 +238,9 @@ struct dma_chan; | |||
| 238 | * @enable_dma: if true enables DMA driven transfers. | 238 | * @enable_dma: if true enables DMA driven transfers. |
| 239 | * @dma_rx_param: parameter to locate an RX DMA channel. | 239 | * @dma_rx_param: parameter to locate an RX DMA channel. |
| 240 | * @dma_tx_param: parameter to locate a TX DMA channel. | 240 | * @dma_tx_param: parameter to locate a TX DMA channel. |
| 241 | * @autosuspend_delay: delay in ms following transfer completion before the | ||
| 242 | * runtime power management system suspends the device. A setting of 0 | ||
| 243 | * indicates no delay and the device will be suspended immediately. | ||
| 241 | */ | 244 | */ |
| 242 | struct pl022_ssp_controller { | 245 | struct pl022_ssp_controller { |
| 243 | u16 bus_id; | 246 | u16 bus_id; |
| @@ -246,6 +249,7 @@ struct pl022_ssp_controller { | |||
| 246 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); | 249 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); |
| 247 | void *dma_rx_param; | 250 | void *dma_rx_param; |
| 248 | void *dma_tx_param; | 251 | void *dma_tx_param; |
| 252 | int autosuspend_delay; | ||
| 249 | }; | 253 | }; |
| 250 | 254 | ||
| 251 | /** | 255 | /** |
diff --git a/include/linux/amba/pl061.h b/include/linux/amba/pl061.h index 2412af944f1f..fb83c0453489 100644 --- a/include/linux/amba/pl061.h +++ b/include/linux/amba/pl061.h | |||
| @@ -7,7 +7,7 @@ struct pl061_platform_data { | |||
| 7 | unsigned gpio_base; | 7 | unsigned gpio_base; |
| 8 | 8 | ||
| 9 | /* number of the first IRQ. | 9 | /* number of the first IRQ. |
| 10 | * If the IRQ functionality in not desired this must be set to NO_IRQ. | 10 | * If the IRQ functionality in not desired this must be set to 0. |
| 11 | */ | 11 | */ |
| 12 | unsigned irq_base; | 12 | unsigned irq_base; |
| 13 | 13 | ||
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h index 9eabffbc4e50..033f6aa670de 100644 --- a/include/linux/amba/pl08x.h +++ b/include/linux/amba/pl08x.h | |||
| @@ -134,7 +134,7 @@ struct pl08x_txd { | |||
| 134 | struct dma_async_tx_descriptor tx; | 134 | struct dma_async_tx_descriptor tx; |
| 135 | struct list_head node; | 135 | struct list_head node; |
| 136 | struct list_head dsg_list; | 136 | struct list_head dsg_list; |
| 137 | enum dma_data_direction direction; | 137 | enum dma_transfer_direction direction; |
| 138 | dma_addr_t llis_bus; | 138 | dma_addr_t llis_bus; |
| 139 | struct pl08x_lli *llis_va; | 139 | struct pl08x_lli *llis_va; |
| 140 | /* Default cctl value for LLIs */ | 140 | /* Default cctl value for LLIs */ |
| @@ -197,7 +197,7 @@ struct pl08x_dma_chan { | |||
| 197 | dma_addr_t dst_addr; | 197 | dma_addr_t dst_addr; |
| 198 | u32 src_cctl; | 198 | u32 src_cctl; |
| 199 | u32 dst_cctl; | 199 | u32 dst_cctl; |
| 200 | enum dma_data_direction runtime_direction; | 200 | enum dma_transfer_direction runtime_direction; |
| 201 | dma_cookie_t lc; | 201 | dma_cookie_t lc; |
| 202 | struct list_head pend_list; | 202 | struct list_head pend_list; |
| 203 | struct pl08x_txd *at; | 203 | struct pl08x_txd *at; |
diff --git a/include/linux/amba/pl330.h b/include/linux/amba/pl330.h index d12f077a6daf..12e023c19ac1 100644 --- a/include/linux/amba/pl330.h +++ b/include/linux/amba/pl330.h | |||
| @@ -12,17 +12,9 @@ | |||
| 12 | #ifndef __AMBA_PL330_H_ | 12 | #ifndef __AMBA_PL330_H_ |
| 13 | #define __AMBA_PL330_H_ | 13 | #define __AMBA_PL330_H_ |
| 14 | 14 | ||
| 15 | #include <linux/dmaengine.h> | ||
| 15 | #include <asm/hardware/pl330.h> | 16 | #include <asm/hardware/pl330.h> |
| 16 | 17 | ||
| 17 | struct dma_pl330_peri { | ||
| 18 | /* | ||
| 19 | * Peri_Req i/f of the DMAC that is | ||
| 20 | * peripheral could be reached from. | ||
| 21 | */ | ||
| 22 | u8 peri_id; /* specific dma id */ | ||
| 23 | enum pl330_reqtype rqtype; | ||
| 24 | }; | ||
| 25 | |||
| 26 | struct dma_pl330_platdata { | 18 | struct dma_pl330_platdata { |
| 27 | /* | 19 | /* |
| 28 | * Number of valid peripherals connected to DMAC. | 20 | * Number of valid peripherals connected to DMAC. |
| @@ -33,9 +25,12 @@ struct dma_pl330_platdata { | |||
| 33 | */ | 25 | */ |
| 34 | u8 nr_valid_peri; | 26 | u8 nr_valid_peri; |
| 35 | /* Array of valid peripherals */ | 27 | /* Array of valid peripherals */ |
| 36 | struct dma_pl330_peri *peri; | 28 | u8 *peri_id; |
| 29 | /* Operational capabilities */ | ||
| 30 | dma_cap_mask_t cap_mask; | ||
| 37 | /* Bytes to allocate for MC buffer */ | 31 | /* Bytes to allocate for MC buffer */ |
| 38 | unsigned mcbuf_sz; | 32 | unsigned mcbuf_sz; |
| 39 | }; | 33 | }; |
| 40 | 34 | ||
| 35 | extern bool pl330_filter(struct dma_chan *chan, void *param); | ||
| 41 | #endif /* __AMBA_PL330_H_ */ | 36 | #endif /* __AMBA_PL330_H_ */ |
