Blackfin serial driver: ignore framing and parity errors
[linux-2.6/mini2440.git] / drivers / ieee1394 / ieee1394_transactions.h
blob86b8ee692ea7711bc868c407e816871ce7b6c969
1 #ifndef _IEEE1394_TRANSACTIONS_H
2 #define _IEEE1394_TRANSACTIONS_H
4 #include <linux/types.h>
6 #include "ieee1394_types.h"
8 struct hpsb_packet;
9 struct hpsb_host;
11 int hpsb_get_tlabel(struct hpsb_packet *packet);
12 void hpsb_free_tlabel(struct hpsb_packet *packet);
13 struct hpsb_packet *hpsb_make_readpacket(struct hpsb_host *host, nodeid_t node,
14 u64 addr, size_t length);
15 struct hpsb_packet *hpsb_make_lockpacket(struct hpsb_host *host, nodeid_t node,
16 u64 addr, int extcode, quadlet_t *data,
17 quadlet_t arg);
18 struct hpsb_packet *hpsb_make_lock64packet(struct hpsb_host *host,
19 nodeid_t node, u64 addr, int extcode,
20 octlet_t *data, octlet_t arg);
21 struct hpsb_packet *hpsb_make_phypacket(struct hpsb_host *host, quadlet_t data);
22 struct hpsb_packet *hpsb_make_isopacket(struct hpsb_host *host, int length,
23 int channel, int tag, int sync);
24 struct hpsb_packet *hpsb_make_writepacket(struct hpsb_host *host,
25 nodeid_t node, u64 addr,
26 quadlet_t *buffer, size_t length);
27 struct hpsb_packet *hpsb_make_streampacket(struct hpsb_host *host, u8 *buffer,
28 int length, int channel, int tag,
29 int sync);
30 int hpsb_packet_success(struct hpsb_packet *packet);
31 int hpsb_read(struct hpsb_host *host, nodeid_t node, unsigned int generation,
32 u64 addr, quadlet_t *buffer, size_t length);
33 int hpsb_write(struct hpsb_host *host, nodeid_t node, unsigned int generation,
34 u64 addr, quadlet_t *buffer, size_t length);
36 #ifdef HPSB_DEBUG_TLABELS
37 extern spinlock_t hpsb_tlabel_lock;
38 #endif
40 #endif /* _IEEE1394_TRANSACTIONS_H */