diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-01 05:25:15 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:52 -0400 |
commit | 34a991587a5cc9f78960c2c9beea217866458c41 (patch) | |
tree | 824bfb5d50705223339e2bd3369ae3194f2eece3 /drivers/scsi/isci/host.h | |
parent | 89a7301f21fb00e753089671eb9e4132aab8ea08 (diff) |
isci: kill 'get/set' macros
Most of these simple dereference macros are longer than their open coded
equivalent. Deleting enum sci_controller_mode is thrown in for good
measure.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.h')
-rw-r--r-- | drivers/scsi/isci/host.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h index d87f21de1807..a72d2be2445d 100644 --- a/drivers/scsi/isci/host.h +++ b/drivers/scsi/isci/host.h | |||
@@ -172,6 +172,7 @@ struct isci_host { | |||
172 | /* XXX kill */ | 172 | /* XXX kill */ |
173 | bool phy_startup_timer_pending; | 173 | bool phy_startup_timer_pending; |
174 | u32 next_phy_to_start; | 174 | u32 next_phy_to_start; |
175 | /* XXX convert to unsigned long and use bitops */ | ||
175 | u8 invalid_phy_mask; | 176 | u8 invalid_phy_mask; |
176 | 177 | ||
177 | /* TODO attempt dynamic interrupt coalescing scheme */ | 178 | /* TODO attempt dynamic interrupt coalescing scheme */ |
@@ -359,13 +360,8 @@ static inline struct isci_host *dev_to_ihost(struct domain_device *dev) | |||
359 | return dev->port->ha->lldd_ha; | 360 | return dev->port->ha->lldd_ha; |
360 | } | 361 | } |
361 | 362 | ||
362 | /** | 363 | /* we always use protocol engine group zero */ |
363 | * sci_controller_get_protocol_engine_group() - | 364 | #define ISCI_PEG 0 |
364 | * | ||
365 | * This macro returns the protocol engine group for this controller object. | ||
366 | * Presently we only support protocol engine group 0 so just return that | ||
367 | */ | ||
368 | #define sci_controller_get_protocol_engine_group(controller) 0 | ||
369 | 365 | ||
370 | /* see sci_controller_io_tag_allocate|free for how seq and tci are built */ | 366 | /* see sci_controller_io_tag_allocate|free for how seq and tci are built */ |
371 | #define ISCI_TAG(seq, tci) (((u16) (seq)) << 12 | tci) | 367 | #define ISCI_TAG(seq, tci) (((u16) (seq)) << 12 | tci) |
@@ -386,16 +382,6 @@ static inline int sci_remote_device_node_count(struct isci_remote_device *idev) | |||
386 | } | 382 | } |
387 | 383 | ||
388 | /** | 384 | /** |
389 | * sci_controller_set_invalid_phy() - | ||
390 | * | ||
391 | * This macro will set the bit in the invalid phy mask for this controller | ||
392 | * object. This is used to control messages reported for invalid link up | ||
393 | * notifications. | ||
394 | */ | ||
395 | #define sci_controller_set_invalid_phy(controller, phy) \ | ||
396 | ((controller)->invalid_phy_mask |= (1 << (phy)->phy_index)) | ||
397 | |||
398 | /** | ||
399 | * sci_controller_clear_invalid_phy() - | 385 | * sci_controller_clear_invalid_phy() - |
400 | * | 386 | * |
401 | * This macro will clear the bit in the invalid phy mask for this controller | 387 | * This macro will clear the bit in the invalid phy mask for this controller |