freebsd-dev/sys/dev/acpica
Nate Lawson 75988358a2 Fix several bugs where 32-bit timers and wraparound were not properly
supported.  Symptoms of this bug included unnecessary use of ACPI-safe
and a dmesg that has deltas of about 2^24:

    ACPI timer looks BAD  min = 2, max = 16777206, width = 16777204
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks GOOD min = 4, max = 5, width = 1
    ACPI timer looks BAD  min = 2, max = 16777206, width = 16777204
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks BAD  min = 2, max = 16777210, width = 16777208
    ACPI timer looks BAD  min = 4, max = 16777189, width = 16777185
    ACPI timer looks GOOD min = 4, max = 5, width = 1
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks BAD  min = 4, max = 16777189, width = 16777185

To fix this:
* Use a 32 bit timecounter mask when the timer is 32 bits.
* In test_counter(), use the acpi_TimerDelta function which handles 24/32
  bit timers and wraparound.

Miscellaneous fixes:
* Use C99 initializers for timecounter struct.
* Use u_int and uint32_t where appropriate instead of unsigned.
* Remove whitespace-only lines
* Remove the old PIIX4 PCI workaround.  The timecounter testing code has
  been in use for long enough to prove it's functional.
2004-04-21 00:48:16 +00:00
..
Osd Style fixes. 2004-04-20 17:13:08 +00:00
acpi_acad.c Allow the AC adapter device to be disabled with debug.acpi.disable="acad". 2004-04-20 13:09:17 +00:00
acpi_battery.c Style cleanups to match the rest of this directory. For acpi_battery.c, 2003-08-11 15:34:43 +00:00
acpi_button.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_cmbat.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_cpu.c Move the timer difference convenience function from acpi_cpu.c to make it 2004-04-21 00:36:15 +00:00
acpi_ec.c Update the name for edge triggered for the 20040402 import. 2004-04-14 02:20:35 +00:00
acpi_isab.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_lid.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_package.c Add support for packages as the first element of _PRW. This may allow 2004-04-09 06:40:03 +00:00
acpi_pci_link.c Style and printf message cleanups. 2004-04-14 03:34:11 +00:00
acpi_pci.c Only try to set the ACPI power state if the handle is valid. There was 2004-04-14 17:46:21 +00:00
acpi_pcib_acpi.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_pcib_pci.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_pcib.c Add a temporary workaround for acpi_AppendBufferResource() returning with 2004-04-19 17:52:20 +00:00
acpi_pcibvar.h Add code for ACPI PCI link object manipulation. 2002-10-05 02:01:05 +00:00
acpi_powerres.c Return an error immediately if asked to switch a non-existent consumer. 2004-04-14 17:58:19 +00:00
acpi_resource.c Add MODULE_DEPEND entries so some of these drivers can eventually be 2004-04-09 18:14:32 +00:00
acpi_thermal.c Remove a check for the return value added in rev 1.41. It's not an error 2004-04-12 05:04:47 +00:00
acpi_timer.c Fix several bugs where 32-bit timers and wraparound were not properly 2004-04-21 00:48:16 +00:00
acpi_video.c Unify on version 1 to be similar to the rest of the tree. After 5-stable 2004-04-08 16:45:12 +00:00
acpi.c Remove extran parens. 2004-04-21 00:38:54 +00:00
acpiio.h Add the -i flag to acpiconf(8) to retrieve battery information. 2003-09-13 20:13:01 +00:00
acpivar.h Move the timer difference convenience function from acpi_cpu.c to make it 2004-04-21 00:36:15 +00:00