sym53c500_cs PCMCIA SCSI driver (round 5)
Subsystems (2)
PATCH 1/1 sym53c500_cs PCMCIA SCSI driver (round 5)
Fifth attempt at a PCMCIA SCSI driver for the Symbios 53c500 controller. This version has all the cleanup Christoph has requested to date, including removal of support for the obsolete (in 2.6) proc_info functionality.
Support for additional sysfs class device attributes has been added:
two are read-only (irq, ioport), one is read-write (fast_pio). The read-write attribute is a per-instance flag indicating the PIO speed of the particular HBA: valid values are 1 (enabled -- default) and 0 (disabled).
The attached patch set applies cleanly to 2.6.5.
Signature · 4 lines
----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org [email protected] -----------------------------------------------------------------------
drivers/scsi/pcmcia/Kconfig renamed from drivers/scsi/pcmcia/Kconfig.orig +10 -0
@@ -69,4 +69,14 @@ To compile this driver as a module, choose M here: the module will be called qlogic_cs. +config PCMCIA_SYM53C500 + tristate "Symbios 53c500 PCMCIA support" + depends on m + help + Say Y here if you have a New Media Bus Toaster or other PCMCIA + SCSI adapter based on the Symbios 53c500 controller. + + To compile this driver as a module, choose M here: the + module will be called sym53c500_cs. + endmenu
drivers/scsi/pcmcia/Makefile renamed from drivers/scsi/pcmcia/Makefile.orig +1 -0
@@ -6,6 +6,7 @@ obj-$(CONFIG_PCMCIA_FDOMAIN) += fdomain_cs.o obj-$(CONFIG_PCMCIA_AHA152X) += aha152x_cs.o obj-$(CONFIG_PCMCIA_NINJA_SCSI) += nsp_cs.o +obj-$(CONFIG_PCMCIA_SYM53C500) += sym53c500_cs.o aha152x_cs-objs := aha152x_stub.o aha152x_core.o fdomain_cs-objs := fdomain_stub.o fdomain_core.o
drivers/scsi/pcmcia/sym53c500_cs.c renamed from drivers/scsi/pcmcia/sym53c500_cs.c.orig +1076 -0
1,076 lines not on this page · raw message
Documentation/scsi/sym53c500_cs.txt renamed from Documentation/scsi/sym53c500_cs.txt.orig +23 -0
@@ -0,0 +1,23 @@ +The sym53c500_cs driver originated as an add-on to David Hinds' pcmcia-cs +package, and was written by Tom Corner ([email protected]). A rewrite was +long overdue, and the current version addresses the following concerns: + + (1) extensive kernel changes between 2.4 and 2.6. + (2) deprecated PCMCIA support outside the kernel. + +All the USE_BIOS code has been ripped out. It was never used, and could +not have worked anyway. The USE_DMA code is likewise gone. Many thanks +to YOKOTA Hiroshi (nsp_cs driver) and David Hinds (qlogic_cs driver) for +the code fragments I shamelessly adapted for this work. Thanks also to +Christoph Hellwig for his patient tutelage while I stumbled about. + +The Symbios Logic 53c500 chip was used in the "newer" (circa 1997) version +of the New Media Bus Toaster PCMCIA SCSI controller. Presumably there are +other products using this chip, but I've never laid eyes (much less hands) +on one. + +Through the years, there have been a number of downloads of the pcmcia-cs +version of this driver, and I guess it worked for those users. It worked +for Tom Corner, and it works for me. Your mileage will probably vary. + +--Bob Tracy ([email protected])
Documentation/scsi/00-INDEX renamed from Documentation/scsi/00-INDEX.orig +2 -0
@@ -62,6 +62,8 @@ - info on API between SCSI layer and low level drivers st.txt - info on scsi tape driver +sym53c500_cs.txt + - info on PCMCIA driver for Symbios Logic 53c500 based adapters sym53c8xx_2.txt - info on second generation driver for sym53c8xx based adapters tmscsim.txt
Quoted 2 lines · Bob Tracy
Support for additional sysfs class device attributes has been added:
two are read-only (irq, ioport),
sorry to bother you again, but I don't think these belong into a scsi LLDD. it's attributes for the underlying bus. For pci you get these information already, but the pcmcia infrastructure isn't quite ready yet.
Quoted 4 lines
one is read-write (
fast_pio). The
read-write attribute is a per-instance flag indicating the PIO speed of the particular HBA: valid values are 1 (enabled -- default) and 0 (disabled).
this one is nice.
PATCH 1/1 sym53c500_cs PCMCIA SCSI driver (round 6)
Quoted 8 lines · Christoph Hellwig
Quoted 2 lines · Bob Tracy
Support for additional sysfs class device attributes has been added:
two are read-only (irq, ioport),sorry to bother you again, but I don't think these belong into a scsi LLDD. it's attributes for the underlying bus. For pci you get these information already, but the pcmcia infrastructure isn't quite ready yet.
I saw the need :-), but agree that those attributes aren't a good fit where they were placed. That code has been removed.
Quoted 6 lines
Quoted 4 lines
one is read-write (
fast_pio). The
read-write attribute is a per-instance flag indicating the PIO speed of the particular HBA: valid values are 1 (enabled -- default) and 0 (disabled).this one is nice.
Thanks. "Round 6" attached: the patch set applies cleanly to 2.6.5, and possibly 2.6.6 (haven't tried it). If there's nothing else to be done, let's push this upstream for 2.6.7.
Signature · 4 lines
----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org [email protected] -----------------------------------------------------------------------
drivers/scsi/pcmcia/Kconfig renamed from drivers/scsi/pcmcia/Kconfig.orig +10 -0
@@ -69,4 +69,14 @@ To compile this driver as a module, choose M here: the module will be called qlogic_cs. +config PCMCIA_SYM53C500 + tristate "Symbios 53c500 PCMCIA support" + depends on m + help + Say Y here if you have a New Media Bus Toaster or other PCMCIA + SCSI adapter based on the Symbios 53c500 controller. + + To compile this driver as a module, choose M here: the + module will be called sym53c500_cs. + endmenu
drivers/scsi/pcmcia/Makefile renamed from drivers/scsi/pcmcia/Makefile.orig +1 -0
@@ -6,6 +6,7 @@ obj-$(CONFIG_PCMCIA_FDOMAIN) += fdomain_cs.o obj-$(CONFIG_PCMCIA_AHA152X) += aha152x_cs.o obj-$(CONFIG_PCMCIA_NINJA_SCSI) += nsp_cs.o +obj-$(CONFIG_PCMCIA_SYM53C500) += sym53c500_cs.o aha152x_cs-objs := aha152x_stub.o aha152x_core.o fdomain_cs-objs := fdomain_stub.o fdomain_core.o
drivers/scsi/pcmcia/sym53c500_cs.c renamed from drivers/scsi/pcmcia/sym53c500_cs.c.orig +1042 -0
1,042 lines not on this page · raw message
Documentation/scsi/sym53c500_cs.txt renamed from Documentation/scsi/sym53c500_cs.txt.orig +23 -0
@@ -0,0 +1,23 @@ +The sym53c500_cs driver originated as an add-on to David Hinds' pcmcia-cs +package, and was written by Tom Corner ([email protected]). A rewrite was +long overdue, and the current version addresses the following concerns: + + (1) extensive kernel changes between 2.4 and 2.6. + (2) deprecated PCMCIA support outside the kernel. + +All the USE_BIOS code has been ripped out. It was never used, and could +not have worked anyway. The USE_DMA code is likewise gone. Many thanks +to YOKOTA Hiroshi (nsp_cs driver) and David Hinds (qlogic_cs driver) for +the code fragments I shamelessly adapted for this work. Thanks also to +Christoph Hellwig for his patient tutelage while I stumbled about. + +The Symbios Logic 53c500 chip was used in the "newer" (circa 1997) version +of the New Media Bus Toaster PCMCIA SCSI controller. Presumably there are +other products using this chip, but I've never laid eyes (much less hands) +on one. + +Through the years, there have been a number of downloads of the pcmcia-cs +version of this driver, and I guess it worked for those users. It worked +for Tom Corner, and it works for me. Your mileage will probably vary. + +--Bob Tracy ([email protected])
Documentation/scsi/00-INDEX renamed from Documentation/scsi/00-INDEX.orig +2 -0
@@ -62,6 +62,8 @@ - info on API between SCSI layer and low level drivers st.txt - info on scsi tape driver +sym53c500_cs.txt + - info on PCMCIA driver for Symbios Logic 53c500 based adapters sym53c8xx_2.txt - info on second generation driver for sym53c8xx based adapters tmscsim.txt