ieee1394_transactions.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _IEEE1394_TRANSACTIONS_H
  2. #define _IEEE1394_TRANSACTIONS_H
  3. #include <linux/types.h>
  4. #include "ieee1394_types.h"
  5. struct hpsb_packet;
  6. struct hpsb_host;
  7. int hpsb_get_tlabel(struct hpsb_packet *packet);
  8. void hpsb_free_tlabel(struct hpsb_packet *packet);
  9. struct hpsb_packet *hpsb_make_readpacket(struct hpsb_host *host, nodeid_t node,
  10. u64 addr, size_t length);
  11. struct hpsb_packet *hpsb_make_lockpacket(struct hpsb_host *host, nodeid_t node,
  12. u64 addr, int extcode, quadlet_t *data,
  13. quadlet_t arg);
  14. struct hpsb_packet *hpsb_make_lock64packet(struct hpsb_host *host,
  15. nodeid_t node, u64 addr, int extcode,
  16. octlet_t *data, octlet_t arg);
  17. struct hpsb_packet *hpsb_make_phypacket(struct hpsb_host *host, quadlet_t data);
  18. struct hpsb_packet *hpsb_make_writepacket(struct hpsb_host *host,
  19. nodeid_t node, u64 addr,
  20. quadlet_t *buffer, size_t length);
  21. struct hpsb_packet *hpsb_make_streampacket(struct hpsb_host *host, u8 *buffer,
  22. int length, int channel, int tag,
  23. int sync);
  24. int hpsb_packet_success(struct hpsb_packet *packet);
  25. int hpsb_read(struct hpsb_host *host, nodeid_t node, unsigned int generation,
  26. u64 addr, quadlet_t *buffer, size_t length);
  27. int hpsb_write(struct hpsb_host *host, nodeid_t node, unsigned int generation,
  28. u64 addr, quadlet_t *buffer, size_t length);
  29. int hpsb_lock(struct hpsb_host *host, nodeid_t node, unsigned int generation,
  30. u64 addr, int extcode, quadlet_t *data, quadlet_t arg);
  31. #ifdef HPSB_DEBUG_TLABELS
  32. extern spinlock_t hpsb_tlabel_lock;
  33. #endif
  34. #endif /* _IEEE1394_TRANSACTIONS_H */