diff options
author | Mark Haverkamp <markh@osdl.org> | 2005-08-03 18:39:01 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-08-05 17:51:11 -0400 |
commit | bd1aac809ddbcf7772cfd809d8cfb29c729c6cf9 (patch) | |
tree | 7ec25f58f22929ee48495addf8facda797668852 /drivers/scsi/aacraid/aacraid.h | |
parent | c7f476023f57145357df32346b7de9202ce47d5f (diff) |
[SCSI] aacraid: driver shutdown method
Add in pci shutdown method so that the adapter shuts down correctly and
flushes its cache. Shutdown should also disable the adapter's interrupt
when shutdown (in particularly if the driver is rmmod'd) to prevent
spurious hardware activities.
Signed-off-by: Mark Haverkamp <markh@osdl.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 ddbbb85b3a7c..6f4906ee9a5e 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h | |||
@@ -460,6 +460,7 @@ struct adapter_ops | |||
460 | { | 460 | { |
461 | void (*adapter_interrupt)(struct aac_dev *dev); | 461 | void (*adapter_interrupt)(struct aac_dev *dev); |
462 | void (*adapter_notify)(struct aac_dev *dev, u32 event); | 462 | void (*adapter_notify)(struct aac_dev *dev, u32 event); |
463 | void (*adapter_disable_int)(struct aac_dev *dev); | ||
463 | 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); | 464 | 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); |
464 | int (*adapter_check_health)(struct aac_dev *dev); | 465 | int (*adapter_check_health)(struct aac_dev *dev); |
465 | }; | 466 | }; |
@@ -994,6 +995,9 @@ struct aac_dev | |||
994 | #define aac_adapter_notify(dev, event) \ | 995 | #define aac_adapter_notify(dev, event) \ |
995 | (dev)->a_ops.adapter_notify(dev, event) | 996 | (dev)->a_ops.adapter_notify(dev, event) |
996 | 997 | ||
998 | #define aac_adapter_disable_int(dev) \ | ||
999 | (dev)->a_ops.adapter_disable_int(dev) | ||
1000 | |||
997 | #define aac_adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4) \ | 1001 | #define aac_adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4) \ |
998 | (dev)->a_ops.adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4) | 1002 | (dev)->a_ops.adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4) |
999 | 1003 | ||