aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/sbp2.h
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2006-11-02 15:16:08 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2006-12-07 16:59:34 -0500
commit138c8af8649ceea38aa52323b9326c10068bb597 (patch)
treeaab41a5b5e54292133f431e83052bd296829ef47 /drivers/ieee1394/sbp2.h
parent9117c6dc430578748ce732c6ff25eed8ed501a97 (diff)
ieee1394: sbp2: more concise names for types and variables
"struct scsi_id_instance_data" represents a logical unit. Rename it to "struct sbp2_lu", and "scsi_id" to "lu". Rename some other variables too. Wrap almost all lines after at most 80 columns. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/sbp2.h')
-rw-r--r--drivers/ieee1394/sbp2.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h
index 8902a4676959..38ca1195e8ee 100644
--- a/drivers/ieee1394/sbp2.h
+++ b/drivers/ieee1394/sbp2.h
@@ -256,7 +256,8 @@ struct sbp2_command_info {
256 void (*Current_done)(struct scsi_cmnd *); 256 void (*Current_done)(struct scsi_cmnd *);
257 257
258 /* Also need s/g structure for each sbp2 command */ 258 /* Also need s/g structure for each sbp2 command */
259 struct sbp2_unrestricted_page_table scatter_gather_element[SG_ALL] ____cacheline_aligned; 259 struct sbp2_unrestricted_page_table
260 scatter_gather_element[SG_ALL] ____cacheline_aligned;
260 dma_addr_t sge_dma ____cacheline_aligned; 261 dma_addr_t sge_dma ____cacheline_aligned;
261 void *sge_buffer; 262 void *sge_buffer;
262 dma_addr_t cmd_dma; 263 dma_addr_t cmd_dma;
@@ -268,11 +269,11 @@ struct sbp2_command_info {
268/* Per FireWire host */ 269/* Per FireWire host */
269struct sbp2_fwhost_info { 270struct sbp2_fwhost_info {
270 struct hpsb_host *host; 271 struct hpsb_host *host;
271 struct list_head scsi_ids; 272 struct list_head logical_units;
272}; 273};
273 274
274/* Per logical unit */ 275/* Per logical unit */
275struct scsi_id_instance_data { 276struct sbp2_lu {
276 /* Operation request blocks */ 277 /* Operation request blocks */
277 struct sbp2_command_orb *last_orb; 278 struct sbp2_command_orb *last_orb;
278 dma_addr_t last_orb_dma; 279 dma_addr_t last_orb_dma;
@@ -310,7 +311,7 @@ struct scsi_id_instance_data {
310 311
311 /* Backlink to FireWire host; list of units attached to the host */ 312 /* Backlink to FireWire host; list of units attached to the host */
312 struct sbp2_fwhost_info *hi; 313 struct sbp2_fwhost_info *hi;
313 struct list_head scsi_list; 314 struct list_head lu_list;
314 315
315 /* IEEE 1394 core's device representations */ 316 /* IEEE 1394 core's device representations */
316 struct node_entry *ne; 317 struct node_entry *ne;
@@ -318,7 +319,7 @@ struct scsi_id_instance_data {
318 319
319 /* SCSI core's device representations */ 320 /* SCSI core's device representations */
320 struct scsi_device *sdev; 321 struct scsi_device *sdev;
321 struct Scsi_Host *scsi_host; 322 struct Scsi_Host *shost;
322 323
323 /* Device specific workarounds/brokeness */ 324 /* Device specific workarounds/brokeness */
324 unsigned workarounds; 325 unsigned workarounds;
@@ -330,14 +331,14 @@ struct scsi_id_instance_data {
330 struct work_struct protocol_work; 331 struct work_struct protocol_work;
331}; 332};
332 333
333/* For use in scsi_id_instance_data.state */ 334/* For use in sbp2_lu.state */
334enum sbp2lu_state_types { 335enum sbp2lu_state_types {
335 SBP2LU_STATE_RUNNING, /* all normal */ 336 SBP2LU_STATE_RUNNING, /* all normal */
336 SBP2LU_STATE_IN_RESET, /* between bus reset and reconnect */ 337 SBP2LU_STATE_IN_RESET, /* between bus reset and reconnect */
337 SBP2LU_STATE_IN_SHUTDOWN /* when sbp2_remove was called */ 338 SBP2LU_STATE_IN_SHUTDOWN /* when sbp2_remove was called */
338}; 339};
339 340
340/* For use in scsi_id_instance_data.workarounds and in the corresponding 341/* For use in sbp2_lu.workarounds and in the corresponding
341 * module load parameter */ 342 * module load parameter */
342#define SBP2_WORKAROUND_128K_MAX_TRANS 0x1 343#define SBP2_WORKAROUND_128K_MAX_TRANS 0x1
343#define SBP2_WORKAROUND_INQUIRY_36 0x2 344#define SBP2_WORKAROUND_INQUIRY_36 0x2