Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3077
b: refs/heads/master
c: f33213e
h: refs/heads/master
i:
  3075: 6bbb586
v: v3
  • Loading branch information
Markus Lidel authored and Linus Torvalds committed Jun 24, 2005
1 parent 48493b1 commit 157219f
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 111 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e87545f06930c1d294423a8091d1077e7444a47
refs/heads/master: f33213ecf49c98da4e85121b592c3bea8057c2e6
10 changes: 5 additions & 5 deletions trunk/drivers/message/i2o/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ config I2O_EXT_ADAPTEC_DMA64

config I2O_CONFIG
tristate "I2O Configuration support"
depends on PCI && I2O
help
depends on I2O
---help---
Say Y for support of the configuration interface for the I2O adapters.
If you have a RAID controller from Adaptec and you want to use the
raidutils to manage your RAID array, you have to say Y here.
Expand Down Expand Up @@ -74,7 +74,7 @@ config I2O_BUS
config I2O_BLOCK
tristate "I2O Block OSM"
depends on I2O
help
---help---
Include support for the I2O Block OSM. The Block OSM presents disk
and other structured block devices to the operating system. If you
are using an RAID controller, you could access the array only by
Expand All @@ -87,7 +87,7 @@ config I2O_BLOCK
config I2O_SCSI
tristate "I2O SCSI OSM"
depends on I2O && SCSI
help
---help---
Allows direct SCSI access to SCSI devices on a SCSI or FibreChannel
I2O controller. You can use both the SCSI and Block OSM together if
you wish. To access a RAID array, you must use the Block OSM driver.
Expand All @@ -99,7 +99,7 @@ config I2O_SCSI
config I2O_PROC
tristate "I2O /proc support"
depends on I2O
help
---help---
If you say Y here and to "/proc file system support", you will be
able to read I2O related information from the virtual directory
/proc/i2o.
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/message/i2o/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ static struct class_interface i2o_device_class_interface = {
* Note that the minimum sized reslist is 8 bytes and contains
* ResultCount, ErrorInfoSize, BlockStatus and BlockSize.
*/

static int i2o_parm_issue(struct i2o_device *i2o_dev, int cmd, void *oplist,
int oplen, void *reslist, int reslen)
{
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/message/i2o/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ int i2o_driver_register(struct i2o_driver *drv)

i2o_driver_notify_controller_add(drv, c);
list_for_each_entry(i2o_dev, &c->devices, list)
i2o_driver_notify_device_add(drv, i2o_dev);
i2o_driver_notify_device_add(drv, i2o_dev);
}


rc = driver_register(&drv->driver);
if (rc)
destroy_workqueue(drv->event_queue);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/message/i2o/exec-osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int i2o_msg_post_wait_mem(struct i2o_controller *c, u32 m, unsigned long
list_add(&wait->list, &i2o_exec_wait_list);

wait_event_interruptible_timeout(wq, wait->complete,
timeout * HZ);
timeout * HZ);

wait->wq = NULL;
}
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/message/i2o/i2o_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,6 @@ static void i2o_block_request_fn(struct request_queue *q)
INIT_WORK(&dreq->work, i2o_block_delayed_request_fn,
dreq);

osm_info("transfer error\n");
if (!queue_delayed_work(i2o_block_driver.event_queue,
&dreq->work,
I2O_BLOCK_RETRY_TIME))
Expand Down Expand Up @@ -1042,8 +1041,8 @@ static struct i2o_block_device *i2o_block_device_alloc(void)
static int i2o_block_probe(struct device *dev)
{
struct i2o_device *i2o_dev = to_i2o_device(dev);
struct i2o_block_device *i2o_blk_dev;
struct i2o_controller *c = i2o_dev->iop;
struct i2o_block_device *i2o_blk_dev;
struct gendisk *gd;
struct request_queue *queue;
static int unit = 0;
Expand Down
28 changes: 13 additions & 15 deletions trunk/drivers/message/i2o/i2o_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,40 +64,38 @@

/* I2O Block OSM mempool struct */
struct i2o_block_mempool {
kmem_cache_t *slab;
mempool_t *pool;
kmem_cache_t *slab;
mempool_t *pool;
};

/* I2O Block device descriptor */
struct i2o_block_device {
struct i2o_device *i2o_dev; /* pointer to I2O device */
struct gendisk *gd;
spinlock_t lock; /* queue lock */
spinlock_t lock; /* queue lock */
struct list_head open_queue; /* list of transfered, but unfinished
requests */
unsigned int open_queue_depth; /* number of requests in the queue */

int rcache; /* read cache flags */
int wcache; /* write cache flags */
int rcache; /* read cache flags */
int wcache; /* write cache flags */
int flags;
u16 power; /* power state */
int media_change_flag; /* media changed flag */
u16 power; /* power state */
int media_change_flag; /* media changed flag */
};

/* I2O Block device request */
struct i2o_block_request
{
struct i2o_block_request {
struct list_head queue;
struct request *req; /* corresponding request */
struct request *req; /* corresponding request */
struct i2o_block_device *i2o_blk_dev; /* I2O block device */
struct device *dev; /* device used for DMA */
int sg_nents; /* number of SG elements */
struct scatterlist sg_table[I2O_MAX_PHYS_SEGMENTS]; /* SG table */
struct device *dev; /* device used for DMA */
int sg_nents; /* number of SG elements */
struct scatterlist sg_table[I2O_MAX_PHYS_SEGMENTS]; /* SG table */
};

/* I2O Block device delayed request */
struct i2o_block_delayed_request
{
struct i2o_block_delayed_request {
struct work_struct work;
struct request_queue *queue;
};
Expand Down
20 changes: 12 additions & 8 deletions trunk/drivers/message/i2o/i2o_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ static int i2o_cfg_swul(unsigned long arg)

i2o_dma_free(&c->pdev->dev, &buffer);

return_ret:
return_ret:
return ret;
return_fault:
return_fault:
ret = -EFAULT;
goto return_ret;
};
Expand Down Expand Up @@ -519,7 +519,8 @@ static int i2o_cfg_evt_get(unsigned long arg, struct file *fp)

#ifdef CONFIG_I2O_EXT_ADAPTEC
#ifdef CONFIG_COMPAT
static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long arg)
static int i2o_cfg_passthru32(struct file *file, unsigned cmnd,
unsigned long arg)
{
struct i2o_cmd_passthru32 __user *cmd;
struct i2o_controller *c;
Expand Down Expand Up @@ -646,8 +647,9 @@ static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long ar
flag_count & 0x04000000 /*I2O_SGL_FLAGS_DIR */ ) {
// TODO 64bit fix
if (copy_from_user
(p->virt, (void __user *)(unsigned long)sg[i].addr_bus,
sg_size)) {
(p->virt,
(void __user *)(unsigned long)sg[i].
addr_bus, sg_size)) {
printk(KERN_DEBUG
"%s: Could not copy SG buf %d FROM user\n",
c->name, i);
Expand Down Expand Up @@ -738,11 +740,12 @@ static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long ar
return rcode;
}

static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg)
static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd,
unsigned long arg)
{
int ret;
lock_kernel();
switch (cmd) {
lock_kernel();
switch (cmd) {
case I2OGETIOPS:
ret = i2o_cfg_ioctl(NULL, file, cmd, arg);
break;
Expand Down Expand Up @@ -1136,6 +1139,7 @@ static int __init i2o_config_old_init(void)
osm_err("can't register device.\n");
return -EBUSY;
}

return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/message/i2o/i2o_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

#define OSM_NAME "proc-osm"
#define OSM_VERSION "$Rev$"
#define OSM_VERSION "1.145"
#define OSM_DESCRIPTION "I2O ProcFS OSM"

#define I2O_MAX_MODULES 4
Expand Down
Loading

0 comments on commit 157219f

Please sign in to comment.