diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-01-23 15:11:43 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:02:43 -0500 |
commit | 907293d78872ee492ce6a114258dd853ec5082ae (patch) | |
tree | 9384ac58621706b7d3846b34944fa5475f084502 /drivers/firewire/fw-sbp2.c | |
parent | 366f5f4fa31cd3f3d5901f5edfe255a48906505d (diff) |
firewire: consistent usage of node_id
Definitions as per IEEE 1212 and IEEE 1394:
Node ID: Concatenation of bus ID and local ID. 16 bits long.
Bus ID: Identifies a particular bus within a group of buses
interconnected by bus bridges.
Local ID: Identifies a particular node on a bus.
PHY ID: Local ID of IEEE 1394 nodes. 6 bits long.
Never ever use a variable called node_id for anything else than a node ID.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-sbp2.c')
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index f5c46822b7d8..4e42b73f1e3e 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -328,7 +328,7 @@ sbp2_send_orb(struct sbp2_orb *orb, struct fw_unit *unit, | |||
328 | spin_unlock_irqrestore(&device->card->lock, flags); | 328 | spin_unlock_irqrestore(&device->card->lock, flags); |
329 | 329 | ||
330 | fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST, | 330 | fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST, |
331 | node_id | LOCAL_BUS, generation, | 331 | node_id, generation, |
332 | device->node->max_speed, offset, | 332 | device->node->max_speed, offset, |
333 | &orb->pointer, sizeof orb->pointer, | 333 | &orb->pointer, sizeof orb->pointer, |
334 | complete_transaction, orb); | 334 | complete_transaction, orb); |
@@ -485,7 +485,7 @@ static int sbp2_agent_reset(struct fw_unit *unit) | |||
485 | return -ENOMEM; | 485 | return -ENOMEM; |
486 | 486 | ||
487 | fw_send_request(device->card, t, TCODE_WRITE_QUADLET_REQUEST, | 487 | fw_send_request(device->card, t, TCODE_WRITE_QUADLET_REQUEST, |
488 | sd->node_id | LOCAL_BUS, sd->generation, SCODE_400, | 488 | sd->node_id, sd->generation, SCODE_400, |
489 | sd->command_block_agent_address + SBP2_AGENT_RESET, | 489 | sd->command_block_agent_address + SBP2_AGENT_RESET, |
490 | &zero, sizeof zero, complete_agent_reset_write, t); | 490 | &zero, sizeof zero, complete_agent_reset_write, t); |
491 | 491 | ||
@@ -586,7 +586,7 @@ static int sbp2_probe(struct device *dev) | |||
586 | 586 | ||
587 | sd->generation = generation; | 587 | sd->generation = generation; |
588 | sd->node_id = node_id; | 588 | sd->node_id = node_id; |
589 | sd->address_high = (LOCAL_BUS | local_node_id) << 16; | 589 | sd->address_high = local_node_id << 16; |
590 | 590 | ||
591 | /* Get command block agent offset and login id. */ | 591 | /* Get command block agent offset and login id. */ |
592 | sd->command_block_agent_address = | 592 | sd->command_block_agent_address = |
@@ -663,7 +663,7 @@ static void sbp2_reconnect(struct work_struct *work) | |||
663 | 663 | ||
664 | sd->generation = generation; | 664 | sd->generation = generation; |
665 | sd->node_id = node_id; | 665 | sd->node_id = node_id; |
666 | sd->address_high = (LOCAL_BUS | local_node_id) << 16; | 666 | sd->address_high = local_node_id << 16; |
667 | } | 667 | } |
668 | 668 | ||
669 | static void sbp2_update(struct fw_unit *unit) | 669 | static void sbp2_update(struct fw_unit *unit) |