aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/ieee1394_transactions.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-12-15 08:11:41 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-01-30 16:22:20 -0500
commit3e75b493fbfad5d70831a2f7267c7cd8b8fec71f (patch)
tree665b57a7f7a1b95aa96cf53d7b1354712ed41e3c /drivers/ieee1394/ieee1394_transactions.c
parentc7ea990f87f9fbe6a7183c03f7993b3360454834 (diff)
ieee1394: remove unused code
The code has been in "#if 0 - #endif" since Linux 2.6.12. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/ieee1394_transactions.c')
-rw-r--r--drivers/ieee1394/ieee1394_transactions.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/drivers/ieee1394/ieee1394_transactions.c b/drivers/ieee1394/ieee1394_transactions.c
index 677989320951..10c3d9f8c038 100644
--- a/drivers/ieee1394/ieee1394_transactions.c
+++ b/drivers/ieee1394/ieee1394_transactions.c
@@ -570,71 +570,3 @@ int hpsb_write(struct hpsb_host *host, nodeid_t node, unsigned int generation,
570 570
571 return retval; 571 return retval;
572} 572}
573
574#if 0
575
576int hpsb_lock(struct hpsb_host *host, nodeid_t node, unsigned int generation,
577 u64 addr, int extcode, quadlet_t * data, quadlet_t arg)
578{
579 struct hpsb_packet *packet;
580 int retval = 0;
581
582 BUG_ON(in_interrupt()); // We can't be called in an interrupt, yet
583
584 packet = hpsb_make_lockpacket(host, node, addr, extcode, data, arg);
585 if (!packet)
586 return -ENOMEM;
587
588 packet->generation = generation;
589 retval = hpsb_send_packet_and_wait(packet);
590 if (retval < 0)
591 goto hpsb_lock_fail;
592
593 retval = hpsb_packet_success(packet);
594
595 if (retval == 0) {
596 *data = packet->data[0];
597 }
598
599 hpsb_lock_fail:
600 hpsb_free_tlabel(packet);
601 hpsb_free_packet(packet);
602
603 return retval;
604}
605
606int hpsb_send_gasp(struct hpsb_host *host, int channel, unsigned int generation,
607 quadlet_t * buffer, size_t length, u32 specifier_id,
608 unsigned int version)
609{
610 struct hpsb_packet *packet;
611 int retval = 0;
612 u16 specifier_id_hi = (specifier_id & 0x00ffff00) >> 8;
613 u8 specifier_id_lo = specifier_id & 0xff;
614
615 HPSB_VERBOSE("Send GASP: channel = %d, length = %Zd", channel, length);
616
617 length += 8;
618
619 packet = hpsb_make_streampacket(host, NULL, length, channel, 3, 0);
620 if (!packet)
621 return -ENOMEM;
622
623 packet->data[0] = cpu_to_be32((host->node_id << 16) | specifier_id_hi);
624 packet->data[1] =
625 cpu_to_be32((specifier_id_lo << 24) | (version & 0x00ffffff));
626
627 memcpy(&(packet->data[2]), buffer, length - 8);
628
629 packet->generation = generation;
630
631 packet->no_waiter = 1;
632
633 retval = hpsb_send_packet(packet);
634 if (retval < 0)
635 hpsb_free_packet(packet);
636
637 return retval;
638}
639
640#endif /* 0 */