FreeBSD Bugzilla – Attachment 10813 Details for
Bug 21556
Fix to let upsd know about 115VAC SmartUPS systems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.25 KB, created by
Stephen Beitzel
on 2000-09-26 07:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Stephen Beitzel
Created:
2000-09-26 07:30:00 UTC
Size:
2.25 KB
patch
obsolete
>--- /usr/ports/sysutils/upsd/work/upsd-2.0/apc_static.c Mon Sep 25 11:41:50 2000 >+++ apc_static.c Mon Sep 25 12:17:36 2000 >@@ -74,6 +74,59 @@ > {0, NULL, 0, 0, 0, 0, 0, NULL, 0} > }; > >+/* Legal values for SmartUPS(R) 115V units. Added by Stephen Beitzel <sbeitzel@pobox.com> >+** and taken from the documentation for the APC SmartUPS 700. */ >+static struct ups_val apc_SmartUPS_115_values[] = { >+ {SMART_HTPOINT, {number: 129}}, >+ {SMART_HTPOINT, {number: 132}}, >+ {SMART_HTPOINT, {number: 135}}, >+ {SMART_HTPOINT, {number: 138}}, >+ >+ {SMART_LTPOINT, {number: 97}}, >+ {SMART_LTPOINT, {number: 100}}, >+ {SMART_LTPOINT, {number: 103}}, >+ {SMART_LTPOINT, {number: 106}}, >+ >+ {SMART_LOWBATDUR, {number: 2}}, >+ {SMART_LOWBATDUR, {number: 5}}, >+ {SMART_LOWBATDUR, {number: 7}}, >+ {SMART_LOWBATDUR, {number: 10}}, >+ >+ /* several models accept different values here */ >+ {SMART_WAKEUPBCAP, {number: 0}}, >+ {SMART_WAKEUPBCAP, {number: 15}}, >+ {SMART_WAKEUPBCAP, {number: 50}}, >+ {SMART_WAKEUPBCAP, {number: 90}}, >+ >+ {SMART_WAKEUPDELAY, {number: 0}}, >+ {SMART_WAKEUPDELAY, {number: 60}}, >+ {SMART_WAKEUPDELAY, {number: 180}}, >+ {SMART_WAKEUPDELAY, {number: 300}}, >+ >+ {SMART_NVOLTAGE, {number: 115}}, >+ {SMART_NVOLTAGE, {number: 120}}, >+ {SMART_NVOLTAGE, {number: 110}}, >+ >+ {SMART_SHUTDELAY, {number: 20}}, >+ {SMART_SHUTDELAY, {number: 180}}, >+ {SMART_SHUTDELAY, {number: 300}}, >+ >+ {SMART_LINESENS, {binary: "L"}}, >+ {SMART_LINESENS, {binary: "M"}}, >+ {SMART_LINESENS, {binary: "H"}}, >+ >+ {SMART_LINEALARM, {binary: "0"}}, >+ {SMART_LINEALARM, {binary: "L"}}, >+ {SMART_LINEALARM, {binary: "T"}}, >+ {SMART_LINEALARM, {binary: "N"}}, >+ >+ {SMART_LABEL, {binary: NULL}}, >+ >+ {SMART_BREPL, {binary: NULL}}, >+ >+ {0, {binary: NULL}} >+}; >+ > /* Legal values for SmartUPS(R) 230V units. */ > static struct ups_val apc_SmartUPS_230_values[] = { > {SMART_HTPOINT, {number: 253}}, >@@ -141,6 +194,18 @@ > {SMART_TBLOW, "batteries-low", SMART_TBRST, "%", 1}, > {SMART_TBRST, "batteries-restore", SMART_TBLOW, "+", 1}, > {0, NULL, 0, NULL, 0} >+}; >+ >+struct ups_model apc_SmartUPS_115 = { >+ "apc-smart", >+ "smart-ups", >+ 115, >+ sizeof(apc_SmartUPS_registers)/sizeof(struct ups_reg), >+ apc_SmartUPS_registers, >+ apc_SmartUPS_triggers, >+ apc_SmartUPS_115_values, >+ apc_poll, >+ apc_tune > }; > > struct ups_model apc_SmartUPS_230 = {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21556
:
10812
| 10813 |
10814