mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 20:10:50 +07:00
cd07251521
The transfer direction for a channel can be inferred from the transfer request and the need for specifying transfer direction in platfrom data can be eliminated. So the structure definition 'struct dma_pl330_peri' is no longer required. The channel's private data is set to point to a channel id specified in the platform data (instead of an instance of type 'struct dma_pl330_peri'). The filter function is correspondingly modified to match the channel id. With the 'struct dma_pl330_peri' removed from platform data, the dma controller transfer capabilities cannot be inferred any more. Hence, the dma controller capabilities is specified using platform data. Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/* linux/include/linux/amba/pl330.h
|
|
*
|
|
* Copyright (C) 2010 Samsung Electronics Co. Ltd.
|
|
* Jaswinder Singh <jassi.brar@samsung.com>
|
|
*
|
|
* 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
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __AMBA_PL330_H_
|
|
#define __AMBA_PL330_H_
|
|
|
|
#include <linux/dmaengine.h>
|
|
#include <asm/hardware/pl330.h>
|
|
|
|
struct dma_pl330_platdata {
|
|
/*
|
|
* Number of valid peripherals connected to DMAC.
|
|
* This may be different from the value read from
|
|
* CR0, as the PL330 implementation might have 'holes'
|
|
* in the peri list or the peri could also be reached
|
|
* from another DMAC which the platform prefers.
|
|
*/
|
|
u8 nr_valid_peri;
|
|
/* Array of valid peripherals */
|
|
u8 *peri_id;
|
|
/* Operational capabilities */
|
|
dma_cap_mask_t cap_mask;
|
|
/* Bytes to allocate for MC buffer */
|
|
unsigned mcbuf_sz;
|
|
};
|
|
|
|
extern bool pl330_filter(struct dma_chan *chan, void *param);
|
|
#endif /* __AMBA_PL330_H_ */
|