summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-07-30The device table entry for HD3470 was incorrectly using a logical orJonathan Gray
instead of a binary or. Found via lint. ok oga@
2010-07-30Remove unused header file.Miod Vallat
2010-07-29Don't set sc_ec until after the EC registers are mapped, but before weMark Kettenis
execute the _REG method to make the EC available to the AML. ok marco@
2010-07-29sort pool.h into the list of includes alphabeticallyBret Lambert
pointed out by kettenis@, ok miod@
2010-07-29#include <sys/pool.h> directly, instead of relying on mbuf.h to inlcude itBret Lambert
ok miod@ tedu@
2010-07-29Don't forget to register the i8254-based timecounter if we use the i8254Mark Kettenis
for clock interrupts. Unbreaks amd64 in PIC mode.
2010-07-29Add some more devices. -mojMats O Jansson
2010-07-29syncMats O Jansson
2010-07-29Add some more displaylink devices. -mojMats O Jansson
2010-07-29flag if an error during attach caused us to detach our resources, andJacob Meuser
if so, don't do anything on suspend/resume. should fix crash reported by mlarkin.
2010-07-29Zero out the firmware waking vector on successful resume from ACPI sleep.Mike Larkin
ok deraadt@
2010-07-28DVD_INVALIDATE_AGID is a 'no payload' operation, so don't setKenneth R Westerback
xs->datalen and reset xs->data to NULL. This prevents a spurious attempt to setup (dma map, etc) and possibly attempt data tranfser. In line with what Linux and FreeBSD do as far as I can tell. Reduces the delay before my DVD starts playing its movie. Idea to also set xs->data to NULL from matthew@. "No objection" matthew@
2010-07-28Add a dummy kqueue filter similar to seltrue and use it for anythingNicholas Marriott
using seltrue for poll. Based on code from NetBSD. Also remove a stray duplicate lpt entry from loongson, from deraadt. ok tedu deraadt
2010-07-28Suspending drivers need to do as little as possible in here, so when theTheo de Raadt
transition is to INIT, try to not generate management frames if we can avoid it. ok damien
2010-07-28Make legacy xxpower() functions call xxstop() on suspend, and simplify theirTheo de Raadt
resume paths. For new-style suspend/resume, add a ca_activate function where it is missing, and use a workq to resume because these drivers like to sleep. ok damien
2010-07-28the default pciide chip needs no additional register restores; tested by jcs ↵Theo de Raadt
on one model
2010-07-28more #ifdef needed for the case of not pegging on a non-MP kernelTheo de Raadt
2010-07-28remove stub code for rw locks we will never need; ok kettenis marcoTheo de Raadt
2010-07-28It's pretty pointless to peg ourselves to the primary CPU if that's theMark Kettenis
only one we have. ok krw@, deraadt@
2010-07-28suspend save/restore for SIS3112; tested by mlarkinTheo de Raadt
2010-07-28Make all gasio failures look and behave the same.Marco Peereboom
2010-07-28Delay a little longer on suspend before giving up. Fixes machines thatMike Larkin
sometimes don't suspend because the sleep transition takes too long (symptoms like failing to sleep but the backlight stays on). ok deraadt@
2010-07-28pfsync_bulk_fail was mucking around with pfsync_softc and sending packetsDavid Gwynne
without holding splsoftnet. this adds the necessary protection. reported by patrick coleman
2010-07-28No need to bzero() malloc'd memory if we used M_ZERO.Kenneth R Westerback
ok matthew@
2010-07-27remove an ancient XXXTheo de Raadt
2010-07-27remove XXX; EC can now be attached early when needed; ok jordanTheo de Raadt
2010-07-27more brackets feels goodTheo de Raadt
2010-07-27XXX annotate a block in acpi_enter_sleep_state() that is pretty worryingTheo de Raadt
2010-07-27do not match a 2nd EC if something horrible happens; ok marcoTheo de Raadt
2010-07-27ca_activate handler for suspend/resume. untested -- if someone testsTheo de Raadt
this let me know.
2010-07-27Spaces vs tabMarco Peereboom
2010-07-27horrific indentation that nearly made me pukeTheo de Raadt
2010-07-27spacing; ok deraadt@Todd T. Fries
2010-07-27Revert 1.34 certain systems need the parent ec pointer initialized earlier.Marco Peereboom
This fixes acpi interrupts on the latitude e6500. Tested on e6500 and x61. debugged with, and ok jordan
2010-07-27spacingTheo de Raadt
2010-07-27add bce_activate(), suspends and resumes on my laptopTodd T. Fries
ok deraadt@
2010-07-27Make sure we stop DMA before we suspend. Remove unused argument to re_stop()Mark Kettenis
to avoid the dilemma what meaningless value to pass. ok deraadt@
2010-07-27Make sure we stop DMA before we suspend.Mark Kettenis
ok deraadt@
2010-07-27ca_activate function for suspend/resumeTheo de Raadt
tested by mlarkin
2010-07-27delete a #if 0 chunk which was used for early development and will neverTheo de Raadt
be reused ok jordan
2010-07-27Set the sleeping indicator light on machines that support it, in case SMIMike Larkin
doesn't do it for us. Shows the 'moon' LED on older Thinkpads when sleeping. Tested on T43p, W500, T510 by me and on X61s by deraadt@. ok deraadt@
2010-07-27Repost ATI Radeon HD4500 on HP Pavilion dv7-3160us using the emulator,Mike Larkin
in the same style we have done for all other ATI Radeon devices found so far. Fixes video on said machine on resume.
2010-07-27annoying spaces getting in the wayTheo de Raadt
2010-07-27Early initialization of acpiec if ECDT table existsJordan Hargrave
Fixes hang when booting thinkpads while docked ok deraadt
2010-07-27Add scsi_cmd_rw_decode() for decoding any SCSI READ or WRITE command,Matthew Dempsky
and update atascsi(4) to make use of it. (Other HBAs will be updated post-release.) Should allow for use of SATA drives with >2^32 LBAs. ok deraadt@, dlg@, krw@
2010-07-27replace acpitz_getreading goo with proper aml_evalinteger.Marco Peereboom
From jordan.
2010-07-27the queue entry and state variables in the xsh and ioh structs are partDavid Gwynne
of a separate struct which the ioh struct includes for no good reason anymore. just put the vars directly in the ioh. this removes this useless abstraction. ok krw@ matthew@
2010-07-27Fix #ifdef DDB/#ifdef SMALL_KERNEL uses so all four combinationsKenneth R Westerback
(DDB/SMALL_KERNEL, DDB/!SMALL_KERNEL, !DDB/!SMALL_KERNEL, !DDB/SMALL_KERNEL) can compile. A DDB bsd.rd is thus possible again. Correction to my original diff from miod@ "If it compiles, commit" deraadt@
2010-07-27Add additional Notify handler for dock devices, according to ACPI specJordan Hargrave
ok marco
2010-07-27acpiasus for amd64 too, Henri KemppainenTheo de Raadt