aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/firewire/fw-device.c20
-rw-r--r--drivers/firewire/fw-device.h13
2 files changed, 22 insertions, 11 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index ac5043cc9ad0..7e05e994c1bb 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -18,24 +18,26 @@
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21#include <linux/module.h> 21#include <linux/ctype.h>
22#include <linux/wait.h>
23#include <linux/errno.h>
24#include <linux/kthread.h>
25#include <linux/device.h>
26#include <linux/delay.h> 22#include <linux/delay.h>
23#include <linux/device.h>
24#include <linux/errno.h>
27#include <linux/idr.h> 25#include <linux/idr.h>
28#include <linux/jiffies.h> 26#include <linux/jiffies.h>
29#include <linux/string.h> 27#include <linux/kobject.h>
28#include <linux/list.h>
30#include <linux/mutex.h> 29#include <linux/mutex.h>
31#include <linux/rwsem.h> 30#include <linux/rwsem.h>
32#include <linux/semaphore.h> 31#include <linux/semaphore.h>
33#include <linux/spinlock.h> 32#include <linux/spinlock.h>
33#include <linux/string.h>
34#include <linux/workqueue.h>
35
34#include <asm/system.h> 36#include <asm/system.h>
35#include <linux/ctype.h> 37
36#include "fw-transaction.h"
37#include "fw-topology.h"
38#include "fw-device.h" 38#include "fw-device.h"
39#include "fw-topology.h"
40#include "fw-transaction.h"
39 41
40void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 * p) 42void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 * p)
41{ 43{
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h
index 41483f1a1beb..3085a74669b5 100644
--- a/drivers/firewire/fw-device.h
+++ b/drivers/firewire/fw-device.h
@@ -19,11 +19,17 @@
19#ifndef __fw_device_h 19#ifndef __fw_device_h
20#define __fw_device_h 20#define __fw_device_h
21 21
22#include <linux/device.h>
22#include <linux/fs.h> 23#include <linux/fs.h>
23#include <linux/cdev.h>
24#include <linux/idr.h> 24#include <linux/idr.h>
25#include <linux/rwsem.h> 25#include <linux/kernel.h>
26#include <linux/list.h>
26#include <linux/mutex.h> 27#include <linux/mutex.h>
28#include <linux/rwsem.h>
29#include <linux/sysfs.h>
30#include <linux/types.h>
31#include <linux/workqueue.h>
32
27#include <asm/atomic.h> 33#include <asm/atomic.h>
28 34
29enum fw_device_state { 35enum fw_device_state {
@@ -39,6 +45,9 @@ struct fw_attribute_group {
39 struct attribute *attrs[11]; 45 struct attribute *attrs[11];
40}; 46};
41 47
48struct fw_node;
49struct fw_card;
50
42/* 51/*
43 * Note, fw_device.generation always has to be read before fw_device.node_id. 52 * Note, fw_device.generation always has to be read before fw_device.node_id.
44 * Use SMP memory barriers to ensure this. Otherwise requests will be sent 53 * Use SMP memory barriers to ensure this. Otherwise requests will be sent