libsas.h (a3a142524aa4b1539a64a55087bf12ffa4b1f94e) | libsas.h (9095a64a9aead653df320e3a6fc70835c15d46e4) |
---|---|
1/* 2 * SAS host prototypes and structures header file 3 * 4 * Copyright (C) 2005 Adaptec, Inc. All rights reserved. 5 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> 6 * 7 * This file is licensed under GPLv2. 8 * --- 164 unchanged lines hidden (view full) --- 173}; 174 175enum { 176 SAS_DEV_GONE, 177 SAS_DEV_DESTROY, 178}; 179 180struct domain_device { | 1/* 2 * SAS host prototypes and structures header file 3 * 4 * Copyright (C) 2005 Adaptec, Inc. All rights reserved. 5 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> 6 * 7 * This file is licensed under GPLv2. 8 * --- 164 unchanged lines hidden (view full) --- 173}; 174 175enum { 176 SAS_DEV_GONE, 177 SAS_DEV_DESTROY, 178}; 179 180struct domain_device { |
181 spinlock_t done_lock; |
|
181 enum sas_dev_type dev_type; 182 183 enum sas_linkrate linkrate; 184 enum sas_linkrate min_linkrate; 185 enum sas_linkrate max_linkrate; 186 187 int pathways; 188 --- 127 unchanged lines hidden (view full) --- 316 struct sas_ha_struct *ha; /* may be set; the class sets it anyway */ 317 318 void *lldd_phy; /* not touched by the sas_class_code */ 319}; 320 321struct scsi_core { 322 struct Scsi_Host *shost; 323 | 182 enum sas_dev_type dev_type; 183 184 enum sas_linkrate linkrate; 185 enum sas_linkrate min_linkrate; 186 enum sas_linkrate max_linkrate; 187 188 int pathways; 189 --- 127 unchanged lines hidden (view full) --- 317 struct sas_ha_struct *ha; /* may be set; the class sets it anyway */ 318 319 void *lldd_phy; /* not touched by the sas_class_code */ 320}; 321 322struct scsi_core { 323 struct Scsi_Host *shost; 324 |
325 struct mutex task_queue_flush; |
|
324 spinlock_t task_queue_lock; 325 struct list_head task_queue; 326 int task_queue_size; 327 328 struct task_struct *queue_thread; 329}; 330 331struct sas_ha_event { 332 struct work_struct work; 333 struct sas_ha_struct *ha; 334}; 335 336enum sas_ha_state { 337 SAS_HA_REGISTERED, 338 SAS_HA_DRAINING, 339 SAS_HA_ATA_EH_ACTIVE, | 326 spinlock_t task_queue_lock; 327 struct list_head task_queue; 328 int task_queue_size; 329 330 struct task_struct *queue_thread; 331}; 332 333struct sas_ha_event { 334 struct work_struct work; 335 struct sas_ha_struct *ha; 336}; 337 338enum sas_ha_state { 339 SAS_HA_REGISTERED, 340 SAS_HA_DRAINING, 341 SAS_HA_ATA_EH_ACTIVE, |
342 SAS_HA_FROZEN, |
|
340}; 341 342struct sas_ha_struct { 343/* private: */ 344 struct sas_ha_event ha_events[HA_NUM_EVENTS]; 345 unsigned long pending; 346 347 struct list_head defer_q; /* work queued while draining */ --- 338 unchanged lines hidden --- | 343}; 344 345struct sas_ha_struct { 346/* private: */ 347 struct sas_ha_event ha_events[HA_NUM_EVENTS]; 348 unsigned long pending; 349 350 struct list_head defer_q; /* work queued while draining */ --- 338 unchanged lines hidden --- |