You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(16) |
Nov
(16) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Randy D. <rd...@us...> - 2003-06-27 05:28:53
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv18505/ospmd/ospmd/ospmd
Modified Files:
acpi_interface.cpp
Log Message:
fix cut-n-paste error for battery event class;
from Markus Seemann <ms...@su...>;
Index: acpi_interface.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/acpi_interface.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- acpi_interface.cpp 20 Nov 2002 03:18:46 -0000 1.4
+++ acpi_interface.cpp 27 Jun 2003 05:15:05 -0000 1.5
@@ -218,7 +218,7 @@
else if (strcmp(event_class, ACPI_CLASS_BATTERY) == 0 )
{
/* Handle battery events */
- ev.ev_class = EVENT_CLASS_BUTTON;
+ ev.ev_class = EVENT_CLASS_BATTERY;
pm_pol->handle_battery_event(&ev);
}
else if (strcmp(event_class, ACPI_CLASS_AC) == 0 )
|
|
From: <sz...@op...> - 2003-06-14 20:34:47
|
I have ISA sound card, which have been working on irq 5. Kernel ACPI unexpectedly allocated irq 5 for unused and disabled PCI interput link [LINKC].
It couse a lot of problems with stability of my linux box, befor I dicovered what was happend.
In /proc/interputs wasn't information about it.
I thing, It is good idea to turned it off (auto allocating irq for disabled and unused PCI interput link [LINK?] ) optionally via kernel command line.
syslog:
Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 15, disabled)
Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Link [LNKD] (IRQs *3 4 5 6 7 10 11 12 14 15)
Jun 14 19:52:17 zx kernel: PCI: Probing PCI hardware
!!!!! Jun 14 19:52:17 zx kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
|
|
From: Randy D. <rd...@us...> - 2003-06-10 05:55:09
|
Update of /cvsroot/acpi/pmtools/pmtest
In directory sc8-pr-cvs1:/tmp/cvs-serv1205
Modified Files:
Makefile pmtest.c
Log Message:
fix Makefile for 2.4 and 2.5 modules usage;
correct printk args in pmtest.c;
Index: Makefile
===================================================================
RCS file: /cvsroot/acpi/pmtools/pmtest/Makefile,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- Makefile 31 Mar 2003 03:35:17 -0000 1.1.1.1
+++ Makefile 10 Jun 2003 05:55:04 -0000 1.2
@@ -1,12 +1,9 @@
-KERNEL_INCLUDE := /usr/src/linux/include
-
-CC = gcc
+# makefile for pmtest kernel module
+# usage:
+# cd /path/to/kernel/source/ && make SUBDIRS=/path/to/source/pmtest/ all
-CFLAGS := -Wall -fno-strength-reduce -fomit-frame-pointer
-CFLAGS := $(CFLAGS) -D__KERNEL__ -DMODULE -I$(KERNEL_INCLUDE)
-CFLAGS := $(CFLAGS) -Wall -Wno-unused -Wno-multichar
+all: pmtest.o
-all: pmtest.o
+obj-m := pmtest.o
-clean:
- $(RM) *.o
+clean-files := *.o *.ko *.mod.c
Index: pmtest.c
===================================================================
RCS file: /cvsroot/acpi/pmtools/pmtest/pmtest.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- pmtest.c 31 Mar 2003 03:35:17 -0000 1.1.1.1
+++ pmtest.c 10 Jun 2003 05:55:05 -0000 1.2
@@ -47,7 +47,7 @@
pmdev = pm_find(PM_UNKNOWN_DEV, pmdev);
if (!pmdev)
break;
- i += sprintf(i, "%d 0x%lx %d\n",
+ i += sprintf(i, "%d 0x%lx %lu\n",
pmdev->type,
pmdev->id,
pmdev->state);
@@ -146,3 +146,4 @@
module_init(pmtest_init);
module_exit(pmtest_exit);
+MODULE_LICENSE("GPL");
|
|
From: Randy D. <rd...@us...> - 2003-05-01 05:05:31
|
Update of /cvsroot/acpi/acpidump In directory sc8-pr-cvs1:/tmp/cvs-serv23842 Log Message: initial version Status: Vendor Tag: mochel Release Tags: v01 N acpidump/acpidump.c N acpidump/acpidump.h N acpidump/acpi.h N acpidump/aml.c N acpidump/apic.c N acpidump/boot.c N acpidump/COPYING N acpidump/dbgp.c N acpidump/dsdt.c N acpidump/facs.c N acpidump/fadt.c N acpidump/Makefile N acpidump/mem.c N acpidump/opcodes.h N acpidump/rsdp.c N acpidump/rsdt.c N acpidump/util.c N acpidump/xsdt.c No conflicts created by this import ***** Bogus filespec: - Imported sources |
|
From: Randy D. <rd...@us...> - 2003-05-01 04:43:04
|
Update of /cvsroot/acpi/ospmd/ospmd/gui In directory sc8-pr-cvs1:/tmp/cvs-serv17795 Modified Files: Makefile Log Message: change patch to qt lib; but others may need to do this also; Index: Makefile =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/gui/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile 20 Nov 2002 00:50:56 -0000 1.2 +++ Makefile 1 May 2003 04:43:00 -0000 1.3 @@ -1,5 +1,5 @@ # Include variables -QTDIR= /usr/lib/qt-3.0.5 +QTDIR= /usr/lib/qt3 INC_KDE= /usr/include/kde INC_OSPMD= ../inc INCL= -I$(QTDIR)/include -I$(INC_KDE) -I$(INC_OSPMD) |
|
From: Randy D. <rd...@us...> - 2003-03-31 04:14:00
|
Update of /cvsroot/acpi/pmtools/acpidmp In directory sc8-pr-cvs1:/tmp/cvs-serv8270/acpidmp Modified Files: acpidmp.c Log Message: fix some compile warnings; Index: acpidmp.c =================================================================== RCS file: /cvsroot/acpi/pmtools/acpidmp/acpidmp.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- acpidmp.c 31 Mar 2003 03:35:17 -0000 1.1.1.1 +++ acpidmp.c 31 Mar 2003 04:13:56 -0000 1.2 @@ -13,6 +13,7 @@ #include <unistd.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #define ACPI_BIOS_ROM_BASE 0x000e0000 #define ACPI_BIOS_ROM_END 0x00100000 |
|
From: Randy D. <rd...@us...> - 2003-03-31 04:13:16
|
Update of /cvsroot/acpi/pmtools/acpidisasm
In directory sc8-pr-cvs1:/tmp/cvs-serv6905/acpidisasm
Modified Files:
parse.c
Log Message:
fix some compile warnings;
Index: parse.c
===================================================================
RCS file: /cvsroot/acpi/pmtools/acpidisasm/parse.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- parse.c 31 Mar 2003 03:35:13 -0000 1.1.1.1
+++ parse.c 31 Mar 2003 04:13:12 -0000 1.2
@@ -447,7 +447,7 @@
{
#ifdef ACPI_DEBUG
const u8 *decl = state->aml;
-#endif
+#endif /* ACPI_DEBUG */
struct acpi_op *field;
int opcode;
@@ -475,7 +475,7 @@
#ifdef ACPI_DEBUG
field->decl = decl;
-#endif
+#endif /* ACPI_DEBUG */
switch(opcode)
{
@@ -660,7 +660,7 @@
{
#ifdef ACPI_DEBUG
const u8 *decl = state.aml;
-#endif ACPI_DEBUG
+#endif /* ACPI_DEBUG */
int opcode = acpi_peek_opcode(&state);
const struct acpi_aml_op *opc
= acpi_find_opcode(opcode);
@@ -722,7 +722,7 @@
#ifdef ACPI_DEBUG
op->decl = decl;
-#endif
+#endif /* ACPI_DEBUG */
}
arg_count = 0;
@@ -751,7 +751,7 @@
{
#ifdef ACPI_DEBUG
const u8 *decl = state.aml;
-#endif ACPI_DEBUG
+#endif /* ACPI_DEBUG */
struct acpi_op *arg
= acpi_next_arg(&state,
*args,
@@ -761,7 +761,7 @@
{
arg->decl = decl;
}
-#endif
+#endif /* ACPI_DEBUG */
acpi_append_arg(op, arg);
args++;
}
|
|
From: Randy D. <rd...@us...> - 2003-03-31 04:09:51
|
Update of /cvsroot/acpi/pmtools In directory sc8-pr-cvs1:/tmp/cvs-serv6582 Added Files: Changelog Log Message: add Changelog; --- NEW FILE: Changelog --- pmtools Changelog 2003-03-19, Randy Dunlap <rdd...@os...> . add Changelog file . fix compile warnings in acpidisasm/parse.c . fix compile warnings in acpidmp/acpidmp.c ### |
|
From: Randy D. <rd...@us...> - 2003-03-31 04:04:07
|
Update of /cvsroot/acpi/pmtools/acpidmp
In directory sc8-pr-cvs1:/tmp/cvs-serv4360/acpidmp
Modified Files:
acpitbl acpixtract
Log Message:
update to v20010730;
Index: acpitbl
===================================================================
RCS file: /cvsroot/acpi/pmtools/acpidmp/acpitbl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- acpitbl 31 Mar 2003 03:35:17 -0000 1.1.1.1
+++ acpitbl 31 Mar 2003 04:04:04 -0000 1.2
@@ -64,13 +64,15 @@
{
local(*OUT, *desc, *data) = @_;
my(%size_to_tmpl) =
- ("D1"=>"C", "D2"=>"S", "D4"=>"I",
- "X1"=>"C", "X2"=>"S", "X4"=>"I",
- "A4"=>"A4", "A6"=>"A6", "A8"=>"A8");
+ ("D1"=>"C", "D2"=>"S", "D4"=>"I",
+ "X1"=>"C", "X2"=>"S", "X3"=>"a3",
+ "X4"=>"I", "A4"=>"A4", "A6"=>"A6",
+ "A8"=>"A8");
my(%size_to_fmt) =
("D1"=>"%d", "D2"=>"%d", "D4"=>"%d",
- "X1"=>"0x%02x", "X2"=>"0x%04x", "X4"=>"0x%08x",
- "A4"=>"%s", "A6"=>"%s", "A8"=>"%s");
+ "X1"=>"0x%02x", "X2"=>"0x%04x", "X3"=>"0x%06x",
+ "X4"=>"0x%08x", "A4"=>"%s", "A6"=>"%s",
+ "A8"=>"%s");
my($tmpl) = "";
my($max_size) = 0;
Index: acpixtract
===================================================================
RCS file: /cvsroot/acpi/pmtools/acpidmp/acpixtract,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- acpixtract 31 Mar 2003 03:35:17 -0000 1.1.1.1
+++ acpixtract 31 Mar 2003 04:04:04 -0000 1.2
@@ -45,7 +45,10 @@
}
elsif($interior && /\s+[\dA-Fa-f]{4}:\s+/)
{
- print OUT pack('C*', map(hex, (split(/\s/, $'))[0..15]));
+ $_ = $';
+ /\s{2}/;
+ $length = ((length($`) + 1) / 3) - 1;
+ print OUT pack('C*', map(hex, (split(/\s/, $`))[0..$length]));
}
elsif($interior)
{
|
|
From: Randy D. <rd...@us...> - 2003-03-31 03:54:27
|
Update of /cvsroot/acpi/pmtools In directory sc8-pr-cvs1:/tmp/cvs-serv615 Modified Files: Makefile README Log Message: update to v20010730; Index: Makefile =================================================================== RCS file: /cvsroot/acpi/pmtools/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Makefile 31 Mar 2003 03:35:10 -0000 1.1.1.1 +++ Makefile 31 Mar 2003 03:54:24 -0000 1.2 @@ -1,4 +1,4 @@ -DIRS = acpianalyze acpidisasm acpidmp pmtest +DIRS = acpidisasm acpidmp pmtest all: for i in $(DIRS); do $(MAKE) -C $$i $@; done Index: README =================================================================== RCS file: /cvsroot/acpi/pmtools/README,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- README 31 Mar 2003 03:35:10 -0000 1.1.1.1 +++ README 31 Mar 2003 03:54:24 -0000 1.2 @@ -7,14 +7,21 @@ the Linux ACPI implementation and Linux power management support. -acpianalyze ------------ +--------------------------------------------- + N O T E -This utility does a simple analysis of the features -supported by your ACPI implementation. Right now, -this is really just a toy. +These utilities are not being maintained to track +current ACPI driver releases, although they will be +brought up to date at some point in the future. + +Their status is: +acpidmp works +acpidisasm works +pmtest doesn't work +acpianalyze doesn't compile, not included + +--------------------------------------------- -Example: acpidmp DSDT | acpianalyze acpidmp ------- |
|
From: Randy D. <rd...@us...> - 2003-03-31 03:35:24
|
Update of /cvsroot/acpi/pmtools In directory sc8-pr-cvs1:/tmp/cvs-serv26033 Log Message: Initial import. Status: Vendor Tag: ahenroid Release Tags: v20000606 N pmtools/COPYING N pmtools/Makefile N pmtools/README N pmtools/acpidisasm/parse.c N pmtools/acpidisasm/Makefile N pmtools/acpidisasm/ns.c N pmtools/acpidisasm/util.c N pmtools/acpidisasm/disasm.c N pmtools/acpidisasm/amlop.h N pmtools/acpidisasm/acpi.h N pmtools/acpidisasm/amlop.c N pmtools/acpidisasm/amlop.txt N pmtools/acpidisasm/mkaml N pmtools/acpidisasm/resource.c N pmtools/acpidmp/Makefile N pmtools/acpidmp/acpidmp.c N pmtools/acpidmp/acpitbl N pmtools/acpidmp/acpixtract N pmtools/pmtest/Makefile N pmtools/pmtest/pmtest.c N pmtools/pmtest/pmtest N pmtools/acpianalyze/Makefile N pmtools/acpianalyze/util.c N pmtools/acpianalyze/acpiparse.c N pmtools/acpianalyze/acpiparse.h N pmtools/acpianalyze/analyze.c N pmtools/acpianalyze/analyze.h No conflicts created by this import ***** Bogus filespec: - Imported sources |
|
From: Andy G. <ag...@us...> - 2002-11-22 23:38:28
|
Update of /cvsroot/acpi/ospmd/ospmd/libpower
In directory sc8-pr-cvs1:/tmp/cvs-serv11460/ospmd/libpower
Modified Files:
libpower.cpp
Log Message:
update for new define name
Index: libpower.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/libpower/libpower.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- libpower.cpp 20 Nov 2002 03:05:50 -0000 1.5
+++ libpower.cpp 22 Nov 2002 23:38:26 -0000 1.6
@@ -132,7 +132,7 @@
* The use of this array assumes that a given request's code is equivalent to
* its position (not necessarily a good thing)
*/
-wire_msg_types msg_type[] =
+wire_msg_types msg_type[] =
{
{OSPM_ACTION_BAT_ALARM_GET, 0, sizeof(ALARM_CONFIG)},
{OSPM_ACTION_BAT_ALARM_SET, sizeof(ALARM_CONFIG), 0},
@@ -150,7 +150,7 @@
{OSPM_ACTION_CRITBATT_SET, 0, 0/*FIX*/},
{OSPM_ACTION_LOWBATT_SET, 0, 0/*FIX*/},
{OSPM_ACTION_PROC_INFO_GET, 0, sizeof(PROCESSOR_PERF)},
- {OSPM_ACTION_THERMAL_GET_DATA, 0, sizeof(PM_THERMAL_DATA)},
+ {OSPM_ACTION_THERMAL_GET, 0, sizeof(PM_THERMAL_DATA)},
};
static int
@@ -424,13 +424,13 @@
return -1;
}
- res = pm_send (sockfd, OSPM_ACTION_THERMAL_GET_DATA, NULL);
+ res = pm_send (sockfd, OSPM_ACTION_THERMAL_GET, NULL);
if (res < 0)
{
goto end;
}
- res = pm_receive (sockfd, OSPM_ACTION_THERMAL_GET_DATA, thermal_data);
+ res = pm_receive (sockfd, OSPM_ACTION_THERMAL_GET, thermal_data);
if (res < 0)
{
goto end;
|
|
From: Andy G. <ag...@us...> - 2002-11-20 03:18:49
|
Update of /cvsroot/acpi/ospmd/ospmd/inc In directory sc8-pr-cvs1:/tmp/cvs-serv8945/ospmd/inc Modified Files: power.h Log Message: change function names for thermal-related funcs Index: power.h =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/inc/power.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- power.h 20 Nov 2002 01:07:58 -0000 1.5 +++ power.h 20 Nov 2002 03:18:46 -0000 1.6 @@ -410,6 +410,7 @@ int pm_get_processor_info(PROCESSOR_PERF* perf_info); int pm_get_batt_presence(BATTERY_PRESENCE* batt_pres); +/* TODO: change "info" to "data"? */ int pm_get_batt_info(int batt_num, ALL_BAT_DATA* batt_info); int pm_get_ac_presence(ALL_AC_ADAPTERS* ac_info); int pm_set_button_actions(BUTTON_ACTIONS* abc); @@ -417,7 +418,7 @@ int pm_get_power_schemes(PWR_SCHEME_LIST* power_list); int pm_set_power_schemes(PWR_SCHEME_LIST* power_list); -int pm_thermal_get_data (PM_THERMAL_DATA* thermal_data); +int pm_get_thermal_data (PM_THERMAL_DATA* thermal_data); void *pm_event_listen_start(void (*func_ptr)(OSPMD_EVENT* ev)); int pm_event_listen_stop(void* handle); |
|
From: Andy G. <ag...@us...> - 2002-11-20 03:18:49
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv8945/ospmd/ospmd
Modified Files:
acpi_interface.cpp acpi_interface.h apm_interface.cpp
apm_interface.h ospmd.cpp ospmd.h
Log Message:
change function names for thermal-related funcs
Index: acpi_interface.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/acpi_interface.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- acpi_interface.cpp 9 Oct 2002 20:54:15 -0000 1.3
+++ acpi_interface.cpp 20 Nov 2002 03:18:46 -0000 1.4
@@ -1040,7 +1040,7 @@
}
int
-acpi_interface::thermal_get_data (PM_THERMAL_DATA* thermal_data)
+acpi_interface::get_thermal_info (PM_THERMAL_DATA* thermal_data)
{
DIR* dir;
struct dirent *entry;
Index: acpi_interface.h
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/acpi_interface.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- acpi_interface.h 8 Oct 2002 22:05:26 -0000 1.2
+++ acpi_interface.h 20 Nov 2002 03:18:46 -0000 1.3
@@ -180,7 +180,7 @@
virtual int get_processor_perf_info(PROCESSOR_PERF_INFO* proc_perf_info);
virtual int set_processor_state(PROCESSOR_PERF* state);
virtual int sleep(sleep_types type);
- virtual int thermal_get_data (PM_THERMAL_DATA* thermal_data);
+ virtual int get_thermal_info(PM_THERMAL_DATA* thermal_data);
private:
Index: apm_interface.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/apm_interface.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- apm_interface.cpp 8 Oct 2002 22:05:26 -0000 1.2
+++ apm_interface.cpp 20 Nov 2002 03:18:46 -0000 1.3
@@ -360,7 +360,7 @@
}
int
-apm_interface::thermal_get_data (PM_THERMAL_DATA* thermal_data)
+apm_interface::get_thermal_info (PM_THERMAL_DATA* thermal_data)
{
thermal_data->cooling_mode = 0;
thermal_data->polling_frequency = 0;
Index: apm_interface.h
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/apm_interface.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- apm_interface.h 8 Oct 2002 22:05:26 -0000 1.2
+++ apm_interface.h 20 Nov 2002 03:18:46 -0000 1.3
@@ -174,7 +174,7 @@
virtual int get_processor_perf_info(PROCESSOR_PERF_INFO* proc_perf_info);
virtual int set_processor_state(PROCESSOR_PERF* state);
virtual int sleep(sleep_types type);
- virtual int thermal_get_data (PM_THERMAL_DATA *thermal_data);
+ virtual int get_thermal_info(PM_THERMAL_DATA *thermal_data);
private:
Index: ospmd.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/ospmd.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ospmd.cpp 20 Nov 2002 02:44:44 -0000 1.4
+++ ospmd.cpp 20 Nov 2002 03:18:46 -0000 1.5
@@ -818,9 +818,9 @@
ospmd_return_data(fd, res, action, &sdout.data.proc_info,
sizeof(sdout.data.proc_info));
break;
- case OSPM_ACTION_THERMAL_GET_DATA:
+ case OSPM_ACTION_THERMAL_GET:
OSPMD_DBG(OSPM_INFO, "Client wants to get thermal data\n");
- res = pm_iface->thermal_get_data (&sdout.data.thermal_data);
+ res = pm_iface->get_thermal_info (&sdout.data.thermal_data);
ospmd_return_data (fd, res, action, &sdout.data.thermal_data,
sizeof(sdout.data.thermal_data));
break;
Index: ospmd.h
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/ospmd.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ospmd.h 8 Oct 2002 22:05:26 -0000 1.2
+++ ospmd.h 20 Nov 2002 03:18:46 -0000 1.3
@@ -211,7 +211,7 @@
virtual int get_processor_perf_info(PROCESSOR_PERF_INFO* proc_perf_info) = 0;
virtual int set_processor_state(PROCESSOR_PERF* state) = 0;
virtual int sleep(sleep_types type) = 0;
- virtual int thermal_get_data (PM_THERMAL_DATA* thermal_data) = 0;
+ virtual int get_thermal_info (PM_THERMAL_DATA* thermal_data) = 0;
};
/*
|
|
From: Andy G. <ag...@us...> - 2002-11-20 03:18:05
|
Update of /cvsroot/acpi/ospmd/ospmd/inc In directory sc8-pr-cvs1:/tmp/cvs-serv8663/ospmd/inc Modified Files: power_private.h Log Message: unify naming convention Index: power_private.h =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/inc/power_private.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- power_private.h 8 Oct 2002 22:05:26 -0000 1.2 +++ power_private.h 20 Nov 2002 03:18:02 -0000 1.3 @@ -138,8 +138,8 @@ #define OSPM_ACTION_CRITBATT_SET 0x0D #define OSPM_ACTION_LOWBATT_SET 0x0E #define OSPM_ACTION_PROC_INFO_GET 0x0F -#define OSPM_ACTION_THERMAL_GET_DATA 0x10 -#define OSPM_ACTION_MAX OSPM_ACTION_THERMAL_GET_DATA +#define OSPM_ACTION_THERMAL_GET 0x10 +#define OSPM_ACTION_MAX OSPM_ACTION_THERMAL_GET /* Events are handled differently */ #define OSPM_ACTION_EVENT_CONNECT 0x80 |
|
From: Andy G. <ag...@us...> - 2002-11-20 03:05:52
|
Update of /cvsroot/acpi/ospmd/ospmd/libpower
In directory sc8-pr-cvs1:/tmp/cvs-serv5372/ospmd/libpower
Modified Files:
libpower.cpp
Log Message:
tidying up a little
Index: libpower.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/libpower/libpower.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- libpower.cpp 9 Oct 2002 20:53:45 -0000 1.4
+++ libpower.cpp 20 Nov 2002 03:05:50 -0000 1.5
@@ -266,13 +266,12 @@
return -1;
}
- if (hdr.data_len == -1)
+ if (hdr.data_len < 0)
{
PWR_ERROR("Server request failed - nothing returned\n");
return -1;
}
-
- if (hdr.data_len != msg_type[hdr.req_type].datalen_from_server)
+ else if (hdr.data_len != msg_type[hdr.req_type].datalen_from_server)
{
PWR_ERROR("Server returned wrong amount of data - expecting %d got %d\n",
msg_type[hdr.req_type].datalen_from_server, hdr.data_len);
|
|
From: Andy G. <ag...@us...> - 2002-11-20 03:04:43
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv5033/ospmd/ospmd
Modified Files:
policy_button.cpp
Log Message:
properly initialize err value
Index: policy_button.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/policy_button.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- policy_button.cpp 20 Nov 2002 02:44:22 -0000 1.2
+++ policy_button.cpp 20 Nov 2002 03:04:40 -0000 1.3
@@ -146,7 +146,7 @@
int
pm_policy::set_button_actions(BUTTON_ACTIONS* bc_all)
{
- int err;
+ int err = 0;
if( ((bc_all->lid_action >= BUTTON_ACTION_NOTHING)
&& (bc_all->lid_action < BUTTON_ACTION_COUNT))
|
|
From: Andy G. <ag...@us...> - 2002-11-20 02:44:47
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv31504/ospmd/ospmd
Modified Files:
ospmd.cpp
Log Message:
use /var/ospmd.conf for config file
Index: ospmd.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/ospmd.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ospmd.cpp 20 Nov 2002 02:14:03 -0000 1.3
+++ ospmd.cpp 20 Nov 2002 02:44:44 -0000 1.4
@@ -174,7 +174,7 @@
exited = 1;
unlink(OSPMD_SERVER_PATH);
- pm_pol->save_to_file("ospmd.conf");
+ pm_pol->save_to_file("/var/ospmd.conf");
delete(pm_pol);
delete(pm_iface);
@@ -425,7 +425,7 @@
exit(1);
}
- res = init_pm_policy("ospmd.conf");
+ res = init_pm_policy("/var/ospmd.conf");
if (res < 0)
{
exit(1);
@@ -504,7 +504,7 @@
if (!FD_ISSET(fd, &testfds))
continue;
-
+
OSPMD_DBG(OSPM_INFO, "checking fd %d\n", fd);
/* Is this activity on the server fd? */
if (fd == server_sockfd)
@@ -512,7 +512,7 @@
int client_sockfd;
OSPMD_DBG(OSPM_INFO, "received a request on server_sockfd\n");
-
+
/* Upon return client_len will have the correct value */
client_len = sizeof(client_address);
client_sockfd = accept(server_sockfd,
@@ -667,7 +667,7 @@
in_data = alloca(hdr.data_len);
- /*
+ /*
* handle initial request
*/
OSPMD_DBG(OSPM_NOISE, "Reading %d bytes from socket\n", hdr.data_len);
|
|
From: Andy G. <ag...@us...> - 2002-11-20 02:44:25
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv31365/ospmd/ospmd
Modified Files:
policy_button.cpp
Log Message:
do not assign to key twice
Index: policy_button.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/policy_button.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- policy_button.cpp 8 Oct 2002 18:16:39 -0000 1.1.1.1
+++ policy_button.cpp 20 Nov 2002 02:44:22 -0000 1.2
@@ -257,7 +257,7 @@
perror("execl");
break;
case BUTTON_ACTION_RUN_PROG:
- key = key = "button." + string(pev->ev_dev_name) + ".runprogram";
+ key = "button." + string(pev->ev_dev_name) + ".runprogram";
OSPMD_ERROR("Want to run...\"%s\"\n", props.get_prop_string(key.c_str()).c_str());
break;
default:
|
|
From: Andy G. <ag...@us...> - 2002-11-20 02:42:18
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd In directory sc8-pr-cvs1:/tmp/cvs-serv30720/ospmd/ospmd Modified Files: properties.h Log Message: make the default property value "(null)" Index: properties.h =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/properties.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- properties.h 8 Oct 2002 18:16:39 -0000 1.1.1.1 +++ properties.h 20 Nov 2002 02:42:15 -0000 1.2 @@ -21,7 +21,7 @@ int to_file(char *filename); // retrieving keyvalues - string get_prop_string(const char *name, char *defaulvalue = NULL); + string get_prop_string(const char *name, char *defaulvalue = "(null)"); const int get_prop_value(const char* name, int defaultvalue = 0); void set_prop_string(string name, string value); void set_prop_value(string name, int value); |
|
From: Andy G. <ag...@us...> - 2002-11-20 02:14:07
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv20736/ospmd/ospmd
Modified Files:
ospmd.cpp
Log Message:
save config to file on daemon exit
change debug print
Index: ospmd.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/ospmd.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ospmd.cpp 8 Oct 2002 22:05:26 -0000 1.2
+++ ospmd.cpp 20 Nov 2002 02:14:03 -0000 1.3
@@ -174,6 +174,7 @@
exited = 1;
unlink(OSPMD_SERVER_PATH);
+ pm_pol->save_to_file("ospmd.conf");
delete(pm_pol);
delete(pm_iface);
@@ -523,8 +524,7 @@
continue;
}
- OSPMD_DBG(OSPM_INFO, "client fd %d addr = %s\n", client_sockfd,
- client_address.sun_path);
+ OSPMD_DBG(OSPM_INFO, "client fd %d\n", client_sockfd);
/* Handle initial client request */
ospmd_handle_client_request(client_sockfd);
|
|
From: Andy G. <ag...@us...> - 2002-11-20 02:13:10
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv20462/ospmd/ospmd
Modified Files:
properties.cpp
Log Message:
eliminate trailing spaces
a missing config file is not an error, just continue
Index: properties.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/properties.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- properties.cpp 8 Oct 2002 18:16:39 -0000 1.1.1.1
+++ properties.cpp 20 Nov 2002 02:13:07 -0000 1.2
@@ -24,7 +24,7 @@
break;
str++;
}
-
+
return str;
}
@@ -45,7 +45,7 @@
}
str[len+1] = '\0';
}
-
+
return str;
}
@@ -56,13 +56,13 @@
char line[MAX_LINE_SIZE];
char* name;
char* value;
-
+
OSPMD_DBG(OSPM_INFO, "Reading from %s\n", filename);
if (!(fp = fopen(filename, "r")))
{
- OSPMD_ERROR("Could not open %s\n", filename);
- return -1;
+ OSPMD_ERROR("Could not open %s, using defaults\n", filename);
+ return 0;
}
while (fgets(line, MAX_LINE_SIZE, fp))
@@ -70,12 +70,12 @@
name = skipchars(line, " \t\n");
if (*name == COMMENT_CHAR || *name == '\0')
continue; // skip comment or empty line
-
+
// find assignment
value = strchr(line, ASSIGNMENT_CHAR);
- *value = '\0'; // isolate strings
+ *value = '\0'; // isolate strings
value++;
-
+
// remove trailing chars
name = cropchars(name, CROP_CHARS);
value = cropchars(value, CROP_CHARS);
@@ -83,7 +83,7 @@
if (strlen(value) > 0 )
set_prop_string(string(name), string(value));
}
-
+
fclose(fp);
return 0;
|
|
From: Andy G. <ag...@us...> - 2002-11-20 02:11:52
|
Update of /cvsroot/acpi/ospmd/ospmd/ospmd
In directory sc8-pr-cvs1:/tmp/cvs-serv20050/ospmd/ospmd
Modified Files:
policy_misc.cpp
Log Message:
remove unneeded code
Index: policy_misc.cpp
===================================================================
RCS file: /cvsroot/acpi/ospmd/ospmd/ospmd/policy_misc.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- policy_misc.cpp 8 Oct 2002 18:16:39 -0000 1.1.1.1
+++ policy_misc.cpp 20 Nov 2002 02:11:48 -0000 1.2
@@ -132,25 +132,6 @@
int
pm_policy::init_from_file(char* filename)
{
- // TODO cleanup
- /* Initialize profile data from file */
- /*
- fd = open(OSPMD_PROFILE_CONF_PATH, O_RDONLY );
- if (fd < 0)
- {
- OSPMD_ERROR("Could not open Pwrscheme file\n");
- perror("open");
- }
- else
- {
- res = read(fd, &pwr_scheme_list, sizeof(PWR_SCHEME_LIST));
- if (res < 0 || res != sizeof(PWR_SCHEME_LIST))
- {
- OSPMD_ERROR("Could not read Pwrscheme file\n");
- perror("read");
- }
- }
- */
return props.from_file(filename);
}
|
|
From: Andy G. <ag...@us...> - 2002-11-20 01:38:48
|
Update of /cvsroot/acpi/ospmd/ospmd In directory sc8-pr-cvs1:/tmp/cvs-serv8987/ospmd Modified Files: README Log Message: test checkin Index: README =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/README,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- README 20 Nov 2002 01:37:39 -0000 1.3 +++ README 20 Nov 2002 01:38:45 -0000 1.4 @@ -1,5 +1,5 @@ Intel OSPM Policy/GUI Testbed README ------------------------------------ +------------------------------------ This is a pre-alpha release of the policy and GUI for power management. This proof-of-concept demonstrates the flow of information from the |
|
From: Andy G. <ag...@us...> - 2002-11-20 01:37:42
|
Update of /cvsroot/acpi/ospmd/ospmd In directory sc8-pr-cvs1:/tmp/cvs-serv8720/ospmd Modified Files: README Log Message: test checkin Index: README =================================================================== RCS file: /cvsroot/acpi/ospmd/ospmd/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 8 Oct 2002 22:46:32 -0000 1.2 +++ README 20 Nov 2002 01:37:39 -0000 1.3 @@ -1,5 +1,5 @@ Intel OSPM Policy/GUI Testbed README ------------------------------------- +----------------------------------- This is a pre-alpha release of the policy and GUI for power management. This proof-of-concept demonstrates the flow of information from the |