Skip to contentSkip to conversation

mptsas: add support for PHY resets

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

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

PATCH 3/4 mptsas: add support for PHY resets

Support PHY resets in mptsas. Thanks to Eric for various bug fixes and improvements.

drivers/message/fusion/mptbase.h +12 -0
Index: linux-2.6/drivers/message/fusion/mptbase.h
===================================================================
@@ -421,6 +421,17 @@
 	struct semaphore	 sem_ioc;
 } MPT_IOCTL;
 
+#define MPT_SAS_MGMT_STATUS_RF_VALID	0x02	/* The Reply Frame is VALID */
+#define MPT_SAS_MGMT_STATUS_COMMAND_GOOD	0x10	/* Command Status GOOD */
+#define MPT_SAS_MGMT_STATUS_TM_FAILED	0x40	/* User TM request failed */
+
+typedef struct _MPT_SAS_MGMT {
+	struct semaphore	 mutex;
+	struct completion	 done;
+	u8			 reply[MPT_DEFAULT_FRAME_SIZE]; /* reply frame data */
+	u8			 status;	/* current command status */
+}MPT_SAS_MGMT;
+
 /*
  *  Event Structure and define
  */
@@ -604,6 +615,7 @@
 	struct list_head	 list;
 	struct net_device	*netdev;
 	struct list_head	 sas_topology;
+	MPT_SAS_MGMT		 sas_mgmt;
 } MPT_ADAPTER;
 
 /*
drivers/message/fusion/mptsas.c +88 -0

121 lines not on this page · raw message