From owner-freebsd-current Thu Sep 23 8:24: 4 1999 Delivered-To: freebsd-current@freebsd.org Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200]) by hub.freebsd.org (Postfix) with ESMTP id 439C014E2C for ; Thu, 23 Sep 1999 08:23:54 -0700 (PDT) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Received: from libr.scitec.kobe-u.ac.jp (aksh0613.ppp.infoweb.ne.jp [202.219.220.173]) by shidahara1.planet.sci.kobe-u.ac.jp (8.8.8+2.7Wbeta7/8.8.8) with ESMTP id AAA17962; Fri, 24 Sep 1999 00:21:10 +0900 (JST) Received: from shidahara1.planet.kobe-u.ac.jp (localhost [127.0.0.1]) by libr.scitec.kobe-u.ac.jp (8.9.1/3.5Wpl7) with ESMTP id AAA00842; Fri, 24 Sep 1999 00:18:32 +0900 (JST) From: takawata@shidahara1.planet.sci.kobe-u.ac.jp Message-Id: <199909231518.AAA00842@libr.scitec.kobe-u.ac.jp> To: current@freebsd.org Cc: Mitsuru IWASAKI Subject: Experimental ACPI driver. In-reply-to: Your message of "Thu, 23 Sep 1999 21:14:23 JST." <199909231211.VAA05339@tasogare.imasy.or.jp> Date: Fri, 24 Sep 1999 00:18:31 +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, We wrote experimental ACPI driver for 4.0-CURRENT. Now it can 1. Detect signature in so-called BIOS area. 2. Map ACPI reclaim memory and ACPI NVS memory. 3. Detect tables in ACPI memory areas (RSDT FACS DSDT FACP). 4. Catch Powerbutton event and report by dmesg. 5. use character device (temporaly CDEV_MAJOR 210) interface open,close, mmap (not complete). The attached file contains 3 file i386/acpi.c include/pc/acpi.h diff . So extract it under ${SRC_BASE}/sys/i386/ then apply 'diff' in the same directory. And add controller acpi0 to your configuration then config(8). If your system supports ACPI, you will get following dmesg ================= ACPI: Found ACPI BIOS data at 0xc00f6fe0 (, RSDT@3ff3000) acpi0: on motherboard acpi0: ADDR RANGE 3ff3000 d000 (mapped 0xc582f000) acpi0: ADDR RANGE 3ff0000 3000 (mapped 0xc583c000) acpi0: RSDT have 2 entries acpi0: RSDT entry0 FACP acpi0: FACP found acpi0: DSDT found Size=8166 bytes acpi0: FACS Found Size=64 bytes acpi0: RSDT entry1 BOOT acpi0: at 0xb2 irq 9 (snip) ACPI: pm1_status intr CALLED <-When you push Power button. ========= If you have question please ask me or iwasaki@jp.FreeBSD.org . Thanks. Takanori Watanabe Public Key Key fingerprint = 2C 51 E2 78 2C E1 C5 2D 0F F1 20 A3 11 3A 62 2A begin 644 acpi_driver.tar.gz M'XL("*@^ZC<``V%C<&E?9')I=F5R+G1A<@#L.VU[VDB2\Q5^19]GDP5;!@D[ M=F+'GF"0'=W9X$4X+SCPD/W`F'+\2L$G8XU#_H3?<:.A,'9T?-PX M/(!R`\`4^>C@!R9_;\+P-P\C,V#LA\B\-[^8D5D$!V#?7U+_^I\-\\_VYP&K MC_VI4[>B:3T,K'KX&-;=@]='=[,6..` M-1HG!XE/?V]K+8E@`/3@X.3AI''/#=.[;_YLV1=,3V\/&&O7M7 M9C^RRXDY8O*#_)J9\\B?FI%KF9/)([/=T!Q,G)!%8X>YKUX?,7\6N5/W-\=F M@3^/7,\):X"@S,I[/S9;MQI3'V9.X$X=+S(GK!VX"R!/)D[`3&OF MRN4]1.-[80F4%;L9;?7B[HH0_.@" MX35\CT63UFP4=PJZE=`+P`].E,8)+,5$],J1@J+'QS&)GD:D/_/0"1"7.ZI9 MI9(O9%!*J[/`B^GK(P2#)>399F`OMQE3TQK;SFP)8B^%P#E8&@0K8A0#*VSP MOX83!)X/@`D<5><`#BTOFFP#Z/I6'F#7`UUS/2'-$Y:*\Y_;S;50IZ79SM9M MG.\L<.DR<&D*V0&380I?G8"I79WQI0XKRPWF_#`SYV\4Z17,.3SX5$;IR\>I6=EP)0F)'&*YB4=$8. M9%A]>_07YZ.^6V9LE[5\VV%#/P!+8TY<;\2^N-&8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