summaryrefslogtreecommitdiff
path: root/drivers/ieee1394/sbp2.h
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2006-11-02 21:16:08 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2006-12-07 22:51:53 +0100
commitca0c7453995d3696034435820522e2a60bd59bfc (patch)
tree76a831c8f70d65b7f1d710538a6cd5a71277acae /drivers/ieee1394/sbp2.h
parent5796aa7b11a6ba9d28a523fc82dddbc96c1a175e (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.h28
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 {
* Representations of commands and devices
*/
-enum cmd_dma_types {
+enum sbp2_dma_types {
CMD_DMA_NONE,
CMD_DMA_PAGE,
CMD_DMA_SINGLE
@@ -260,13 +260,13 @@ struct sbp2_command_info {
dma_addr_t sge_dma ____cacheline_aligned;
void *sge_buffer;
dma_addr_t cmd_dma;
- enum cmd_dma_types dma_type;
+ enum sbp2_dma_types dma_type;
unsigned long dma_size;
int dma_dir;
};
/* Per FireWire host */
-struct sbp2scsi_host_info {
+struct sbp2_fwhost_info {
struct hpsb_host *host;
struct list_head scsi_ids;
};
@@ -291,17 +291,17 @@ struct scsi_id_instance_data {
struct sbp2_status_block status_block;
/* How to talk to the unit */
- u64 sbp2_management_agent_addr;
- u64 sbp2_command_block_agent_addr;
+ u64 management_agent_addr;
+ u64 command_block_agent_addr;
u32 speed_code;
u32 max_payload_size;
/* Pulled from the device's unit directory */
- u32 sbp2_command_set_spec_id;
- u32 sbp2_command_set;
- u32 sbp2_unit_characteristics;
- u32 sbp2_lun;
- u32 sbp2_firmware_revision;
+ u32 command_set_spec_id;
+ u32 command_set;
+ u32 unit_characteristics;
+ u32 firmware_revision;
+ u16 lun;
/* Address for the unit to write status blocks to */
u64 status_fifo_addr;
@@ -310,12 +310,12 @@ struct scsi_id_instance_data {
int access_complete:1;
/* Pool of command ORBs for this logical unit */
- spinlock_t sbp2_command_orb_lock;
- struct list_head sbp2_command_orb_inuse;
- struct list_head sbp2_command_orb_completed;
+ spinlock_t cmd_orb_lock;
+ struct list_head cmd_orb_inuse;
+ struct list_head cmd_orb_completed;
/* Backlink to FireWire host; list of units attached to the host */
- struct sbp2scsi_host_info *hi;
+ struct sbp2_fwhost_info *hi;
struct list_head scsi_list;
/* IEEE 1394 core's device representations */