1. 10 5月, 2012 2 次提交
    • C
      firewire: Move fw_card kref functions into linux/firewire.h · fc5f80b1
      Chris Boot 提交于
      When writing a firewire driver that doesn't deal with struct fw_device
      objects (e.g. it only publishes FireWire units and doesn't subscribe to
      them), you likely need to keep referenced to struct fw_card objects so
      that you can send messages to other nodes. This patch moves
      fw_card_put(), fw_card_get() and fw_card_release() into the public
      include/linux/firewire.h header instead of drivers/firewire/core.h, and
      adds EXPORT_SYMBOL_GPL(fw_card_release).
      
      The firewire-sbp-target module requires these so it can keep a reference
      to the fw_card object in order that it can fetch ORBs to execute and
      read/write related data and status information.
      Signed-off-by: NChris Boot <bootc@bootc.net>
      Acked-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: Clemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      fc5f80b1
    • C
      firewire: Add function to get speed from opaque struct fw_request · 253d9237
      Chris Boot 提交于
      Sometimes it's useful to know the FireWire speed of the request that has
      just come in to a fw_address_handler callback. As struct fw_request is
      opaque we can't peek inside to get the speed out of the struct fw_packet
      that's just inside. For example, the SBP-2 spec says:
      
      "The speed at which the block write request to the MANAGEMENT_AGENT
      register is received shall determine the speed used by the target for
      all subsequent requests to read the initiator’s configuration ROM, fetch
      ORB’s from initiator memory or store status at the initiator’s
      status_FIFO. Command block ORB’s separately specify the speed for
      requests addressed to the data buffer or page table."
      
      [ ANSI T10/1155D Revision 4 page 53/54 ]
      Signed-off-by: NChris Boot <bootc@bootc.net>
      Acked-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: Clemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      253d9237
  2. 07 5月, 2012 15 次提交
  3. 15 4月, 2012 21 次提交
  4. 08 4月, 2012 2 次提交