diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-11-02 15:16:08 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-07 16:51:53 -0500 |
commit | ca0c7453995d3696034435820522e2a60bd59bfc (patch) | |
tree | 76a831c8f70d65b7f1d710538a6cd5a71277acae /drivers/ieee1394/sbp2.h | |
parent | 5796aa7b11a6ba9d28a523fc82dddbc96c1a175e (diff) |
ieee1394: sbp2: clean up sbp2_ namespace
Prepend sbp2*_ to anything globally defined in sbp2.c except for some
macros. Strip sbp2_ from names of struct members.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/sbp2.h')
-rw-r--r-- | drivers/ieee1394/sbp2.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h index d1dbc0d63177..6c1f8ff1c59e 100644 --- a/drivers/ieee1394/sbp2.h +++ b/drivers/ieee1394/sbp2.h | |||
@@ -241,7 +241,7 @@ struct sbp2_status_block { | |||
241 | * Representations of commands and devices | 241 | * Representations of commands and devices |
242 | */ | 242 | */ |
243 | 243 | ||
244 | enum cmd_dma_types { | 244 | enum sbp2_dma_types { |
245 | CMD_DMA_NONE, | 245 | CMD_DMA_NONE, |
246 | CMD_DMA_PAGE, | 246 | CMD_DMA_PAGE, |
247 | CMD_DMA_SINGLE | 247 | CMD_DMA_SINGLE |
@@ -260,13 +260,13 @@ struct sbp2_command_info { | |||
260 | dma_addr_t sge_dma ____cacheline_aligned; | 260 | dma_addr_t sge_dma ____cacheline_aligned; |
261 | void *sge_buffer; | 261 | void *sge_buffer; |
262 | dma_addr_t cmd_dma; | 262 | dma_addr_t cmd_dma; |
263 | enum cmd_dma_types dma_type; | 263 | enum sbp2_dma_types dma_type; |
264 | unsigned long dma_size; | 264 | unsigned long dma_size; |
265 | int dma_dir; | 265 | int dma_dir; |
266 | }; | 266 | }; |
267 | 267 | ||
268 | /* Per FireWire host */ | 268 | /* Per FireWire host */ |
269 | struct sbp2scsi_host_info { | 269 | struct sbp2_fwhost_info { |
270 | struct hpsb_host *host; | 270 | struct hpsb_host *host; |
271 | struct list_head scsi_ids; | 271 | struct list_head scsi_ids; |
272 | }; | 272 | }; |
@@ -291,17 +291,17 @@ struct scsi_id_instance_data { | |||
291 | struct sbp2_status_block status_block; | 291 | struct sbp2_status_block status_block; |
292 | 292 | ||
293 | /* How to talk to the unit */ | 293 | /* How to talk to the unit */ |
294 | u64 sbp2_management_agent_addr; | 294 | u64 management_agent_addr; |
295 | u64 sbp2_command_block_agent_addr; | 295 | u64 command_block_agent_addr; |
296 | u32 speed_code; | 296 | u32 speed_code; |
297 | u32 max_payload_size; | 297 | u32 max_payload_size; |
298 | 298 | ||
299 | /* Pulled from the device's unit directory */ | 299 | /* Pulled from the device's unit directory */ |
300 | u32 sbp2_command_set_spec_id; | 300 | u32 command_set_spec_id; |
301 | u32 sbp2_command_set; | 301 | u32 command_set; |
302 | u32 sbp2_unit_characteristics; | 302 | u32 unit_characteristics; |
303 | u32 sbp2_lun; | 303 | u32 firmware_revision; |
304 | u32 sbp2_firmware_revision; | 304 | u16 lun; |
305 | 305 | ||
306 | /* Address for the unit to write status blocks to */ | 306 | /* Address for the unit to write status blocks to */ |
307 | u64 status_fifo_addr; | 307 | u64 status_fifo_addr; |
@@ -310,12 +310,12 @@ struct scsi_id_instance_data { | |||
310 | int access_complete:1; | 310 | int access_complete:1; |
311 | 311 | ||
312 | /* Pool of command ORBs for this logical unit */ | 312 | /* Pool of command ORBs for this logical unit */ |
313 | spinlock_t sbp2_command_orb_lock; | 313 | spinlock_t cmd_orb_lock; |
314 | struct list_head sbp2_command_orb_inuse; | 314 | struct list_head cmd_orb_inuse; |
315 | struct list_head sbp2_command_orb_completed; | 315 | struct list_head cmd_orb_completed; |
316 | 316 | ||
317 | /* Backlink to FireWire host; list of units attached to the host */ | 317 | /* Backlink to FireWire host; list of units attached to the host */ |
318 | struct sbp2scsi_host_info *hi; | 318 | struct sbp2_fwhost_info *hi; |
319 | struct list_head scsi_list; | 319 | struct list_head scsi_list; |
320 | 320 | ||
321 | /* IEEE 1394 core's device representations */ | 321 | /* IEEE 1394 core's device representations */ |