aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2o.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/i2o.h')
-rw-r--r--include/linux/i2o.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/linux/i2o.h b/include/linux/i2o.h
index bdc286ec947c..d79c8a4bc4f8 100644
--- a/include/linux/i2o.h
+++ b/include/linux/i2o.h
@@ -25,10 +25,14 @@
25/* How many different OSM's are we allowing */ 25/* How many different OSM's are we allowing */
26#define I2O_MAX_DRIVERS 8 26#define I2O_MAX_DRIVERS 8
27 27
28#include <asm/io.h>
29#include <asm/semaphore.h> /* Needed for MUTEX init macros */
30#include <linux/pci.h> 28#include <linux/pci.h>
31#include <linux/dma-mapping.h> 29#include <linux/dma-mapping.h>
30#include <linux/string.h>
31#include <linux/slab.h>
32#include <linux/workqueue.h> /* work_struct */
33
34#include <asm/io.h>
35#include <asm/semaphore.h> /* Needed for MUTEX init macros */
32 36
33/* message queue empty */ 37/* message queue empty */
34#define I2O_QUEUE_EMPTY 0xffffffff 38#define I2O_QUEUE_EMPTY 0xffffffff
@@ -66,8 +70,6 @@ struct i2o_device {
66 struct device device; 70 struct device device;
67 71
68 struct semaphore lock; /* device lock */ 72 struct semaphore lock; /* device lock */
69
70 struct class_device classdev; /* i2o device class */
71}; 73};
72 74
73/* 75/*
@@ -194,7 +196,7 @@ struct i2o_controller {
194 struct resource mem_resource; /* Mem resource allocated to the IOP */ 196 struct resource mem_resource; /* Mem resource allocated to the IOP */
195 197
196 struct device device; 198 struct device device;
197 struct class_device classdev; /* I2O controller class */ 199 struct class_device *classdev; /* I2O controller class device */
198 struct i2o_device *exec; /* Executive */ 200 struct i2o_device *exec; /* Executive */
199#if BITS_PER_LONG == 64 201#if BITS_PER_LONG == 64
200 spinlock_t context_list_lock; /* lock for context_list */ 202 spinlock_t context_list_lock; /* lock for context_list */
@@ -492,7 +494,7 @@ static inline int i2o_dma_map_sg(struct i2o_controller *c,
492 * Returns 0 on success or -ENOMEM on failure. 494 * Returns 0 on success or -ENOMEM on failure.
493 */ 495 */
494static inline int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr, 496static inline int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr,
495 size_t len, unsigned int gfp_mask) 497 size_t len, gfp_t gfp_mask)
496{ 498{
497 struct pci_dev *pdev = to_pci_dev(dev); 499 struct pci_dev *pdev = to_pci_dev(dev);
498 int dma_64 = 0; 500 int dma_64 = 0;
@@ -551,7 +553,7 @@ static inline void i2o_dma_free(struct device *dev, struct i2o_dma *addr)
551 * Returns the 0 on success or negative error code on failure. 553 * Returns the 0 on success or negative error code on failure.
552 */ 554 */
553static inline int i2o_dma_realloc(struct device *dev, struct i2o_dma *addr, 555static inline int i2o_dma_realloc(struct device *dev, struct i2o_dma *addr,
554 size_t len, unsigned int gfp_mask) 556 size_t len, gfp_t gfp_mask)
555{ 557{
556 i2o_dma_free(dev, addr); 558 i2o_dma_free(dev, addr);
557 559