aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca
diff options
context:
space:
mode:
authorJoachim Fenkes <fenkes@de.ibm.com>2008-04-23 14:55:45 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-23 14:55:45 -0400
commit0455e36d81db76f5f4acb68a820da43adfa7ccec (patch)
tree90681c9064b6ababcd7ce3fdd59826d5363098fa /drivers/infiniband/hw/ehca
parenta7607c9b1112b498c3044c9e5bc68fdb4985f93e (diff)
IB/ehca: Make some module parameters bool, update descriptions
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_main.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
index ab02ac836f94..45fe35a6e9f9 100644
--- a/drivers/infiniband/hw/ehca/ehca_main.c
+++ b/drivers/infiniband/hw/ehca/ehca_main.c
@@ -69,41 +69,40 @@ int ehca_static_rate = -1;
69int ehca_scaling_code = 0; 69int ehca_scaling_code = 0;
70int ehca_lock_hcalls = -1; 70int ehca_lock_hcalls = -1;
71 71
72module_param_named(open_aqp1, ehca_open_aqp1, int, S_IRUGO); 72module_param_named(open_aqp1, ehca_open_aqp1, bool, S_IRUGO);
73module_param_named(debug_level, ehca_debug_level, int, S_IRUGO); 73module_param_named(debug_level, ehca_debug_level, int, S_IRUGO);
74module_param_named(hw_level, ehca_hw_level, int, S_IRUGO); 74module_param_named(hw_level, ehca_hw_level, int, S_IRUGO);
75module_param_named(nr_ports, ehca_nr_ports, int, S_IRUGO); 75module_param_named(nr_ports, ehca_nr_ports, int, S_IRUGO);
76module_param_named(use_hp_mr, ehca_use_hp_mr, int, S_IRUGO); 76module_param_named(use_hp_mr, ehca_use_hp_mr, bool, S_IRUGO);
77module_param_named(port_act_time, ehca_port_act_time, int, S_IRUGO); 77module_param_named(port_act_time, ehca_port_act_time, int, S_IRUGO);
78module_param_named(poll_all_eqs, ehca_poll_all_eqs, int, S_IRUGO); 78module_param_named(poll_all_eqs, ehca_poll_all_eqs, bool, S_IRUGO);
79module_param_named(static_rate, ehca_static_rate, int, S_IRUGO); 79module_param_named(static_rate, ehca_static_rate, int, S_IRUGO);
80module_param_named(scaling_code, ehca_scaling_code, int, S_IRUGO); 80module_param_named(scaling_code, ehca_scaling_code, bool, S_IRUGO);
81module_param_named(lock_hcalls, ehca_lock_hcalls, bool, S_IRUGO); 81module_param_named(lock_hcalls, ehca_lock_hcalls, bool, S_IRUGO);
82 82
83MODULE_PARM_DESC(open_aqp1, 83MODULE_PARM_DESC(open_aqp1,
84 "AQP1 on startup (0: no (default), 1: yes)"); 84 "Open AQP1 on startup (default: no)");
85MODULE_PARM_DESC(debug_level, 85MODULE_PARM_DESC(debug_level,
86 "Amount of debug output (0: none (default), 1: traces, " 86 "Amount of debug output (0: none (default), 1: traces, "
87 "2: some dumps, 3: lots)"); 87 "2: some dumps, 3: lots)");
88MODULE_PARM_DESC(hw_level, 88MODULE_PARM_DESC(hw_level,
89 "hardware level" 89 "Hardware level (0: autosensing (default), "
90 " (0: autosensing (default), 1: v. 0.20, 2: v. 0.21)"); 90 "0x10..0x14: eHCA, 0x20..0x23: eHCA2)");
91MODULE_PARM_DESC(nr_ports, 91MODULE_PARM_DESC(nr_ports,
92 "number of connected ports (-1: autodetect, 1: port one only, " 92 "number of connected ports (-1: autodetect, 1: port one only, "
93 "2: two ports (default)"); 93 "2: two ports (default)");
94MODULE_PARM_DESC(use_hp_mr, 94MODULE_PARM_DESC(use_hp_mr,
95 "high performance MRs (0: no (default), 1: yes)"); 95 "Use high performance MRs (default: no)");
96MODULE_PARM_DESC(port_act_time, 96MODULE_PARM_DESC(port_act_time,
97 "time to wait for port activation (default: 30 sec)"); 97 "Time to wait for port activation (default: 30 sec)");
98MODULE_PARM_DESC(poll_all_eqs, 98MODULE_PARM_DESC(poll_all_eqs,
99 "polls all event queues periodically" 99 "Poll all event queues periodically (default: yes)");
100 " (0: no, 1: yes (default))");
101MODULE_PARM_DESC(static_rate, 100MODULE_PARM_DESC(static_rate,
102 "set permanent static rate (default: disabled)"); 101 "Set permanent static rate (default: no static rate)");
103MODULE_PARM_DESC(scaling_code, 102MODULE_PARM_DESC(scaling_code,
104 "set scaling code (0: disabled/default, 1: enabled)"); 103 "Enable scaling code (default: no)");
105MODULE_PARM_DESC(lock_hcalls, 104MODULE_PARM_DESC(lock_hcalls,
106 "serialize all hCalls made by the driver " 105 "Serialize all hCalls made by the driver "
107 "(default: autodetect)"); 106 "(default: autodetect)");
108 107
109DEFINE_RWLOCK(ehca_qp_idr_lock); 108DEFINE_RWLOCK(ehca_qp_idr_lock);