freebsd-dev/sys/dev/pci
Warner Losh 6c996a0055 Change hw.pci.do_powerstate from a boolean to a range. 0 means the
same as today: do no power management.  1 means be conservative about
what you power down (any device class that has caused problems gets
added here).  2 means be agressive about what gets powered down (any
device class that's fundamental to the system is here).  3 means power
them all down, reguardless.  The default is 1.

The effect in the default system is to add mass storage devices to the
list that we don't power down.  From all the pciconf -l lists that
I've seen for the aac and amr issue, the bad device has been a mass
storage device class.

This is an attempt at a compromise between the very small number of
systems that have extreme issues with powerdown, and the very large
number of systems that gain real benefits from powerdown (I get about
20% more battery life when I attach a minimal set of drivers on my
Sony).  Hopefully it will strike the proper balance.

MFC After: 3 days (before next beta)
2005-09-11 04:09:44 +00:00
..
eisa_pci.c
fixup_pci.c
ignore_pci.c
isa_pci.c
pci_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
pci_pci.c fix CardBus issue for Compaq R3000 series laptop 2005-08-26 23:39:44 +00:00
pci_private.h Expose pci_cfg_safe/restore for subclasses of pci to use. 2005-02-28 01:14:15 +00:00
pci_user.c For FreeBSD 4 binaries, when trying to read from a device that does 2005-08-26 01:00:19 +00:00
pci.c Change hw.pci.do_powerstate from a boolean to a range. 0 means the 2005-09-11 04:09:44 +00:00
pcib_if.m Fix compile error :-(. 2005-04-13 19:10:27 +00:00
pcib_private.h
pcireg.h As threatened by BURN_BRIDGES, restire PCIR_MAPS and PCIR_HEADERTYPE 2005-06-05 23:08:59 +00:00
pcivar.h Allow one to access the cached values for CMDREG, CACHELNSZ, MINGNT, 2005-09-11 03:22:03 +00:00