Re: [Ocf-linux-users] Marvell CESA: platform_data
Brought to you by:
david-m
|
From: 张绪峰 <sea...@12...> - 2011-11-22 05:09:24
|
At 2011-11-18 22:22:14,ana...@wi... wrote:
>Hi,
>
>In OCF-linux file cesa_ocf_drv.c, there is the following code in
>function mv_cesa_ocf_init() line 1179.
>
> cesa_device.plat_data = pdev->dev.platform_data;
>
>I was not able to find where platform_data was set. I suppose it
>should've been done in Linux architecture files (specifically one of the
>files in /arch/arm/mach-kirkwood), probably where kirkwood_crypto_device
>is defined.
>
>But I could not find it in code for kernel 2.6.31.8. In later version,
>i.e 3.1.1, this has been changed to refer orion_crypto structures.
>Again, can't find where platform_data is set for CESA.
This should be the platform_data register for CESA in 3.1.1:
plat-orion/common.c +945:
void __init orion_crypto_init(unsigned long mapbase,
unsigned long srambase,
unsigned long sram_size,
unsigned long irq)
{
fill_resources(&orion_crypto, orion_crypto_resources,
mapbase, 0xffff, irq);
orion_crypto.num_resources = 3;
orion_crypto_resources[2].start = srambase;
orion_crypto_resources[2].end = srambase + sram_size - 1;
platform_device_register(&orion_crypto);
}
Best Regards,
Xufeng Zhang
>
>Could you please help me understand?
>
>Regards
>Ananth
>
>------------------------------------------------------------------------------
>All the data continuously generated in your IT infrastructure
>contains a definitive record of customers, application performance,
>security threats, fraudulent activity, and more. Splunk takes this
>data and makes sense of it. IT sense. And common sense.
>http://p.sf.net/sfu/splunk-novd2d
>_______________________________________________
>Ocf-linux-users mailing list
>Ocf...@li...
>https://lists.sourceforge.net/lists/listinfo/ocf-linux-users
|