Commit 2e1973a3 authored by Markus Lidel's avatar Markus Lidel Committed by Linus Torvalds

[PATCH] I2O: Beautifying

Fix some typos and minor code beautifying.
Signed-off-by: default avatarMarkus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dcceafe2
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <linux/i2o.h> #include <linux/i2o.h>
#define OSM_NAME "bus-osm" #define OSM_NAME "bus-osm"
#define OSM_VERSION "$Rev$" #define OSM_VERSION "1.317"
#define OSM_DESCRIPTION "I2O Bus Adapter OSM" #define OSM_DESCRIPTION "I2O Bus Adapter OSM"
static struct i2o_driver i2o_bus_driver; static struct i2o_driver i2o_bus_driver;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#define OSM_NAME "config-osm" #define OSM_NAME "config-osm"
#define OSM_VERSION "1.248" #define OSM_VERSION "1.317"
#define OSM_DESCRIPTION "I2O Configuration OSM" #define OSM_DESCRIPTION "I2O Configuration OSM"
/* access mode user rw */ /* access mode user rw */
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
*/ */
/* Exec-OSM */ /* Exec-OSM */
extern struct bus_type i2o_bus_type;
extern struct i2o_driver i2o_exec_driver; extern struct i2o_driver i2o_exec_driver;
extern int i2o_exec_lct_get(struct i2o_controller *); extern int i2o_exec_lct_get(struct i2o_controller *);
...@@ -23,6 +21,8 @@ extern int __init i2o_exec_init(void); ...@@ -23,6 +21,8 @@ extern int __init i2o_exec_init(void);
extern void __exit i2o_exec_exit(void); extern void __exit i2o_exec_exit(void);
/* driver */ /* driver */
extern struct bus_type i2o_bus_type;
extern int i2o_driver_dispatch(struct i2o_controller *, u32); extern int i2o_driver_dispatch(struct i2o_controller *, u32);
extern int __init i2o_driver_init(void); extern int __init i2o_driver_init(void);
...@@ -45,9 +45,6 @@ extern void i2o_iop_free(struct i2o_controller *); ...@@ -45,9 +45,6 @@ extern void i2o_iop_free(struct i2o_controller *);
extern int i2o_iop_add(struct i2o_controller *); extern int i2o_iop_add(struct i2o_controller *);
extern void i2o_iop_remove(struct i2o_controller *); extern void i2o_iop_remove(struct i2o_controller *);
/* config */
extern int i2o_parm_issue(struct i2o_device *, int, void *, int, void *, int);
/* control registers relative to c->base */ /* control registers relative to c->base */
#define I2O_IRQ_STATUS 0x30 #define I2O_IRQ_STATUS 0x30
#define I2O_IRQ_MASK 0x34 #define I2O_IRQ_MASK 0x34
......
...@@ -176,6 +176,7 @@ static ssize_t i2o_device_show_tid(struct device *dev, ...@@ -176,6 +176,7 @@ static ssize_t i2o_device_show_tid(struct device *dev,
return strlen(buf) + 1; return strlen(buf) + 1;
} }
/* I2O device attributes */
struct device_attribute i2o_device_attrs[] = { struct device_attribute i2o_device_attrs[] = {
__ATTR(class_id, S_IRUGO, i2o_device_show_class_id, NULL), __ATTR(class_id, S_IRUGO, i2o_device_show_class_id, NULL),
__ATTR(tid, S_IRUGO, i2o_device_show_tid, NULL), __ATTR(tid, S_IRUGO, i2o_device_show_tid, NULL),
...@@ -505,12 +506,12 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field, ...@@ -505,12 +506,12 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field,
* else return specific fields * else return specific fields
* ibuf contains fieldindexes * ibuf contains fieldindexes
* *
* if oper == I2O_PARAMS_LIST_GET, get from specific rows * if oper == I2O_PARAMS_LIST_GET, get from specific rows
* if fieldcount == -1 return all fields * if fieldcount == -1 return all fields
* ibuf contains rowcount, keyvalues * ibuf contains rowcount, keyvalues
* else return specific fields * else return specific fields
* fieldcount is # of fieldindexes * fieldcount is # of fieldindexes
* ibuf contains fieldindexes, rowcount, keyvalues * ibuf contains fieldindexes, rowcount, keyvalues
* *
* You could also use directly function i2o_issue_params(). * You could also use directly function i2o_issue_params().
*/ */
......
...@@ -64,7 +64,7 @@ static int i2o_bus_match(struct device *dev, struct device_driver *drv) ...@@ -64,7 +64,7 @@ static int i2o_bus_match(struct device *dev, struct device_driver *drv)
struct bus_type i2o_bus_type = { struct bus_type i2o_bus_type = {
.name = "i2o", .name = "i2o",
.match = i2o_bus_match, .match = i2o_bus_match,
.dev_attrs = i2o_device_attrs, .dev_attrs = i2o_device_attrs
}; };
/** /**
......
...@@ -59,10 +59,12 @@ ...@@ -59,10 +59,12 @@
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <scsi/scsi.h>
#include "i2o_block.h" #include "i2o_block.h"
#define OSM_NAME "block-osm" #define OSM_NAME "block-osm"
#define OSM_VERSION "1.287" #define OSM_VERSION "1.316"
#define OSM_DESCRIPTION "I2O Block Device OSM" #define OSM_DESCRIPTION "I2O Block Device OSM"
static struct i2o_driver i2o_block_driver; static struct i2o_driver i2o_block_driver;
...@@ -845,10 +847,10 @@ static int i2o_block_transfer(struct request *req) ...@@ -845,10 +847,10 @@ static int i2o_block_transfer(struct request *req)
* RETURN_SENSE_DATA_IN_REPLY_MESSAGE_FRAME * RETURN_SENSE_DATA_IN_REPLY_MESSAGE_FRAME
*/ */
if (rq_data_dir(req) == READ) { if (rq_data_dir(req) == READ) {
cmd[0] = 0x28; cmd[0] = READ_10;
scsi_flags = 0x60a0000a; scsi_flags = 0x60a0000a;
} else { } else {
cmd[0] = 0x2A; cmd[0] = WRITE_10;
scsi_flags = 0xa0a0000a; scsi_flags = 0xa0a0000a;
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*/ */
#define OSM_NAME "proc-osm" #define OSM_NAME "proc-osm"
#define OSM_VERSION "1.145" #define OSM_VERSION "1.316"
#define OSM_DESCRIPTION "I2O ProcFS OSM" #define OSM_DESCRIPTION "I2O ProcFS OSM"
#define I2O_MAX_MODULES 4 #define I2O_MAX_MODULES 4
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
#include <scsi/sg_request.h> #include <scsi/sg_request.h>
#define OSM_NAME "scsi-osm" #define OSM_NAME "scsi-osm"
#define OSM_VERSION "1.282" #define OSM_VERSION "1.316"
#define OSM_DESCRIPTION "I2O SCSI Peripheral OSM" #define OSM_DESCRIPTION "I2O SCSI Peripheral OSM"
static struct i2o_driver i2o_scsi_driver; static struct i2o_driver i2o_scsi_driver;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "core.h" #include "core.h"
#define OSM_NAME "i2o" #define OSM_NAME "i2o"
#define OSM_VERSION "1.288" #define OSM_VERSION "1.316"
#define OSM_DESCRIPTION "I2O subsystem" #define OSM_DESCRIPTION "I2O subsystem"
/* global I2O controller list */ /* global I2O controller list */
...@@ -730,10 +730,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c) ...@@ -730,10 +730,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
* Provide three SGL-elements: * Provide three SGL-elements:
* System table (SysTab), Private memory space declaration and * System table (SysTab), Private memory space declaration and
* Private i/o space declaration * Private i/o space declaration
*
* FIXME: is this still true?
* Nasty one here. We can't use dma_alloc_coherent to send the
* same table to everyone. We have to go remap it for them all
*/ */
msg->body[0] = cpu_to_le32(c->unit + 2); msg->body[0] = cpu_to_le32(c->unit + 2);
...@@ -756,8 +752,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c) ...@@ -756,8 +752,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
else else
osm_debug("%s: SysTab set.\n", c->name); osm_debug("%s: SysTab set.\n", c->name);
i2o_status_get(c); // Entered READY state
return rc; return rc;
} }
...@@ -767,7 +761,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c) ...@@ -767,7 +761,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
* *
* Send the system table and enable the I2O controller. * Send the system table and enable the I2O controller.
* *
* Returns 0 on success or negativer error code on failure. * Returns 0 on success or negative error code on failure.
*/ */
static int i2o_iop_online(struct i2o_controller *c) static int i2o_iop_online(struct i2o_controller *c)
{ {
...@@ -977,7 +971,7 @@ int i2o_status_get(struct i2o_controller *c) ...@@ -977,7 +971,7 @@ int i2o_status_get(struct i2o_controller *c)
* The HRT contains information about possible hidden devices but is * The HRT contains information about possible hidden devices but is
* mostly useless to us. * mostly useless to us.
* *
* Returns 0 on success or negativer error code on failure. * Returns 0 on success or negative error code on failure.
*/ */
static int i2o_hrt_get(struct i2o_controller *c) static int i2o_hrt_get(struct i2o_controller *c)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment