Hi...<br> <br> We are using linux kernel 2.6.9 and 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) , GFP_KERNEL);<br> <br> 2.)We write to pci outbound registers......<br> <br> (a)pci translation register (b)pci base register (c) pci attribute register.<br> <br> ulTemp = ( unsigned volatile long ) virt_to_bus( ( void * ) ptrdata);<br> ulTemp = swap(ulTemp >> 12) ;<br> <br> //Outbound Translatiom Register<br> <br> writel(ulTemp, (unsigned long)ioaddr+ 0x8C20);<br> <br> //ioaddr is address that we got after remapping <br> ioaddr = ioremap_nocache((pio_start), pio_len);<br> <br> //Outbound Base Address
Register<br> <br> writel((swap(0xE0000000 >> 12)) , (unsigned long)ioaddr+ 0x8C28);<br> <br> //Outbound Attribute Register<br> <br> writel(swap(0x8005501C), (unsigned long)ioaddr+ 0x8C30);<br> <br> 3.)We used the minicom to check whether we are able to access the host memory from the agent by doing md 0xE000_0000.But we are getting all values as zeroes.<br> <br> Cud anybody solve our problem. tell us if we are missing anything,any step.Please respond to our request.It is urgent.<br> <br> Thanks<br> Aishwariya<br> <br> <p> 
<hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a>