<pre><tt>Hi...<br><br><br></tt><tt></tt><tt>We need to design a network driver..We are using linux kernel 2.6.9 and <br>mpc8540 as a network card in the host x86.mpc8540 acts as a agent and runs on u-boot.<br><br>The steps that we followed to accomplish the above task is as follows:-<br><br>1.)Allocated memory using kmalloc and returned the ptrdata....<br><br> ptrdata = (unsigned long *) kmalloc(sizeof(unsigned long , <br>GFP_KERNEL);<br><br><br>2.)We write to pci outbound registers......<br>(a)pci translation register (b)pci base register (c) pci attribute <br>register.<br><br>// Converting the virtual address got using kmalloc to PCI Bus address<br><br>ulTemp = ( unsigned long ) virt_to_bus( ( void * ) <br>ptrdata);<br><br>ulTemp = swap(ulTemp >> 12) ;<br><br> //Outbound Translatiom Register<br><br>writel(ulTemp,(unsigned long)ioaddr+ 0x8C20); <br>//ioaddr is address that we got after remapping ioaddr = ioremap_nocache((pio_start),
<br>pio_len);<br><br>//Outbound Base Address Register<br> writel((swap(0xE0000000 >> 12)) , (unsigned long)ioaddr+ 0x8C28);<br><br> //Outbound Attribute Register<br> writel(swap(0x8004401A), (unsigned long)ioaddr+ 0x8C30);<br><br>3.)We used the minicom to check whether we are able to access the host <br>memory from the agent by doing md 0xe0000000.But we are getting all <br>values as zeroes.<br><br>Cud anybody solve our problem. tell us if we are missing anything,any <br>step.Please respond to our request.It is urgent.<br><br>Thanks in advance,<br><br>Aishwariya<br></tt></pre> <p> 
        
        
                <hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>