aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorbrking@us.ibm.com <brking@us.ibm.com>2005-11-01 18:01:14 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-11-06 14:03:24 -0500
commit622750406a1b4b230f1ee595cb555e5d9222feeb (patch)
treee5f6ac8b1c017f523060a3fbb74a616bccb64b99 /drivers/scsi/ipr.h
parent692aebfc6982a64e70ed11467545f2b9c95e6592 (diff)
[SCSI] ipr: Write caching state host attribute
Adds a scsi_host sysfs attribute and module parm to enable/disable the write cache on an ipr adapter. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index b8c1603f99eb..6d9aef001fe7 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -541,6 +541,15 @@ struct ipr_inquiry_page3 {
541 u8 patch_number[4]; 541 u8 patch_number[4];
542}__attribute__((packed)); 542}__attribute__((packed));
543 543
544#define IPR_INQUIRY_PAGE0_ENTRIES 20
545struct ipr_inquiry_page0 {
546 u8 peri_qual_dev_type;
547 u8 page_code;
548 u8 reserved1;
549 u8 len;
550 u8 page[IPR_INQUIRY_PAGE0_ENTRIES];
551}__attribute__((packed));
552
544struct ipr_hostrcb_device_data_entry { 553struct ipr_hostrcb_device_data_entry {
545 struct ipr_vpd vpd; 554 struct ipr_vpd vpd;
546 struct ipr_res_addr dev_res_addr; 555 struct ipr_res_addr dev_res_addr;
@@ -731,6 +740,7 @@ struct ipr_resource_table {
731 740
732struct ipr_misc_cbs { 741struct ipr_misc_cbs {
733 struct ipr_ioa_vpd ioa_vpd; 742 struct ipr_ioa_vpd ioa_vpd;
743 struct ipr_inquiry_page0 page0_data;
734 struct ipr_inquiry_page3 page3_data; 744 struct ipr_inquiry_page3 page3_data;
735 struct ipr_mode_pages mode_pages; 745 struct ipr_mode_pages mode_pages;
736 struct ipr_supported_device supp_dev; 746 struct ipr_supported_device supp_dev;
@@ -813,6 +823,13 @@ enum ipr_sdt_state {
813 DUMP_OBTAINED 823 DUMP_OBTAINED
814}; 824};
815 825
826enum ipr_cache_state {
827 CACHE_NONE,
828 CACHE_DISABLED,
829 CACHE_ENABLED,
830 CACHE_INVALID
831};
832
816/* Per-controller data */ 833/* Per-controller data */
817struct ipr_ioa_cfg { 834struct ipr_ioa_cfg {
818 char eye_catcher[8]; 835 char eye_catcher[8];
@@ -829,6 +846,7 @@ struct ipr_ioa_cfg {
829 u8 allow_cmds:1; 846 u8 allow_cmds:1;
830 u8 allow_ml_add_del:1; 847 u8 allow_ml_add_del:1;
831 848
849 enum ipr_cache_state cache_state;
832 u16 type; /* CCIN of the card */ 850 u16 type; /* CCIN of the card */
833 851
834 u8 log_level; 852 u8 log_level;