help, question on pci communication!
hi,
If the BCM1250 is operating in the device mode in the peripheral slot of
the CPCI chassis, u need t get the enumeration of the PCI being done from MCP 750 right.
The code for MCP750 alread exists in the linux kernel ( if i remember
correctly).
U can proceed in the following directions-->
(a) Get the PCI enumeration working properly on the MCP750 ( look at the ouput of lspci -vvv to decide whether resource allocation is proper or not) . The powerpc provides a fairly comprehensive PCI enumeration code( including scanning beyond the bridge).
(b) Once u are able to see ur device in the lspci output on the MCP board , u can load the driver ( ur custom driver ) to do the transfer from the BCM1250 to MCP and vice versa.
(v) Look at the few PCI based drivers about the way the data transfers is handled specially pci_alloc_* / pci_map_*/pci_resource_*.........
Hope this helps
Quoted 40 lines
From: "Guangxing Zhang" <[email protected]>
To: Fuxin Zhang <[email protected]>
CC: [email protected] <[email protected]>, angela <[email protected]>
Subject: help, question on pci communication!
Date: Wed, 24 Sep 2003 16:29:32 +0800Hi, Fuxin and everyone see this mail,
In linux world ,newbies always like to ask and the veterans will
always be enthusiastic.:)~~
Now there is a "ask", of course i am a newbie.
Follow is the architecture which we are working on.
Now i want to transfer the data from the "sb1250" to mcp750 through
the PCI bus with the help of 21555 bridge.
I want to implement it in kernel module.Although knowing "use the force ,read source",but i really do not know how and where to begin.
Is there any advice on it ? How to implement the communication through
PCI (or PCI-to-PCI bridge) in kernel
moudle?Any help will be appreciated!Thank in advance! ------------- | MCP 750 | (Power PC) ------------- | �� -------------------------------------------CPCI | ---------------|-------------------------------- | --------|----- | | |Intel 21555 |(PCI-TO-PCI Bridge) | | -------------- | | | | | --------(PCI bus) | | | | | -------- | | |SB1250|(CPU) | | -------- | ---------------------------------------------- ����������������Guangxing Zhang ����������������[email protected] 2003-09-24 16:03:04
Quoted 5 lines
��������������������
_________________________________________________________________
Talk to Karthikeyan. Watch his stunning feats. http://server1.msn.co.in/sp03/tataracing/index.asp Download images.