aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_drv.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2010-03-05 22:36:47 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-03-07 02:31:23 -0500
commit2993cc71d1bff61999ade7f2b6b3ea2dd1e2c8d9 (patch)
treed4efc1c68195a0cbf4d30abcc891a78b76439755 /drivers/scsi/bfa/bfad_drv.h
parent9693e7dff5c2911b4e445f5f656ef57b3a5bffac (diff)
[SCSI] bfa: AEN and byte alignment fixes.
Replace enum types with int and rearrange the fields to fix some alignment issue. Local var ioc_attr is causing the stack to overflow, so removed the usage of the local ioc_attr var and now invoking an API to return the ioc_type. Fix some AEN issues. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad_drv.h')
-rw-r--r--drivers/scsi/bfa/bfad_drv.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h
index 9fa801a5025..94f4d84c71c 100644
--- a/drivers/scsi/bfa/bfad_drv.h
+++ b/drivers/scsi/bfa/bfad_drv.h
@@ -139,14 +139,6 @@ struct bfad_cfg_param_s {
139 u32 binding_method; 139 u32 binding_method;
140}; 140};
141 141
142#define BFAD_AEN_MAX_APPS 8
143struct bfad_aen_file_s {
144 struct list_head qe;
145 struct bfad_s *bfad;
146 s32 ri;
147 s32 app_id;
148};
149
150/* 142/*
151 * BFAD (PCI function) data structure 143 * BFAD (PCI function) data structure
152 */ 144 */
@@ -186,9 +178,7 @@ struct bfad_s {
186 struct bfa_log_mod_s *logmod; 178 struct bfa_log_mod_s *logmod;
187 struct bfa_aen_s *aen; 179 struct bfa_aen_s *aen;
188 struct bfa_aen_s aen_buf; 180 struct bfa_aen_s aen_buf;
189 struct bfad_aen_file_s file_buf[BFAD_AEN_MAX_APPS]; 181 void *file_map[BFA_AEN_MAX_APP];
190 struct list_head file_q;
191 struct list_head file_free_q;
192 struct bfa_plog_s plog_buf; 182 struct bfa_plog_s plog_buf;
193 int ref_count; 183 int ref_count;
194 bfa_boolean_t ipfc_enabled; 184 bfa_boolean_t ipfc_enabled;