Skip to contentSkip to conversation

fusion: add mptsas driver

PATCH In review Christoph Hellwig 1 participant 1 message Aug 19, 2005

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

PATCH 2/2 fusion: add mptsas driver

This adds the actual mptsas driver. Based on lsi's driver with the transport class integration and the different discovery scheme added by me. This is pretty minimal still, no support for hotplug or any fancyness yet.

drivers/message/fusion/Kconfig +17 -0
Index: scsi-misc-2.6/drivers/message/fusion/Kconfig
===================================================================
@@ -35,6 +35,23 @@
 	  LSIFC929X
 	  LSIFC929XL
 
+config FUSION_SAS
+	tristate "Fusion MPT ScsiHost drivers for SAS"
+	depends on PCI && SCSI
+ 	select FUSION
+	select SCSI_SAS_ATTRS
+	---help---
+	  SCSI HOST support for a SAS host adapters.
+
+	  List of supported controllers:
+
+	  LSISAS1064
+	  LSISAS1066
+	  LSISAS1068
+	  LSISAS1064E
+	  LSISAS1066E
+	  LSISAS1068E
+
 config FUSION_MAX_SGE
 	int "Maximum number of scatter gather entries (16 - 128)"
 	depends on FUSION
drivers/message/fusion/Makefile +1 -0
Index: scsi-misc-2.6/drivers/message/fusion/Makefile
===================================================================
@@ -34,5 +34,6 @@
 
 obj-$(CONFIG_FUSION_SPI)	+= mptbase.o mptscsih.o mptspi.o
 obj-$(CONFIG_FUSION_FC)		+= mptbase.o mptscsih.o mptfc.o
+obj-$(CONFIG_FUSION_SAS)	+= mptbase.o mptscsih.o mptsas.o
 obj-$(CONFIG_FUSION_CTL)	+= mptctl.o
 obj-$(CONFIG_FUSION_LAN)	+= mptlan.o
drivers/message/fusion/mptsas.c new file +877 -0

877 lines not on this page · raw message

drivers/message/fusion/mptbase.h +3 -0
Index: scsi-misc-2.6/drivers/message/fusion/mptbase.h
===================================================================
@@ -595,6 +595,9 @@
 	int			 InternalCtx;
 	struct list_head	 list;
 	struct net_device	*netdev;
+	int			 num_sas_ports;
+	struct sas_port	       **sas_ports;
+	struct sas_identify	*sas_attached;
 } MPT_ADAPTER;
 
 /*