Re: Another OCP enet patch
From: Dan Malek <hidden>
Date: 2002-05-29 14:51:21
David Gibson wrote:
Well, actually, dma_cache_wback() and friends still appear to be more widely used than consistent_sync(). AFAICT only PPC and ARM use consistent_sync().
Just for a historical note.....these functions were implemented about the same time to support non-PCI USB controllers. They have found other uses since then. Other architectures seem to assume PCI is always present, and will call the dma_cache_* functions within the pci functions to get the same effect. For non-PCI devices, they still call the pci functions with a null pointer for the pci_dev. On PPC and ARM we had systems that wouldn't compile properly with PCI enabled, since there wasn't any PCI bridge support (even fake ones :-). We just added the consistent_sync() to be orthogonal with the other archtecture independent consistent_* functions. The other architectures are moving this way as they are finding it more difficult to continue to fake a PCI on systems that really don't have it. -- Dan ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/