Port-bebox archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PCI questions



briggs%wasabisystems.com@localhost wrote:

 > /*
 >  * Address conversion as seen from a PCI master.
 >  */
 > #define MPC105_DIRECT_MAPPED_SPACE      0x80000000
 > #define PHYS_TO_PCI_MEM(x)      ((x) | MPC105_DIRECT_MAPPED_SPACE)
 > #define PCI_MEM_TO_PHYS(x)      ((x) & ~MPC105_DIRECT_MAPPED_SPACE)

 > So it looks to me like MPC105_DIRECT_MAPPED_SPACE should be 0xC0000000.
 > Also, it looks like the PHYS_TO_PCI_MEM(x) and PCI_MEM_TO_PHYS(x) macros
 > are reversed.  I think that section should look like:
 > Am I missing something?  If so, what?  ;-)

This definition is for PCI master, not for CPU.

        Table 3-1. Address Map A -- Alternate View
                (Figure 3-4. PCI Memory Map(Map A))
        PCI Memory Transactions Address Range
        00000000 00ffffff   ISA/PCI Memory
        01000000 7fffffff   PCI Memory
        80000000 ffffffff   System memory space (== 00000000-7fffffff)

sakamoto



Home | Main Index | Thread Index | Old Index