Commit Graph

78 Commits

Author SHA1 Message Date
jkim
be00572ccd Fix SUBDIR expansion and reduce diff from HEAD. 2007-10-11 23:47:28 +00:00
njl
8c7442cb09 MFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm. 2007-06-28 21:23:56 +00:00
njl
8d2f88308e MFC: add acpi_hpet to the build (pointed out as missing by kib@) 2007-03-24 16:00:44 +00:00
njl
a302799d1a MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support 2007-03-23 19:45:53 +00:00
cvs2svn
6d3d85315f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-04-30 16:44:42 +00:00
yar
25d6e2cc4f MFC:
Avoid creating (and subsequently using) fake opt_*.h files
when the modules are built with the kernel and hence actual
opt_*.h files are available in ${KERNBUILDDIR}.  Fix a few
small bugs that would prevent this from working.

At last the build options of the modules become consistent
with those of the kernel unless the MODULES_WITH_WORLD way
still is used.

Approved by:	re (kensmith, scottl)
Requested by:	ru
Tested on:	amd64 i386 sparc64
Tested by:	md5
2006-02-10 00:38:08 +00:00
njl
8fab5e2393 MFC: smart battery support 2005-11-05 23:55:56 +00:00
marks
70d8c7d5e7 Fix separate module build.
Submitted by:	njl
2005-05-09 07:26:16 +00:00
iedowse
9729412480 Pick up the selectors to use for various kernel segments from assym.s
instead of assuming fixed offsets within the GDT. The hard-coded
values here have been incorrect since Peter's GDT rearranging around
10 days ago, causing ACPI resume problems.

Reviewed by:	peter
2005-04-22 09:53:04 +00:00
philip
40a49548e5 Add acpi_fujitsu for handling acpi-controlled buttons on Fujitsu laptops.
Submitted by:	Anish Mistry <mistry.7 -at- osu.edu>
Reviewed by:	njl
X-MFC after:	5.4-RELEASE
2005-03-18 08:48:10 +00:00
njl
42a55e2441 Move acpi_perf and acpi_throttle into acpi.ko. Remove the acpi_perf
build structure.
2005-02-24 20:48:07 +00:00
njl
e4e0cab9b7 Hook acpi_throttle(4) up to the build. It's currently part of acpi_perf.ko
although this may change.
2005-02-06 21:13:41 +00:00
njl
45af79d5a7 Hook up the cpufreq framework, acpi_perf(4), and cpufreq(4) drivers. 2005-02-04 05:49:36 +00:00
ru
cec60429bb Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
imp
1f6faf55da Make this compile when you don't have /sys. 2004-12-13 04:59:35 +00:00
scottl
6d3ab8ca37 Remove the addition of ACPI_DEBUG that was accidentally added in the last
commit.
2004-12-13 03:23:08 +00:00
scottl
1048e6f4a6 Allow the acpi_ibm module to be built with ACPI_DEBUG. 2004-12-13 03:22:11 +00:00
scottl
89aa93f4bc Make sure that opt_ddb.h exists so that this will compile with ACPI_DEBUG 2004-12-13 02:13:08 +00:00
takawata
177099d758 Connect acpi_ibm to build.
Submitted by: rushani, sumikawa
2004-12-09 16:47:07 +00:00
takawata
226bfdc163 Add IBM Laptop extra device driver.
This depends on ACPI and RTC registers.

Reviewed by: njl
2004-12-09 13:54:29 +00:00
imp
72ebe7a7c1 this should have been deleted a while ago 2004-11-18 04:30:17 +00:00
nyan
b5f85e2fdb PC98 does not have ACPI. 2004-11-15 13:28:03 +00:00
imp
8dabebd604 After discussions with Nate, repo copy the acpi assist drivers from
i386 to dev/acpi_support.  In theory, these devices could be found
other than in i386 machines only as amd64 becomes more popular.  These
drivers don't appear to do anything i386 specific, so move them to
dev/acpi_support.  Move config lines to files so that those
architectures that don't support kernel modules can build them into
the kernel.  At the same time, rename acpi_snc to acpi_sony to follow
the lead of all the other specialty devices.
2004-11-15 05:54:15 +00:00
scottl
4b4f25fcb1 Make it clear that the acpi modules can only be compiled on i386. 2004-11-14 20:53:17 +00:00
imp
9b37fa7711 Commit takawata-san's Sony Notebook Controller driver, integrated into
the tree.  Small tweaks were made by myself to eliminate unnecessary
includes and some other minor issues.  Last time I asked takawata-san
about this driver, he suggested I commit it.

Submitted by: takawata
2004-11-11 22:54:58 +00:00
njl
e232f7c8d9 Bump WARNS to 2 for all other ACPI drivers and minor cleanup. 2004-08-03 21:27:43 +00:00
nyan
3c92d13fb3 Add the ACPI Panasonic extras driver.
Submitted by:	OGAWA Takaya <t-ogawa@triaez.kaisei.org> and nyan
2004-07-21 14:47:54 +00:00
marks
59ace550e2 Set WARNS=2 for the module build of ACPI.
Approved by:	njl
2004-07-01 04:14:55 +00:00
njl
f4e4cbe915 Add glue for building acpi_quirk.c 2004-06-30 04:47:31 +00:00
njl
ffbd0ede95 Add acpi_if.h dependencies to module build. 2004-06-29 18:59:01 +00:00
philip
ea8607cc65 Enable the led-toggling magic. Compiling files which are in the kernel into
modules is a very nice way to produce hard-to-find panics.  Who would look for
a bug in a Makefile anyway?

Has anyone seen the pointy hat? :-o

Approved by:	njl (mentor)
2004-04-23 17:41:05 +00:00
philip
3fd35f61f6 Hook up acpi_asus and its manual page in two more places I managed to overlook
last night.  Sorry about that :-o

Spotted by:	njl (mentor, spotter of forgetfulness)
2004-04-23 06:29:08 +00:00
philip
a0d6a22b41 Missed this out in my last commit. Makefile for the acpi_asus driver. 2004-04-22 21:30:56 +00:00
njl
147e8ffe3a Divide the drivers into essential (pci, thermal) and mobile (lid,
battery, etc.)
2004-04-21 02:16:07 +00:00
njl
0b1110f652 Hook acpi_video up to the build. 2004-03-01 08:15:26 +00:00
njl
f373398488 Add the ACPI standard video extensions driver. I've done some style cleanup
but a bit more reamins to be done.  For now, it is usable.

Submitted by:	Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
2004-03-01 08:12:56 +00:00
njl
16b9d7e064 Clean all the object files whether or not ACPI_DEBUG is specified. 2004-02-28 19:51:44 +00:00
nyan
7f009882c9 Include "../Makefile.inc" to propagate the configuration to subdirectories. 2004-01-13 13:08:27 +00:00
njl
3f4a150002 Hook up acpi_toshiba 2004-01-12 19:30:57 +00:00
njl
cc1dfb7209 Add the ACPI Toshiba extras driver (hotkeys, LCD backlight, video output,
forced fan control, and CPU throttling).

Submitted by:	Hiroyuki Aizu <aizu@navi.org>
2004-01-11 19:18:38 +00:00
njl
e7901056bb Always clean all files, including ones under ACPI_DEBUG when doing a
"make clean".
2004-01-08 16:38:32 +00:00
bde
0825cbd529 Use double quotes instead of single quotes for echos to build options
headers as in most other modules Makefiles (5 yesterday, none now).
Fixed any simple nearby style bugs (not many).
2003-12-29 09:15:48 +00:00
njl
09140a0699 Move the acpi module down a directory. This will allow us to import
other ACPI-specific drivers into sys/modules/acpi/.
2003-12-24 03:49:38 +00:00
jhb
c9692bbff8 Remove SMP option support from building the ACPI module as it is no longer
needed.

Approved by:	re (murray)
Requested by:	njl
2003-12-05 15:49:01 +00:00
jhb
af58c0d9f3 Add madt.c to the list of sources for i386.
Approved by:	re (scottl / blanket)
2003-12-03 21:10:02 +00:00
njl
de5ea0895c * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches the
idx'th present CPU with pc_acpi_id equal to *acpi_id.  If *acpi_id
  does not match that processor's pc_acpi_id, return the value for
  ProcId derived from the MADT in *acpi_id.  If pc_acpi_id is 0xffffffff,
  always override it with the value of *acpi_id.  Finally, return
  pc_cpuid in *cpu_id and use that as our primary key.

* Use pc_cpuid as our unique key because we know it is valid since
  MD code set it.  The values for ProcId in the ASL and MADT don't
  match up on some machines (!), forcing us to fall back to ordered
  probing in that case.

* Remove some #ifdef SMP since the refcount doesn't hurt performance
  and will be needed for dynamic _CST objects.  Only one #ifdef SMP
  (for smp_rendezvous) remains.

* Hook up SMP in the compile flags in the Makefile.

Tested by:	marcel, truckman
Approved by:	re (scottl)
2003-11-26 19:01:33 +00:00
njl
36b03f2409 Implement Cx CPU idle states and updated throttling support.
* Use the cpu_idle_hook() to do idling for C1-C3.
* Use both _CST and the FADT to detect Cx states.
* Use both _PTC and P_CNT for controlling throttling.
* Add a notify handler to detect changes in _CST and _PSS
* Call the _INI function for each processor if present.  This will be
  done by ACPI-CA in the future.
* Fix a bug on SMP systems where CPUs will attach multiple times if the
  bus is rescan.
* Document new sysctls for controlling idling.
2003-11-15 19:26:06 +00:00
njl
b5438b5430 Use the ACPICA AcpiEnterSleepStateS4bios instead of rolling our own. This
change also disables interrupts around non-S4 suspends whereas before we
did not do this.  Our version of AcpiEnterSleepStateS4bios was almost
identical to the ACPICA version.
2003-08-29 04:02:19 +00:00
njl
711369e68f Fix the ACPI_DEBUG build for the non-module case. Move the #define into
acfreebsd.h and remove it from the Makefile.  Now ACPI_DEBUG implies
ACPI_DISASSEMBLER.

Noticed by:	marcel
2003-07-15 19:18:41 +00:00
njl
3e799fd208 Fix build with ACPI_DEBUG option.
Reported by:	Mark Santcroos <marks@ripe.net>, des+tinderbox
2003-07-14 17:19:45 +00:00