Hello All,
Thanks for your mails. Presently I set to write a driver for DMA , I am following ethernet driver (gianfar.c for gigabit ethernet) and I2C driver present for MPC8540. I came across
/* Update the 8540 OCP tables paddr field */
mpc8540_update_ocp(binfo->bi_immr_base)
{
struct ocp_def *def;
def = ocp_get_one_device(OCP_VENDOR_MOTOROLA, OCP_FUNC_DMA, 0);
if (def)
def->paddr += ccsrbar;
}
}
function and I got through the implementation of the function(above). I got def->paddr = 0xfdf21000
binfo->bi_immr_base = 0xfdf00000/*(ccsrbar)*/
above values.
Now my requirement is
1)what is this OCP table and why it is required
2)To access the DMA controller registers what base address should I use.is it combination (def->paddr += ccsrbar) or simply def->paddress or ccsrbar(binfo->bi_immr_base ).
Thanks in advance,
Regards
Jhoney_joney