From owner-freebsd-audit Wed Oct 24 9:23: 5 2001 Delivered-To: freebsd-audit@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 76F9637B401; Wed, 24 Oct 2001 09:22:53 -0700 (PDT) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) (authenticated as iwa with CRAM-MD5) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id f9OGMlm16160; Thu, 25 Oct 2001 01:22:47 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Thu, 25 Oct 2001 01:22:43 +0900 (JST) Message-Id: <20011025.012243.71082514.iwasaki@jp.FreeBSD.org> To: acpi-jp@jp.freebsd.org Cc: arch@freebsd.org, audit@freebsd.org Subject: ACPI: APM compatibility implementation From: Mitsuru IWASAKI X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I've just started implementation of APM compatibility stuff for FreeBSD/i386. The goal is to support most APM applications (binary) w/o any changes on ACPI enabled kernel. This emulates APM device node interface APIs (mainly ioctl) and provides APM services for the applications. The patches at: http://people.freebsd.org/~iwasaki/acpi/acpi_compat_apm-20011025.diff Currently following ioctls are implemented; - APMIO_SUSPEND (mapped S3 as default but can be changed by sysctl) - APMIO_STANDBY (mapped S1 as default but can be changed by sysctl) - APMIO_GETINFO and APMIO_GETINFO_OLD - APMIO_GETPWSTATUS Many APM applications are already supported. apmopen, apmclose, apmwrite, apmpoll and following ioctls are fake :-p - APMIO_ENABLE - APMIO_DISABLE - APMIO_HALTCPU - APMIO_NOTHALTCPU - APMIO_DISPLAY - APMIO_BIOS My apm reports correct info with ACPI kernel as follows. % apm APM version: 1.2 APM Managment: Enabled AC Line status: off-line Battery status: high Remaining battery life: 99% Remaining battery time: 3:18:00 Number of batteries: 1 Battery 0: Battery status: high Remaining battery life: 99% Remaining battery time: 3:18:00 Resume timer: Thu Jan 1 08:59:59 1970 Resume on ring indicator: disabled APM Capacities: unknown Any comments are welcome. I'll commit this coming weekend. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message