diff options
Diffstat (limited to 'drivers/ieee1394/ieee1394_transactions.h')
-rw-r--r-- | drivers/ieee1394/ieee1394_transactions.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/ieee1394/ieee1394_transactions.h b/drivers/ieee1394/ieee1394_transactions.h index c1369c41469b..86b8ee692ea7 100644 --- a/drivers/ieee1394/ieee1394_transactions.h +++ b/drivers/ieee1394/ieee1394_transactions.h | |||
@@ -27,27 +27,7 @@ struct hpsb_packet *hpsb_make_writepacket(struct hpsb_host *host, | |||
27 | struct hpsb_packet *hpsb_make_streampacket(struct hpsb_host *host, u8 *buffer, | 27 | struct hpsb_packet *hpsb_make_streampacket(struct hpsb_host *host, u8 *buffer, |
28 | int length, int channel, int tag, | 28 | int length, int channel, int tag, |
29 | int sync); | 29 | int sync); |
30 | |||
31 | /* | ||
32 | * hpsb_packet_success - Make sense of the ack and reply codes and | ||
33 | * return more convenient error codes: | ||
34 | * 0 success | ||
35 | * -EBUSY node is busy, try again | ||
36 | * -EAGAIN error which can probably resolved by retry | ||
37 | * -EREMOTEIO node suffers from an internal error | ||
38 | * -EACCES this transaction is not allowed on requested address | ||
39 | * -EINVAL invalid address at node | ||
40 | */ | ||
41 | int hpsb_packet_success(struct hpsb_packet *packet); | 30 | int hpsb_packet_success(struct hpsb_packet *packet); |
42 | |||
43 | /* | ||
44 | * The generic read and write functions. All recognize the local node ID | ||
45 | * and act accordingly. Read and write automatically use quadlet commands if | ||
46 | * length == 4 and and block commands otherwise (however, they do not yet | ||
47 | * support lengths that are not a multiple of 4). You must explicitly specifiy | ||
48 | * the generation for which the node ID is valid, to avoid sending packets to | ||
49 | * the wrong nodes when we race with a bus reset. | ||
50 | */ | ||
51 | int hpsb_read(struct hpsb_host *host, nodeid_t node, unsigned int generation, | 31 | int hpsb_read(struct hpsb_host *host, nodeid_t node, unsigned int generation, |
52 | u64 addr, quadlet_t *buffer, size_t length); | 32 | u64 addr, quadlet_t *buffer, size_t length); |
53 | int hpsb_write(struct hpsb_host *host, nodeid_t node, unsigned int generation, | 33 | int hpsb_write(struct hpsb_host *host, nodeid_t node, unsigned int generation, |