summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* sparc: Stop setting NO_DMA.David S. Miller2008-08-301-3/+0
| | | | | | | | | | This fixes the build with PCI disabled, we do want the generic DMA facilities and interfaces even when just SBUS is enabled. Based upon a build failure report by Robert Reif. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert FIRE PCI controller driver into a real driver.David S. Miller2008-08-302-118/+58
| | | | | | And now all the by-hand PCI controller probing junk in pci.c can die too. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert SABRE PCI controller driver into a real driver.David S. Miller2008-08-302-45/+85
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert PSYCHO PCI controller driver into a real driver.David S. Miller2008-08-302-28/+70
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert SUN4V PCI controller driver into a real driver.David S. Miller2008-08-302-42/+83
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert SCHIZO PCI controller driver into a real driver.David S. Miller2008-08-302-48/+84
| | | | | | | | The idea is to convert all of the PCI controller drivers into genuine OF drivers, then we can get rid of this terrible probing table and infrastructure in arch/sparc64/kernel/pci.c Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Don't invoke power_init() from pcibios_init().David S. Miller2008-08-302-15/+5
| | | | | | That's just silly, use device_initcall() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill ebus_bus_type.David S. Miller2008-08-303-22/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill EBUS driver layer.David S. Miller2008-08-3011-877/+6
| | | | | | | All that remains is the EBUS DMA programming library for sparc64. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert EBUS floppy support to pure OF driver.David S. Miller2008-08-291-50/+36
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Move EBUS DMA interfaces into seperate header file.David S. Miller2008-08-295-32/+38
| | | | | | | | These have no dependencies on the EBUS probing layer, the clients setup the registers and all of those details. The EBUS DMA layer just programs and manages the DMA controller found in EBUS. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Propagate PCI device archdata into OF device tree for EBUS.David S. Miller2008-08-291-2/+6
| | | | | | | | | | In order to convert EBUS drivers doing DMA into pure OF drivers, we need the of_device->dev.archdata setup properly. EBUS instances that can provide DMA for device nodes sit on PCI, so detect and propagate the information there. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Use generic starfire RTC driver.David S. Miller2008-08-292-285/+9
| | | | | | Also, delete the mini RTC driver, no longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Use generic sun4v RTC driver.David S. Miller2008-08-292-75/+9
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Use generic BQ4802 RTC driver.David S. Miller2008-08-292-190/+12
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Use generic CMOS driver.David S. Miller2008-08-293-260/+123
| | | | | | Based largely upon a patch by Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: asm/mostek.h is now 32-bit onlyDavid S. Miller2008-08-293-319/+168
| | | | | | No need for the 64-bit header version any more. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert Mostek rtc to use generic RTC layer driver.David S. Miller2008-08-293-317/+103
| | | | | | Based largely upon a patch by Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Check for RTC class device in update_persistent_clock().David S. Miller2008-08-291-0/+5
| | | | | | | | | | | As we convert the various by-hand sparc64 RTC drivers to use the generic RTC framework and drivers, we need to keep the NTP set_rtc_mmss() support via update_persistent_clock() working. In the end, after all the RTC device cases are converted, this local set_rtc_mmss() function will be deleted. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Select RTC_CLASSDavid S. Miller2008-08-291-0/+1
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Delete asm/sbus*.hDavid S. Miller2008-08-293-108/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill now spurious includes of sbus.hDavid S. Miller2008-08-2914-14/+9
| | | | | | | | In order to make this week I also had to add an include of linux/dma-mapping.h to asm/pci_32.h because drivers/pci/pci.c really depends upon getting this header somehow. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill iounit_map_dma_*().David S. Miller2008-08-293-55/+0
| | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill sbus_bus_type.David S. Miller2008-08-293-19/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Remove generic SBUS probing layer.David S. Miller2008-08-297-112/+108
| | | | | | | The individual SBUS IOMMU arch code now sets the IOMMU information directly into the OF device objects. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Add OF archdata propagation helper.David S. Miller2008-08-293-0/+46
| | | | | | | Add a helper function that, given a bus of_device node, propagates all iommu, stc, and host_controller values down to the child nodes. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill sbus_arch_preinit().David S. Miller2008-08-292-14/+3
| | | | | | | 32-bit sparc just needed it to register the ioport procfs bits, do this via an arch_initcall() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill sbus_is_slave().David S. Miller2008-08-291-7/+0
| | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill OBP property members of sbus_dev and sbus_busDavid S. Miller2008-08-292-13/+0
| | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill sbus_devaddr() and sbus_dev_slot().David S. Miller2008-08-292-36/+0
| | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill sbus_ioremap() and sbus_iounmap().David S. Miller2008-08-294-39/+0
| | | | | | No more users. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.David S. Miller2008-08-296-14/+23
| | | | | | Use of_ioremap() and of_iounmap() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Remove dinky old-style SBUS probing facilities.David S. Miller2008-08-294-28/+0
| | | | | | | No drivers or code uses this stuff any more, every driver has been converted over to OF device probing. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Remove SBUS layer resource and irq handling.David S. Miller2008-08-294-62/+0
| | | | | | | All the drivers use OF device objects now for this information. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill SBUS layer IRQ hooks.David S. Miller2008-08-297-144/+0
| | | | | | IRQs are obtained by drivers from the of_device struct. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Convert sun4d IRQ code to use generic device tree probing.David S. Miller2008-08-291-35/+48
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Convert pmc to OF driver.David S. Miller2008-08-291-29/+28
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Convert apc to OF driver.David S. Miller2008-08-291-34/+38
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.David S. Miller2008-08-295-23/+19
| | | | | | | This lets us kill this "map it in every IOMMU" crazy code, and also some of the final references to sbus_root. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill mmu_translate_dvma and implementations.David S. Miller2008-08-294-34/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill mmu_translate_dvma() usage.David S. Miller2008-08-291-35/+1
| | | | | | | | Just simply use virt_to_page() on the provided virtual address pointer. Kill #if 0'd code. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Convert SBUS floppy probing to use OF device objects.David S. Miller2008-08-291-18/+27
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Move SBUS DMA attribute interfaces out of asm/sbus.hDavid S. Miller2008-08-296-12/+36
| | | | | | | | | This is in preparation for the subsequent asm/sbus.h removal. Also, make these routines take a "struct device" or no arguments, as appropriate. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Convert all SBUS drivers to dma_*() interfaces.David S. Miller2008-08-294-96/+0
| | | | | | | | | And all the SBUS dma interfaces are deleted. A private implementation remains inside of the 32-bit sparc port which exists only for the sake of the implementation of dma_*(). Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Implement more generic dma_*() interfaces.David S. Miller2008-08-295-6/+298
| | | | | | | | | These dispatch to either PCI or SBUS routines based upon the device bus type. This will allow us to let SBUS drivers call these routines. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Make mmu_{get,release}_*() take a struct device pointer.David S. Miller2008-08-294-53/+47
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Make SBUS DMA interfaces take struct device.David S. Miller2008-08-295-73/+42
| | | | | | | This is the first step in converting all the SBUS drivers over to generic dma_*(). Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Make IOMMU and IO-UNIT init work with device nodes.David S. Miller2008-08-295-40/+45
| | | | | | | | | | | And stick the iommu archdata pointer into the generic OF device tree of_device struct as well. We still have to pass the sbus_bus object down into the routines so that the SBUS bus objects get the iommu cookies set properly. After drivers get converted to being pure OF drivers, that can go away. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill SBUS DVMA layer.David S. Miller2008-08-296-500/+147
| | | | | | | | | | | | | This thing was completely pointless. Just find the OF device in the parent of drivers that want to program this device, and map the DMA regs inside such drivers too. This also moves the dummy claim_dma_lock() and release_dma_lock() implementation to floppy_32.h, which makes it handle this issue just like floppy_64.h does. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Kill videopix SBUS driver.David S. Miller2008-08-292-59/+0
| | | | | | | This has been marked BROKEN for a long time and it's more likely to get rewritten from scratch than to be fixed up and made usable. Signed-off-by: David S. Miller <davem@davemloft.net>