diff options
author | Mark Haverkamp <markh@linux-foundation.org> | 2007-03-15 13:26:05 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-03-20 11:54:11 -0400 |
commit | 8418852d11f0bbaeebeedd4243560d8fdc85410d (patch) | |
tree | 83a6d2c4841c41bdc8a627c3e248deb1cc730210 /drivers/scsi/aacraid/aacraid.h | |
parent | b22f687dd28a7a8886b918294b4d558ef175c07d (diff) |
[SCSI] aacraid: add restart adapter platform function
Received from Mark Salyzyn,
This patch updates the adapter restart function to deal with some
adapters that have specific IOP reset needs. Since the code for
restarting the adapter was in two places, changed over to utilizing a
platform function in one place.
Signed-off-by: Mark Haverkamp <markh@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/aacraid.h')
-rw-r--r-- | drivers/scsi/aacraid/aacraid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 39ecd0d22eb0..7e25c0bbd644 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h | |||
@@ -497,6 +497,7 @@ struct adapter_ops | |||
497 | void (*adapter_enable_int)(struct aac_dev *dev); | 497 | void (*adapter_enable_int)(struct aac_dev *dev); |
498 | int (*adapter_sync_cmd)(struct aac_dev *dev, u32 command, u32 p1, u32 p2, u32 p3, u32 p4, u32 p5, u32 p6, u32 *status, u32 *r1, u32 *r2, u32 *r3, u32 *r4); | 498 | int (*adapter_sync_cmd)(struct aac_dev *dev, u32 command, u32 p1, u32 p2, u32 p3, u32 p4, u32 p5, u32 p6, u32 *status, u32 *r1, u32 *r2, u32 *r3, u32 *r4); |
499 | int (*adapter_check_health)(struct aac_dev *dev); | 499 | int (*adapter_check_health)(struct aac_dev *dev); |
500 | int (*adapter_restart)(struct aac_dev *dev, int bled); | ||
500 | /* Transport operations */ | 501 | /* Transport operations */ |
501 | int (*adapter_ioremap)(struct aac_dev * dev, u32 size); | 502 | int (*adapter_ioremap)(struct aac_dev * dev, u32 size); |
502 | irqreturn_t (*adapter_intr)(int irq, void *dev_id); | 503 | irqreturn_t (*adapter_intr)(int irq, void *dev_id); |
@@ -1060,6 +1061,9 @@ struct aac_dev | |||
1060 | #define aac_adapter_check_health(dev) \ | 1061 | #define aac_adapter_check_health(dev) \ |
1061 | (dev)->a_ops.adapter_check_health(dev) | 1062 | (dev)->a_ops.adapter_check_health(dev) |
1062 | 1063 | ||
1064 | #define aac_adapter_restart(dev,bled) \ | ||
1065 | (dev)->a_ops.adapter_restart(dev,bled) | ||
1066 | |||
1063 | #define aac_adapter_ioremap(dev, size) \ | 1067 | #define aac_adapter_ioremap(dev, size) \ |
1064 | (dev)->a_ops.adapter_ioremap(dev, size) | 1068 | (dev)->a_ops.adapter_ioremap(dev, size) |
1065 | 1069 | ||