RE: PCI DMA_MR Problem
From: jimmy liu <hidden>
Date: 2006-08-14 12:38:33
I see. Thanks. Jimmy
--- Liu Dave-r63238 <DaveLiu@freescale.com> wrote:
The memory map configuration registers is little-endain. Be careful this Please byte swap this -Davequoted
I got a problem when I set the pci dmamr forMPC8250 for DMAquoted
PCI transfering data on linux kernel 2.6.17. When I set the values for the pci_dmamr registers,then printquoted
the register values back, some bits can not beset. Didquoted
anybody know what are the problem, or I have toset other stuff.quoted
Thanks. The code like this: volatile cpm2_map_t *immap = cpm2_immr; immap->im_pci.pci_dmamr0 = 0x0042b00c; immap->im_pci.pci_dmamr1 = 0x0042b00c; immap->im_pci.pci_dmamr2 = 0x0042b00c; immap->im_pci.pci_dmamr3 = 0x0042b00c; printk("DMA0 MR = 0x%08x\n", immap->im_pci.pci_dmamr0); printk("DMA1 MR (0x%08x) = 0x%08x\n", immap->im_pci.pci_dmamr1); printk("DMA2 MR (0x%08x) = 0x%08x\n", immap->im_pci.pci_dmamr2); printk("DMA3 MR (0x%08x) = 0x%08x\n", immap->im_pci.pci_dmamr3); The results are following: DMA0 MR (0xf0010500) = 0x0040b000 DMA1 MR (0xf0010580) = 0x0040b000 DMA2 MR (0xf0010600) = 0x0040b000 DMA3 MR (0xf0010680) = 0x0040b000 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spamprotectionquoted
around http://mail.yahoo.com _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
quoted
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com