Skip to contentSkip to conversation

imu-scsi for iop13xx

PATCH New Dan Williams 1 participant 3 messages Feb 13, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover imu-scsi for iop13xx

Here is the iop13xx imu-scsi driver with the recommended scsi changes and some additional cleanups. I will submit both patches to Russell's tracker once the scsi bits achieve your sign-off James.

Any objections, comments?

Dan

[ note: [email protected] is subscriber only ]

#1 lore raw

PATCH 1/2 iop13xx: add base support for the imu

From: Greg Tucker <[email protected]>

The interprocessor messaging unit supports mailbox style communication between the two Xscale cores on iop342.

Changelog:
* cleaned up static functions and exports

---

 arch/arm/mach-iop13xx/Kconfig      |    2 
 arch/arm/mach-iop13xx/Makefile     |    1 
 arch/arm/mach-iop13xx/imu/Kconfig  |   19 ++
 arch/arm/mach-iop13xx/imu/Makefile |    3 
 arch/arm/mach-iop13xx/imu/common.c |  294 ++++++++++++++++++++++++
 arch/arm/mach-iop13xx/imu/dev.c    |  438 ++++++++++++++++++++++++++++++++++++
 arch/arm/mach-iop13xx/imu/imu.c    |   95 ++++++++
 include/asm-arm/arch-iop13xx/imu.h |  366 ++++++++++++++++++++++++++++++
 8 files changed, 1218 insertions(+), 0 deletions(-)
arch/arm/mach-iop13xx/Kconfig +2 -0
index 40c2d68..27c1c2c 100644
@@ -16,5 +16,7 @@ config MACH_IQ81340MC
 	  Say Y here if you want to support running on the Intel IQ81340MC
 	  evaluation kit.
 
+source "arch/arm/mach-iop13xx/imu/Kconfig"
+
 endmenu
 endif
arch/arm/mach-iop13xx/Makefile +1 -0
index 4185e05..7937d73 100644
@@ -9,3 +9,4 @@ obj-$(CONFIG_ARCH_IOP13XX) += pci.o
 obj-$(CONFIG_ARCH_IOP13XX) += io.o
 obj-$(CONFIG_MACH_IQ81340SC) += iq81340sc.o
 obj-$(CONFIG_MACH_IQ81340MC) += iq81340mc.o
+obj-$(CONFIG_IOP_IMU) += imu/
arch/arm/mach-iop13xx/imu/Kconfig new file +19 -0
new file mode 100644
index 0000000..ee49b37
@@ -0,0 +1,19 @@
+#
+# IOP13xx IMU Support
+#
+
+menu "IOP13XX IMU Support"
+
+config IOP_IMU
+	tristate "IOP IMU support"
+	depends on EXPERIMENTAL
+	---help---
+	This includes support functions for the IMU.
+
+config IOP_IMU_DEV
+	tristate "IOP IMU char driver"
+	depends on IOP_IMU
+	---help---
+	This is a char driver that passes messages throught the IMU.
+
+endmenu
arch/arm/mach-iop13xx/imu/Makefile new file +3 -0
new file mode 100644
index 0000000..e149b07
@@ -0,0 +1,3 @@
+obj-$(CONFIG_IOP_IMU)      += imu_layer.o
+obj-$(CONFIG_IOP_IMU_DEV)  += dev.o
+imu_layer-objs	:= common.o imu.o
arch/arm/mach-iop13xx/imu/common.c new file +294 -0

294 lines not on this page · raw message

arch/arm/mach-iop13xx/imu/dev.c new file +438 -0

438 lines not on this page · raw message

arch/arm/mach-iop13xx/imu/imu.c new file +95 -0

95 lines not on this page · raw message

include/asm-arm/arch-iop13xx/imu.h new file +366 -0

366 lines not on this page · raw message

#2 lore raw

PATCH 2/2 iop13xx: imu scsi driver

In reply to Dan Williams

From: Greg Tucker <[email protected]>

Enable Linux to access the other core as if it were a scsi target.

Made changes suggested by James Bottomley such as dma_map direction not bidirectional, proper SCSI return conditons, reset handlers and cleanup.

---

 arch/arm/mach-iop13xx/imu/Kconfig |    7 
 drivers/scsi/Makefile             |    1 
 drivers/scsi/iop13xx-imu-scsi.c   |  607 +++++++++++++++++++++++++++++++++++++
 3 files changed, 615 insertions(+), 0 deletions(-)
arch/arm/mach-iop13xx/imu/Kconfig +7 -0
index ee49b37..96d9d3a 100644
@@ -16,4 +16,11 @@ config IOP_IMU_DEV
 	---help---
 	This is a char driver that passes messages throught the IMU.
 
+config IOP_IMU_SCSI
+	tristate "IOP IMU scsi driver"
+	depends on IOP_IMU
+	---help---
+	This is a low-level SCSI driver that passes SCSI commands
+	to core 2.
+
 endmenu
drivers/scsi/Makefile +1 -0
index bd7c988..c1ccf57 100644
@@ -132,6 +132,7 @@ obj-$(CONFIG_SCSI_IBMVSCSIS)	+= ibmvscsi/
 obj-$(CONFIG_SCSI_HPTIOP)	+= hptiop.o
 obj-$(CONFIG_SCSI_STEX)		+= stex.o
 
+obj-$(CONFIG_IOP_IMU_SCSI)	+= iop13xx-imu-scsi.o
 obj-$(CONFIG_ARM)		+= arm/
 
 obj-$(CONFIG_CHR_DEV_ST)	+= st.o
drivers/scsi/iop13xx-imu-scsi.c new file +607 -0

607 lines not on this page · raw message