[Pkg-wmaker-commits] [wmbattery] 28/241: added

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:37:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbattery.

commit 9d68591acd7ce73750b3d50deebd570fd524f430
Author: joey <joey at a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Date:   Fri Apr 5 00:44:11 2002 +0000

    added
---
 sonypi.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/sonypi.h b/sonypi.h
new file mode 100644
index 0000000..59a66e8
--- /dev/null
+++ b/sonypi.h
@@ -0,0 +1,16 @@
+/* There's no good place to get these constants, so I must define them
+ * myself. */
+
+#include <linux/types.h>
+
+/* get battery full capacity/remaining capacity */
+#define SONYPI_IOCGBAT1CAP	_IOR('v', 2, __u16)
+#define SONYPI_IOCGBAT1REM	_IOR('v', 3, __u16)
+#define SONYPI_IOCGBAT2CAP	_IOR('v', 4, __u16)
+#define SONYPI_IOCGBAT2REM	_IOR('v', 5, __u16)
+
+/* get battery flags: battery1/battery2/ac adapter present */
+#define SONYPI_BFLAGS_B1	0x01
+#define SONYPI_BFLAGS_B2	0x02
+#define SONYPI_BFLAGS_AC	0x04
+#define SONYPI_IOCGBATFLAGS	_IOR('v', 7, __u8)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbattery.git



More information about the Pkg-wmaker-commits mailing list