aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgb3i/cxgb3i.h
diff options
context:
space:
mode:
authorKaren Xie <kxie@chelsio.com>2009-04-01 14:11:23 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 10:23:11 -0400
commit515f1c885af2ba8a9500c8a7aa4ed16bbbfa3ef4 (patch)
tree5d6833dc4f2ecc26a72fd72f560286cc847a74a9 /drivers/scsi/cxgb3i/cxgb3i.h
parentd8e965076514dcb16410c0d18c6c8de4dcba19fc (diff)
[SCSI] cxgb3i: subscribe to error notification from cxgb3 driver
Add error notification handling function which is called during chip reset. Signed-off-by: Karen Xie <kxie@chelsio.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/cxgb3i/cxgb3i.h')
-rw-r--r--drivers/scsi/cxgb3i/cxgb3i.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i.h b/drivers/scsi/cxgb3i/cxgb3i.h
index a7cf550b9cca..0942227aa7ba 100644
--- a/drivers/scsi/cxgb3i/cxgb3i.h
+++ b/drivers/scsi/cxgb3i/cxgb3i.h
@@ -66,10 +66,12 @@ struct cxgb3i_hba {
66 * @pdev: pointer to pci dev 66 * @pdev: pointer to pci dev
67 * @hba_cnt: # of hbas (the same as # of ports) 67 * @hba_cnt: # of hbas (the same as # of ports)
68 * @hba: all the hbas on this adapter 68 * @hba: all the hbas on this adapter
69 * @flags: bit flag for adapter event/status
69 * @tx_max_size: max. tx packet size supported 70 * @tx_max_size: max. tx packet size supported
70 * @rx_max_size: max. rx packet size supported 71 * @rx_max_size: max. rx packet size supported
71 * @tag_format: ddp tag format settings 72 * @tag_format: ddp tag format settings
72 */ 73 */
74#define CXGB3I_ADAPTER_FLAG_RESET 0x1
73struct cxgb3i_adapter { 75struct cxgb3i_adapter {
74 struct list_head list_head; 76 struct list_head list_head;
75 spinlock_t lock; 77 spinlock_t lock;
@@ -78,6 +80,7 @@ struct cxgb3i_adapter {
78 unsigned char hba_cnt; 80 unsigned char hba_cnt;
79 struct cxgb3i_hba *hba[MAX_NPORTS]; 81 struct cxgb3i_hba *hba[MAX_NPORTS];
80 82
83 unsigned int flags;
81 unsigned int tx_max_size; 84 unsigned int tx_max_size;
82 unsigned int rx_max_size; 85 unsigned int rx_max_size;
83 86
@@ -137,10 +140,9 @@ struct cxgb3i_task_data {
137int cxgb3i_iscsi_init(void); 140int cxgb3i_iscsi_init(void);
138void cxgb3i_iscsi_cleanup(void); 141void cxgb3i_iscsi_cleanup(void);
139 142
140struct cxgb3i_adapter *cxgb3i_adapter_add(struct t3cdev *); 143struct cxgb3i_adapter *cxgb3i_adapter_find_by_tdev(struct t3cdev *);
141void cxgb3i_adapter_remove(struct t3cdev *); 144struct cxgb3i_adapter *cxgb3i_adapter_open(struct t3cdev *);
142int cxgb3i_adapter_ulp_init(struct cxgb3i_adapter *); 145void cxgb3i_adapter_close(struct t3cdev *);
143void cxgb3i_adapter_ulp_cleanup(struct cxgb3i_adapter *);
144 146
145struct cxgb3i_hba *cxgb3i_hba_find_by_netdev(struct net_device *); 147struct cxgb3i_hba *cxgb3i_hba_find_by_netdev(struct net_device *);
146struct cxgb3i_hba *cxgb3i_hba_host_add(struct cxgb3i_adapter *, 148struct cxgb3i_hba *cxgb3i_hba_host_add(struct cxgb3i_adapter *,