cell: add ps3 platform system bus support
PATCH 16/16 cell: add ps3 platform system bus support
Adds a PS3 Platform system bus driver. This system bus is a virtual bus used to present the ps3pf system devices in the LDM.
Signed-off-by Geoff Levand <[email protected]>
--- arch/powerpc/kernel/dma_64.c | 9 + drivers/Makefile | 1 drivers/ps3pf/Makefile | 1 drivers/ps3pf/system-bus.c | 356 +++++++++++++++++++++++++++++++++++++++++++ include/asm-powerpc/ps3pf.h | 75 +++++++++ 5 files changed, 442 insertions(+)
arch/powerpc/kernel/dma_64.c +9 -0
@@ -11,6 +11,7 @@#include <linux/pci.h> #include <asm/vio.h> #include <asm/ibmebus.h> +#include <asm/ps3pf.h> #include <asm/scatterlist.h> #include <asm/bug.h>
@@ -28,6 +29,10 @@if (dev->bus == &ibmebus_bus_type)return &ibmebus_dma_ops;#endif +#ifdef CONFIG_PS3PF +if (dev->bus == &ps3pf_system_bus_type) +return &ps3pf_dma_ops; +#endif return NULL ; }
@@ -55,6 +60,10 @@if (dev->bus == &ibmebus_bus_type)return -EIO ;#endif +#ifdef CONFIG_PS3PF +if (dev->bus == &ps3pf_system_bus_type) +return -EIO ; +#endif BUG ();return 0 ; }
drivers/Makefile +1 -0
@@ -77,3 +77,4 @@ obj-$(CONFIG_SUPERH) += sh/ obj-$(CONFIG_GENERIC_TIME) += clocksource/ obj-$(CONFIG_DMA_ENGINE) += dma/ +obj-$(CONFIG_PS3PF) += ps3pf/
drivers/ps3pf/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_PS3PF) += system-bus.o
drivers/ps3pf/system-bus.c new file +356 -0
356 lines not on this page · raw message
include/asm-powerpc/ps3pf.h +75 -0
79 lines not on this page · raw message