diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-14 14:40:10 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-31 06:40:51 -0400 |
commit | 19593ffdb6daa6ba691d247a2400cece12687c52 (patch) | |
tree | 18c3508bbdb5f2d1b1bf51ac653ec580043a9340 /include/linux | |
parent | 5b189bf3633c3b73d4f08124a86f3e019953d412 (diff) |
firewire: ohci: 0 may be a valid DMA address
I was told that there are obscure architectures with non-coherent DMA
which may DMA-map to bus address 0. We shall not use 0 as a magic
number of uninitialized bus address variables.
The packet->payload_length > 0 test cannot be used either (except in
at_context_queue_packet) because local requests are not DMA-mapped
regardless of payload_length. Hence add a state flag to struct
fw_packet.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/firewire.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index 211a5d7d87b3..9416a461b696 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
@@ -267,6 +267,7 @@ struct fw_packet { | |||
267 | void *payload; | 267 | void *payload; |
268 | size_t payload_length; | 268 | size_t payload_length; |
269 | dma_addr_t payload_bus; | 269 | dma_addr_t payload_bus; |
270 | bool payload_mapped; | ||
270 | u32 timestamp; | 271 | u32 timestamp; |
271 | 272 | ||
272 | /* | 273 | /* |