UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer zhangfeng
Observer
1,781 Views
Registered: ‎10-29-2016

struct dma_pl330_platdata in pl330.c

Hi, all.

 

I'm reading the following pl330.c.

 

https://github.com/Xilinx/linux-xlnx/blob/master/drivers/dma/pl330.c

 

There is a struct called dma_pl330_platdata. I think this struct is created by another .c file. 

 

So I searched all the linux kernel files, but cannot find it.

 

Can you tell me where is the dma_pl330_platdata created?

 


static int pl330_probe(struct amba_device *adev, const struct amba_id *id) { struct dma_pl330_platdata *pdat; struct pl330_config *pcfg; struct pl330_dmac *pl330; struct dma_pl330_chan *pch, *_p; struct dma_device *pd; struct resource *res; int i, ret, irq; int num_chan; struct device_node *np = adev->dev.of_node; pdat = dev_get_platdata(&adev->dev); ret = dma_set_mask_and_coherent(&adev->dev, DMA_BIT_MASK(32)); if (ret) return ret;

 

 

 Thanks in advance.

 

Feng

 

 

0 Kudos