Commit 1e0fa7a2 authored by Markus Lidel's avatar Markus Lidel Committed by Linus Torvalds

[PATCH] i2o: remove unused code and make needlessly global code static

- remove unused code
- make needlessly global code static
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
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 1163d2c3
...@@ -4,40 +4,14 @@ ...@@ -4,40 +4,14 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2o.h> #include <linux/i2o.h>
static int verbose;
extern struct i2o_driver **i2o_drivers; extern struct i2o_driver **i2o_drivers;
extern unsigned int i2o_max_drivers; extern unsigned int i2o_max_drivers;
static void i2o_report_util_cmd(u8 cmd); static void i2o_report_util_cmd(u8 cmd);
static void i2o_report_exec_cmd(u8 cmd); static void i2o_report_exec_cmd(u8 cmd);
void i2o_report_fail_status(u8 req_status, u32 * msg); static void i2o_report_fail_status(u8 req_status, u32 * msg);
void i2o_report_common_status(u8 req_status); static void i2o_report_common_status(u8 req_status);
static void i2o_report_common_dsc(u16 detailed_status); static void i2o_report_common_dsc(u16 detailed_status);
void i2o_dump_status_block(i2o_status_block * sb)
{
pr_debug("Organization ID: %d\n", sb->org_id);
pr_debug("IOP ID: %d\n", sb->iop_id);
pr_debug("Host Unit ID: %d\n", sb->host_unit_id);
pr_debug("Segment Number: %d\n", sb->segment_number);
pr_debug("I2O Version: %d\n", sb->i2o_version);
pr_debug("IOP State: %d\n", sb->iop_state);
pr_debug("Messanger Type: %d\n", sb->msg_type);
pr_debug("Inbound Frame Size: %d\n", sb->inbound_frame_size);
pr_debug("Init Code: %d\n", sb->init_code);
pr_debug("Max Inbound MFrames: %d\n", sb->max_inbound_frames);
pr_debug("Current Inbound MFrames: %d\n", sb->cur_inbound_frames);
pr_debug("Max Outbound MFrames: %d\n", sb->max_outbound_frames);
pr_debug("Product ID String: %s\n", sb->product_id);
pr_debug("Expected LCT Size: %d\n", sb->expected_lct_size);
pr_debug("IOP Capabilities: %d\n", sb->iop_capabilities);
pr_debug("Desired Private MemSize: %d\n", sb->desired_mem_size);
pr_debug("Current Private MemSize: %d\n", sb->current_mem_size);
pr_debug("Current Private MemBase: %d\n", sb->current_mem_base);
pr_debug("Desired Private IO Size: %d\n", sb->desired_io_size);
pr_debug("Current Private IO Size: %d\n", sb->current_io_size);
pr_debug("Current Private IO Base: %d\n", sb->current_io_base);
};
/* /*
* Used for error reporting/debugging purposes. * Used for error reporting/debugging purposes.
* Report Cmd name, Request status, Detailed Status. * Report Cmd name, Request status, Detailed Status.
...@@ -91,71 +65,12 @@ void i2o_dump_message(struct i2o_message *m) ...@@ -91,71 +65,12 @@ void i2o_dump_message(struct i2o_message *m)
#endif #endif
} }
/**
* i2o_report_controller_unit - print information about a tid
* @c: controller
* @d: device
*
* Dump an information block associated with a given unit (TID). The
* tables are read and a block of text is output to printk that is
* formatted intended for the user.
*/
void i2o_report_controller_unit(struct i2o_controller *c, struct i2o_device *d)
{
char buf[64];
char str[22];
int ret;
if (verbose == 0)
return;
printk(KERN_INFO "Target ID %03x.\n", d->lct_data.tid);
if ((ret = i2o_parm_field_get(d, 0xF100, 3, buf, 16)) >= 0) {
buf[16] = 0;
printk(KERN_INFO " Vendor: %s\n", buf);
}
if ((ret = i2o_parm_field_get(d, 0xF100, 4, buf, 16)) >= 0) {
buf[16] = 0;
printk(KERN_INFO " Device: %s\n", buf);
}
if (i2o_parm_field_get(d, 0xF100, 5, buf, 16) >= 0) {
buf[16] = 0;
printk(KERN_INFO " Description: %s\n", buf);
}
if ((ret = i2o_parm_field_get(d, 0xF100, 6, buf, 8)) >= 0) {
buf[8] = 0;
printk(KERN_INFO " Rev: %s\n", buf);
}
printk(KERN_INFO " Class: ");
//sprintf(str, "%-21s", i2o_get_class_name(d->lct_data.class_id));
printk(KERN_DEBUG "%s\n", str);
printk(KERN_INFO " Subclass: 0x%04X\n", d->lct_data.sub_class);
printk(KERN_INFO " Flags: ");
if (d->lct_data.device_flags & (1 << 0))
printk(KERN_DEBUG "C"); // ConfigDialog requested
if (d->lct_data.device_flags & (1 << 1))
printk(KERN_DEBUG "U"); // Multi-user capable
if (!(d->lct_data.device_flags & (1 << 4)))
printk(KERN_DEBUG "P"); // Peer service enabled!
if (!(d->lct_data.device_flags & (1 << 5)))
printk(KERN_DEBUG "M"); // Mgmt service enabled!
printk(KERN_DEBUG "\n");
}
/*
module_param(verbose, int, 0644);
MODULE_PARM_DESC(verbose, "Verbose diagnostics");
*/
/* /*
* Used for error reporting/debugging purposes. * Used for error reporting/debugging purposes.
* Following fail status are common to all classes. * Following fail status are common to all classes.
* The preserved message must be handled in the reply handler. * The preserved message must be handled in the reply handler.
*/ */
void i2o_report_fail_status(u8 req_status, u32 * msg) static void i2o_report_fail_status(u8 req_status, u32 * msg)
{ {
static char *FAIL_STATUS[] = { static char *FAIL_STATUS[] = {
"0x80", /* not used */ "0x80", /* not used */
...@@ -213,7 +128,7 @@ void i2o_report_fail_status(u8 req_status, u32 * msg) ...@@ -213,7 +128,7 @@ void i2o_report_fail_status(u8 req_status, u32 * msg)
* Used for error reporting/debugging purposes. * Used for error reporting/debugging purposes.
* Following reply status are common to all classes. * Following reply status are common to all classes.
*/ */
void i2o_report_common_status(u8 req_status) static void i2o_report_common_status(u8 req_status)
{ {
static char *REPLY_STATUS[] = { static char *REPLY_STATUS[] = {
"SUCCESS", "SUCCESS",
...@@ -476,20 +391,6 @@ void i2o_debug_state(struct i2o_controller *c) ...@@ -476,20 +391,6 @@ void i2o_debug_state(struct i2o_controller *c)
} }
}; };
void i2o_systab_debug(struct i2o_sys_tbl *sys_tbl)
{
u32 *table;
int count;
u32 size;
table = (u32 *) sys_tbl;
size = sizeof(struct i2o_sys_tbl) + sys_tbl->num_entries
* sizeof(struct i2o_sys_tbl_entry);
for (count = 0; count < (size >> 2); count++)
printk(KERN_INFO "sys_tbl[%d] = %0#10x\n", count, table[count]);
}
void i2o_dump_hrt(struct i2o_controller *c) void i2o_dump_hrt(struct i2o_controller *c)
{ {
u32 *rows = (u32 *) c->hrt.virt; u32 *rows = (u32 *) c->hrt.virt;
...@@ -577,5 +478,4 @@ void i2o_dump_hrt(struct i2o_controller *c) ...@@ -577,5 +478,4 @@ void i2o_dump_hrt(struct i2o_controller *c)
} }
} }
EXPORT_SYMBOL(i2o_dump_status_block);
EXPORT_SYMBOL(i2o_dump_message); EXPORT_SYMBOL(i2o_dump_message);
...@@ -211,8 +211,8 @@ static struct i2o_device *i2o_device_alloc(void) ...@@ -211,8 +211,8 @@ static struct i2o_device *i2o_device_alloc(void)
* Returns a pointer to the I2O device on success or negative error code * Returns a pointer to the I2O device on success or negative error code
* on failure. * on failure.
*/ */
struct i2o_device *i2o_device_add(struct i2o_controller *c, static struct i2o_device *i2o_device_add(struct i2o_controller *c,
i2o_lct_entry * entry) i2o_lct_entry * entry)
{ {
struct i2o_device *dev; struct i2o_device *dev;
...@@ -546,47 +546,6 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field, ...@@ -546,47 +546,6 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field,
return size; return size;
} }
/*
* Set a scalar group value or a whole group.
*/
int i2o_parm_field_set(struct i2o_device *i2o_dev, int group, int field,
void *buf, int buflen)
{
u16 *opblk;
u8 resblk[8 + buflen]; /* 8 bytes for header */
int size;
opblk = kmalloc(buflen + 64, GFP_KERNEL);
if (opblk == NULL) {
printk(KERN_ERR "i2o: no memory for operation buffer.\n");
return -ENOMEM;
}
opblk[0] = 1; /* operation count */
opblk[1] = 0; /* pad */
opblk[2] = I2O_PARAMS_FIELD_SET;
opblk[3] = group;
if (field == -1) { /* whole group */
opblk[4] = -1;
memcpy(opblk + 5, buf, buflen);
} else { /* single field */
opblk[4] = 1;
opblk[5] = field;
memcpy(opblk + 6, buf, buflen);
}
size = i2o_parm_issue(i2o_dev, I2O_CMD_UTIL_PARAMS_SET, opblk,
12 + buflen, resblk, sizeof(resblk));
kfree(opblk);
if (size > buflen)
return buflen;
return size;
}
/* /*
* if oper == I2O_PARAMS_TABLE_GET, get from all rows * if oper == I2O_PARAMS_TABLE_GET, get from all rows
* if fieldcount == -1 return all fields * if fieldcount == -1 return all fields
...@@ -669,6 +628,5 @@ void i2o_device_exit(void) ...@@ -669,6 +628,5 @@ void i2o_device_exit(void)
EXPORT_SYMBOL(i2o_device_claim); EXPORT_SYMBOL(i2o_device_claim);
EXPORT_SYMBOL(i2o_device_claim_release); EXPORT_SYMBOL(i2o_device_claim_release);
EXPORT_SYMBOL(i2o_parm_field_get); EXPORT_SYMBOL(i2o_parm_field_get);
EXPORT_SYMBOL(i2o_parm_field_set);
EXPORT_SYMBOL(i2o_parm_table_get); EXPORT_SYMBOL(i2o_parm_table_get);
EXPORT_SYMBOL(i2o_parm_issue); EXPORT_SYMBOL(i2o_parm_issue);
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
struct i2o_driver i2o_exec_driver; struct i2o_driver i2o_exec_driver;
static int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind);
/* Module internal functions from other sources */ /* Module internal functions from other sources */
extern int i2o_device_parse_lct(struct i2o_controller *); extern int i2o_device_parse_lct(struct i2o_controller *);
...@@ -436,7 +438,7 @@ int i2o_exec_lct_get(struct i2o_controller *c) ...@@ -436,7 +438,7 @@ int i2o_exec_lct_get(struct i2o_controller *c)
* replies immediately after the request. If change_ind > 0 the reply is * replies immediately after the request. If change_ind > 0 the reply is
* send after change indicator of the LCT is > change_ind. * send after change indicator of the LCT is > change_ind.
*/ */
int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind) static int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind)
{ {
i2o_status_block *sb = c->status_block.virt; i2o_status_block *sb = c->status_block.virt;
struct device *dev; struct device *dev;
...@@ -503,4 +505,3 @@ void __exit i2o_exec_exit(void) ...@@ -503,4 +505,3 @@ void __exit i2o_exec_exit(void)
EXPORT_SYMBOL(i2o_msg_post_wait_mem); EXPORT_SYMBOL(i2o_msg_post_wait_mem);
EXPORT_SYMBOL(i2o_exec_lct_get); EXPORT_SYMBOL(i2o_exec_lct_get);
EXPORT_SYMBOL(i2o_exec_lct_notify);
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
extern int i2o_parm_issue(struct i2o_device *, int, void *, int, void *, int); extern int i2o_parm_issue(struct i2o_device *, int, void *, int, void *, int);
static spinlock_t i2o_config_lock = SPIN_LOCK_UNLOCKED; static spinlock_t i2o_config_lock = SPIN_LOCK_UNLOCKED;
struct wait_queue *i2o_wait_queue;
#define MODINC(x,y) ((x) = ((x) + 1) % (y)) #define MODINC(x,y) ((x) = ((x) + 1) % (y))
...@@ -79,7 +78,7 @@ static ulong i2o_cfg_info_id = 0; ...@@ -79,7 +78,7 @@ static ulong i2o_cfg_info_id = 0;
* multiplexed by the i2o_core code * multiplexed by the i2o_core code
*/ */
struct i2o_driver i2o_config_driver = { static struct i2o_driver i2o_config_driver = {
.name = "Config-OSM" .name = "Config-OSM"
}; };
......
...@@ -290,7 +290,7 @@ static char *bus_strings[] = { ...@@ -290,7 +290,7 @@ static char *bus_strings[] = {
"CARDBUS" "CARDBUS"
}; };
int i2o_seq_show_hrt(struct seq_file *seq, void *v) static int i2o_seq_show_hrt(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
i2o_hrt *hrt = (i2o_hrt *) c->hrt.virt; i2o_hrt *hrt = (i2o_hrt *) c->hrt.virt;
...@@ -391,7 +391,7 @@ int i2o_seq_show_hrt(struct seq_file *seq, void *v) ...@@ -391,7 +391,7 @@ int i2o_seq_show_hrt(struct seq_file *seq, void *v)
return 0; return 0;
} }
int i2o_seq_show_lct(struct seq_file *seq, void *v) static int i2o_seq_show_lct(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
i2o_lct *lct = (i2o_lct *) c->lct; i2o_lct *lct = (i2o_lct *) c->lct;
...@@ -521,7 +521,7 @@ int i2o_seq_show_lct(struct seq_file *seq, void *v) ...@@ -521,7 +521,7 @@ int i2o_seq_show_lct(struct seq_file *seq, void *v)
return 0; return 0;
} }
int i2o_seq_show_status(struct seq_file *seq, void *v) static int i2o_seq_show_status(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
char prodstr[25]; char prodstr[25];
...@@ -718,7 +718,7 @@ int i2o_seq_show_status(struct seq_file *seq, void *v) ...@@ -718,7 +718,7 @@ int i2o_seq_show_status(struct seq_file *seq, void *v)
return 0; return 0;
} }
int i2o_seq_show_hw(struct seq_file *seq, void *v) static int i2o_seq_show_hw(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
static u32 work32[5]; static u32 work32[5];
...@@ -775,7 +775,7 @@ int i2o_seq_show_hw(struct seq_file *seq, void *v) ...@@ -775,7 +775,7 @@ int i2o_seq_show_hw(struct seq_file *seq, void *v)
} }
/* Executive group 0003h - Executing DDM List (table) */ /* Executive group 0003h - Executing DDM List (table) */
int i2o_seq_show_ddm_table(struct seq_file *seq, void *v) static int i2o_seq_show_ddm_table(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
int token; int token;
...@@ -851,7 +851,7 @@ int i2o_seq_show_ddm_table(struct seq_file *seq, void *v) ...@@ -851,7 +851,7 @@ int i2o_seq_show_ddm_table(struct seq_file *seq, void *v)
} }
/* Executive group 0004h - Driver Store (scalar) */ /* Executive group 0004h - Driver Store (scalar) */
int i2o_seq_show_driver_store(struct seq_file *seq, void *v) static int i2o_seq_show_driver_store(struct seq_file *seq, void *v)
{ {
struct i2o_controller *c = (struct i2o_controller *)seq->private; struct i2o_controller *c = (struct i2o_controller *)seq->private;
u32 work32[8]; u32 work32[8];
...@@ -874,7 +874,7 @@ int i2o_seq_show_driver_store(struct seq_file *seq, void *v) ...@@ -874,7 +874,7 @@ int i2o_seq_show_driver_store(struct seq_file *seq, void *v)
} }
/* Executive group 0005h - Driver Store Table (table) */ /* Executive group 0005h - Driver Store Table (table) */
int i2o_seq_show_drivers_stored(struct seq_file *seq, void *v) static int i2o_seq_show_drivers_stored(struct seq_file *seq, void *v)
{ {
typedef struct _i2o_driver_store { typedef struct _i2o_driver_store {
u16 stored_ddm_index; u16 stored_ddm_index;
...@@ -953,7 +953,7 @@ int i2o_seq_show_drivers_stored(struct seq_file *seq, void *v) ...@@ -953,7 +953,7 @@ int i2o_seq_show_drivers_stored(struct seq_file *seq, void *v)
} }
/* Generic group F000h - Params Descriptor (table) */ /* Generic group F000h - Params Descriptor (table) */
int i2o_seq_show_groups(struct seq_file *seq, void *v) static int i2o_seq_show_groups(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1029,7 +1029,7 @@ int i2o_seq_show_groups(struct seq_file *seq, void *v) ...@@ -1029,7 +1029,7 @@ int i2o_seq_show_groups(struct seq_file *seq, void *v)
} }
/* Generic group F001h - Physical Device Table (table) */ /* Generic group F001h - Physical Device Table (table) */
int i2o_seq_show_phys_device(struct seq_file *seq, void *v) static int i2o_seq_show_phys_device(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1070,7 +1070,7 @@ int i2o_seq_show_phys_device(struct seq_file *seq, void *v) ...@@ -1070,7 +1070,7 @@ int i2o_seq_show_phys_device(struct seq_file *seq, void *v)
} }
/* Generic group F002h - Claimed Table (table) */ /* Generic group F002h - Claimed Table (table) */
int i2o_seq_show_claimed(struct seq_file *seq, void *v) static int i2o_seq_show_claimed(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1110,7 +1110,7 @@ int i2o_seq_show_claimed(struct seq_file *seq, void *v) ...@@ -1110,7 +1110,7 @@ int i2o_seq_show_claimed(struct seq_file *seq, void *v)
} }
/* Generic group F003h - User Table (table) */ /* Generic group F003h - User Table (table) */
int i2o_seq_show_users(struct seq_file *seq, void *v) static int i2o_seq_show_users(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1164,7 +1164,7 @@ int i2o_seq_show_users(struct seq_file *seq, void *v) ...@@ -1164,7 +1164,7 @@ int i2o_seq_show_users(struct seq_file *seq, void *v)
} }
/* Generic group F005h - Private message extensions (table) (optional) */ /* Generic group F005h - Private message extensions (table) (optional) */
int i2o_seq_show_priv_msgs(struct seq_file *seq, void *v) static int i2o_seq_show_priv_msgs(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1213,7 +1213,7 @@ int i2o_seq_show_priv_msgs(struct seq_file *seq, void *v) ...@@ -1213,7 +1213,7 @@ int i2o_seq_show_priv_msgs(struct seq_file *seq, void *v)
} }
/* Generic group F006h - Authorized User Table (table) */ /* Generic group F006h - Authorized User Table (table) */
int i2o_seq_show_authorized_users(struct seq_file *seq, void *v) static int i2o_seq_show_authorized_users(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1254,7 +1254,7 @@ int i2o_seq_show_authorized_users(struct seq_file *seq, void *v) ...@@ -1254,7 +1254,7 @@ int i2o_seq_show_authorized_users(struct seq_file *seq, void *v)
} }
/* Generic group F100h - Device Identity (scalar) */ /* Generic group F100h - Device Identity (scalar) */
int i2o_seq_show_dev_identity(struct seq_file *seq, void *v) static int i2o_seq_show_dev_identity(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
static u32 work32[128]; // allow for "stuff" + up to 256 byte (max) serial number static u32 work32[128]; // allow for "stuff" + up to 256 byte (max) serial number
...@@ -1292,7 +1292,7 @@ int i2o_seq_show_dev_identity(struct seq_file *seq, void *v) ...@@ -1292,7 +1292,7 @@ int i2o_seq_show_dev_identity(struct seq_file *seq, void *v)
return 0; return 0;
} }
int i2o_seq_show_dev_name(struct seq_file *seq, void *v) static int i2o_seq_show_dev_name(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
...@@ -1302,7 +1302,7 @@ int i2o_seq_show_dev_name(struct seq_file *seq, void *v) ...@@ -1302,7 +1302,7 @@ int i2o_seq_show_dev_name(struct seq_file *seq, void *v)
} }
/* Generic group F101h - DDM Identity (scalar) */ /* Generic group F101h - DDM Identity (scalar) */
int i2o_seq_show_ddm_identity(struct seq_file *seq, void *v) static int i2o_seq_show_ddm_identity(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1339,7 +1339,7 @@ int i2o_seq_show_ddm_identity(struct seq_file *seq, void *v) ...@@ -1339,7 +1339,7 @@ int i2o_seq_show_ddm_identity(struct seq_file *seq, void *v)
} }
/* Generic group F102h - User Information (scalar) */ /* Generic group F102h - User Information (scalar) */
int i2o_seq_show_uinfo(struct seq_file *seq, void *v) static int i2o_seq_show_uinfo(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
...@@ -1371,7 +1371,7 @@ int i2o_seq_show_uinfo(struct seq_file *seq, void *v) ...@@ -1371,7 +1371,7 @@ int i2o_seq_show_uinfo(struct seq_file *seq, void *v)
} }
/* Generic group F103h - SGL Operating Limits (scalar) */ /* Generic group F103h - SGL Operating Limits (scalar) */
int i2o_seq_show_sgl_limits(struct seq_file *seq, void *v) static int i2o_seq_show_sgl_limits(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
static u32 work32[12]; static u32 work32[12];
...@@ -1418,7 +1418,7 @@ int i2o_seq_show_sgl_limits(struct seq_file *seq, void *v) ...@@ -1418,7 +1418,7 @@ int i2o_seq_show_sgl_limits(struct seq_file *seq, void *v)
} }
/* Generic group F200h - Sensors (scalar) */ /* Generic group F200h - Sensors (scalar) */
int i2o_seq_show_sensors(struct seq_file *seq, void *v) static int i2o_seq_show_sensors(struct seq_file *seq, void *v)
{ {
struct i2o_device *d = (struct i2o_device *)seq->private; struct i2o_device *d = (struct i2o_device *)seq->private;
int token; int token;
......
...@@ -460,7 +460,7 @@ static int i2o_scsi_reply(struct i2o_controller *c, u32 m, ...@@ -460,7 +460,7 @@ static int i2o_scsi_reply(struct i2o_controller *c, u32 m,
* If a I2O controller is added, we catch the notification to add a * If a I2O controller is added, we catch the notification to add a
* corresponding Scsi_Host. * corresponding Scsi_Host.
*/ */
void i2o_scsi_notify_controller_add(struct i2o_controller *c) static void i2o_scsi_notify_controller_add(struct i2o_controller *c)
{ {
struct i2o_scsi_host *i2o_shost; struct i2o_scsi_host *i2o_shost;
int rc; int rc;
...@@ -492,7 +492,7 @@ void i2o_scsi_notify_controller_add(struct i2o_controller *c) ...@@ -492,7 +492,7 @@ void i2o_scsi_notify_controller_add(struct i2o_controller *c)
* If a I2O controller is removed, we catch the notification to remove the * If a I2O controller is removed, we catch the notification to remove the
* corresponding Scsi_Host. * corresponding Scsi_Host.
*/ */
void i2o_scsi_notify_controller_remove(struct i2o_controller *c) static void i2o_scsi_notify_controller_remove(struct i2o_controller *c)
{ {
struct i2o_scsi_host *i2o_shost; struct i2o_scsi_host *i2o_shost;
i2o_shost = i2o_scsi_get_host(c); i2o_shost = i2o_scsi_get_host(c);
...@@ -717,7 +717,7 @@ static int i2o_scsi_queuecommand(struct scsi_cmnd *SCpnt, ...@@ -717,7 +717,7 @@ static int i2o_scsi_queuecommand(struct scsi_cmnd *SCpnt,
* Returns 0 if the command is successfully aborted or negative error code * Returns 0 if the command is successfully aborted or negative error code
* on failure. * on failure.
*/ */
int i2o_scsi_abort(struct scsi_cmnd *SCpnt) static int i2o_scsi_abort(struct scsi_cmnd *SCpnt)
{ {
struct i2o_device *i2o_dev; struct i2o_device *i2o_dev;
struct i2o_controller *c; struct i2o_controller *c;
......
...@@ -38,6 +38,8 @@ LIST_HEAD(i2o_controllers); ...@@ -38,6 +38,8 @@ LIST_HEAD(i2o_controllers);
*/ */
static struct i2o_dma i2o_systab; static struct i2o_dma i2o_systab;
static int i2o_hrt_get(struct i2o_controller *c);
/* Module internal functions from other sources */ /* Module internal functions from other sources */
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 *);
...@@ -564,7 +566,7 @@ static int i2o_iop_reset(struct i2o_controller *c) ...@@ -564,7 +566,7 @@ static int i2o_iop_reset(struct i2o_controller *c)
* *
* Returns 0 on success or a negative errno code on failure. * Returns 0 on success or a negative errno code on failure.
*/ */
int i2o_iop_init_outbound_queue(struct i2o_controller *c) static int i2o_iop_init_outbound_queue(struct i2o_controller *c)
{ {
u8 *status = c->status.virt; u8 *status = c->status.virt;
u32 m; u32 m;
...@@ -1050,7 +1052,7 @@ int i2o_status_get(struct i2o_controller *c) ...@@ -1050,7 +1052,7 @@ int i2o_status_get(struct i2o_controller *c)
* *
* Returns 0 on success or negativer error code on failure. * Returns 0 on success or negativer error code on failure.
*/ */
int i2o_hrt_get(struct i2o_controller *c) static int i2o_hrt_get(struct i2o_controller *c)
{ {
int rc; int rc;
int i; int i;
...@@ -1310,5 +1312,4 @@ EXPORT_SYMBOL(i2o_find_iop); ...@@ -1310,5 +1312,4 @@ EXPORT_SYMBOL(i2o_find_iop);
EXPORT_SYMBOL(i2o_iop_find_device); EXPORT_SYMBOL(i2o_iop_find_device);
EXPORT_SYMBOL(i2o_event_register); EXPORT_SYMBOL(i2o_event_register);
EXPORT_SYMBOL(i2o_status_get); EXPORT_SYMBOL(i2o_status_get);
EXPORT_SYMBOL(i2o_hrt_get);
EXPORT_SYMBOL(i2o_controllers); EXPORT_SYMBOL(i2o_controllers);
...@@ -263,7 +263,6 @@ static inline void i2o_dma_unmap(struct device *, struct i2o_dma *); ...@@ -263,7 +263,6 @@ static inline void i2o_dma_unmap(struct device *, struct i2o_dma *);
/* IOP functions */ /* IOP functions */
extern int i2o_status_get(struct i2o_controller *); extern int i2o_status_get(struct i2o_controller *);
extern int i2o_hrt_get(struct i2o_controller *);
extern int i2o_event_register(struct i2o_device *, struct i2o_driver *, int, extern int i2o_event_register(struct i2o_device *, struct i2o_driver *, int,
u32); u32);
...@@ -385,7 +384,6 @@ extern int i2o_device_claim_release(struct i2o_device *); ...@@ -385,7 +384,6 @@ extern int i2o_device_claim_release(struct i2o_device *);
/* Exec OSM functions */ /* Exec OSM functions */
extern int i2o_exec_lct_get(struct i2o_controller *); extern int i2o_exec_lct_get(struct i2o_controller *);
extern int i2o_exec_lct_notify(struct i2o_controller *, u32);
/* device to i2o_device and driver to i2o_driver convertion functions */ /* device to i2o_device and driver to i2o_driver convertion functions */
#define to_i2o_driver(drv) container_of(drv,struct i2o_driver, driver) #define to_i2o_driver(drv) container_of(drv,struct i2o_driver, driver)
...@@ -631,7 +629,6 @@ static inline void i2o_dma_unmap(struct device *dev, struct i2o_dma *addr) ...@@ -631,7 +629,6 @@ static inline void i2o_dma_unmap(struct device *dev, struct i2o_dma *addr)
#define i2o_raw_writel(val, mem) __raw_writel(cpu_to_le32(val), mem) #define i2o_raw_writel(val, mem) __raw_writel(cpu_to_le32(val), mem)
extern int i2o_parm_field_get(struct i2o_device *, int, int, void *, int); extern int i2o_parm_field_get(struct i2o_device *, int, int, void *, int);
extern int i2o_parm_field_set(struct i2o_device *, int, int, void *, int);
extern int i2o_parm_table_get(struct i2o_device *, int, int, int, void *, int, extern int i2o_parm_table_get(struct i2o_device *, int, int, int, void *, int,
void *, int); void *, int);
/* FIXME: remove /* FIXME: remove
......
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