diff options
Diffstat (limited to 'include/linux/firewire.h')
| -rw-r--r-- | include/linux/firewire.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index 84ccf8e04fa6..4db7b68f0582 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | #define _LINUX_FIREWIRE_H | 2 | #define _LINUX_FIREWIRE_H |
| 3 | 3 | ||
| 4 | #include <linux/completion.h> | 4 | #include <linux/completion.h> |
| 5 | #include <linux/device.h> | ||
| 6 | #include <linux/dma-mapping.h> | 5 | #include <linux/dma-mapping.h> |
| 7 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
| 8 | #include <linux/kref.h> | 7 | #include <linux/kref.h> |
| @@ -17,9 +16,6 @@ | |||
| 17 | #include <linux/atomic.h> | 16 | #include <linux/atomic.h> |
| 18 | #include <asm/byteorder.h> | 17 | #include <asm/byteorder.h> |
| 19 | 18 | ||
| 20 | #define fw_notify(s, args...) printk(KERN_NOTICE KBUILD_MODNAME ": " s, ## args) | ||
| 21 | #define fw_error(s, args...) printk(KERN_ERR KBUILD_MODNAME ": " s, ## args) | ||
| 22 | |||
| 23 | #define CSR_REGISTER_BASE 0xfffff0000000ULL | 19 | #define CSR_REGISTER_BASE 0xfffff0000000ULL |
| 24 | 20 | ||
| 25 | /* register offsets are relative to CSR_REGISTER_BASE */ | 21 | /* register offsets are relative to CSR_REGISTER_BASE */ |
| @@ -68,6 +64,8 @@ | |||
| 68 | #define CSR_MODEL 0x17 | 64 | #define CSR_MODEL 0x17 |
| 69 | #define CSR_DIRECTORY_ID 0x20 | 65 | #define CSR_DIRECTORY_ID 0x20 |
| 70 | 66 | ||
| 67 | struct device; | ||
| 68 | |||
| 71 | struct fw_csr_iterator { | 69 | struct fw_csr_iterator { |
| 72 | const u32 *p; | 70 | const u32 *p; |
| 73 | const u32 *end; | 71 | const u32 *end; |
| @@ -203,18 +201,6 @@ static inline int fw_device_is_shutdown(struct fw_device *device) | |||
| 203 | return atomic_read(&device->state) == FW_DEVICE_SHUTDOWN; | 201 | return atomic_read(&device->state) == FW_DEVICE_SHUTDOWN; |
| 204 | } | 202 | } |
| 205 | 203 | ||
| 206 | static inline struct fw_device *fw_device_get(struct fw_device *device) | ||
| 207 | { | ||
| 208 | get_device(&device->device); | ||
| 209 | |||
| 210 | return device; | ||
| 211 | } | ||
| 212 | |||
| 213 | static inline void fw_device_put(struct fw_device *device) | ||
| 214 | { | ||
| 215 | put_device(&device->device); | ||
| 216 | } | ||
| 217 | |||
| 218 | int fw_device_enable_phys_dma(struct fw_device *device); | 204 | int fw_device_enable_phys_dma(struct fw_device *device); |
| 219 | 205 | ||
| 220 | /* | 206 | /* |
| @@ -441,6 +427,7 @@ int fw_iso_context_queue(struct fw_iso_context *ctx, | |||
| 441 | struct fw_iso_buffer *buffer, | 427 | struct fw_iso_buffer *buffer, |
| 442 | unsigned long payload); | 428 | unsigned long payload); |
| 443 | void fw_iso_context_queue_flush(struct fw_iso_context *ctx); | 429 | void fw_iso_context_queue_flush(struct fw_iso_context *ctx); |
| 430 | int fw_iso_context_flush_completions(struct fw_iso_context *ctx); | ||
| 444 | int fw_iso_context_start(struct fw_iso_context *ctx, | 431 | int fw_iso_context_start(struct fw_iso_context *ctx, |
| 445 | int cycle, int sync, int tags); | 432 | int cycle, int sync, int tags); |
| 446 | int fw_iso_context_stop(struct fw_iso_context *ctx); | 433 | int fw_iso_context_stop(struct fw_iso_context *ctx); |
