summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2010-07-27ca_activate function brings eeepc 1000HE back after resume.Theo de Raadt
tested by krw
2010-07-26recording/full-duplex supportJacob Meuser
ok kettenis
2010-07-26ca_activate function brings eeepc701 network back after resume.Theo de Raadt
tested by oga
2010-07-26Microsoft LifeCam needs the framesize quirk as well.Michael Knudsen
ok mglocker
2010-07-26syncMichael Knudsen
2010-07-26Add Microsoft LifeCam.Michael Knudsen
2010-07-26simplify the mixer(4) code and interface. document the interface.Jacob Meuser
ok kettenis
2010-07-26Remove unused structure membersJordan Hargrave
2010-07-26Make sure we stop DMA before suspend instead of doing it as the first thingMark Kettenis
we do upon resume and failing to cope with the fact that the state has changed under our feet. Fixes watchdog timeout issues in at least one case. ok deraadt@, tested by thib@
2010-07-26Some machines include VID devices for hardware that doesn't exist. AvoidMark Kettenis
attaching those devices by checking whether the PCI bus on which they are supposed to sit exists. Fixes issues with brightness controls on my Dell laptop. ok marco@, pirofti@
2010-07-26remove merge error which was commitedTheo de Raadt
2010-07-26Add support for Sony ACPI hotkeys via a new driver: acpisony(4).Paul Irofti
Currently it only works for the suspend button and tries to do right for the brightness events, but I haven't found a Sony laptop that like to do right so far. In the future I want to make the brightness keys work on all Sony's and also add support for the zoom hotkeys and whatever other funky keys I can find on those things. Okay deraadt@.
2010-07-26Fix some spacing / comment.Marcus Glocker
2010-07-26Make one more Sonix chipset cam work with 640x480 by a) adding it to theMarcus Glocker
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk list and b) cranking the manually calculated frame size by pixels * 4 bytes (discussed with jakemsr@).
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
2010-07-25Add missing braces so a loop will function as intended.Jonathan Gray
ok dlg@
2010-07-25In pmsi_setintellimode(), make sure we send commands withMiod Vallat
pckbc_enqueue_cmd() if interrupts are enabled at this point.
2010-07-25in the clock drivers, seperate the soft-state and hard-state which wasTheo de Raadt
all jumbled up in the same functions. the rtc (mc chip) and clock (i8243) startup was also mixed up. they the soft state and hardware state can be started in the right order, and it is easy to restart just the neccessary parts upon resume. tested in numerous cases: (apic, pic) * (GENERIC.MP, GENERIC) * (mp, non-mp) * (i386, amd64) ok kettenis
2010-07-25Missing SCSI_DATA_IN flag in dvd_read_copyright() causedKenneth R Westerback
confusion. Fixes at least my usb DVD reader and The Blue Tick.
2010-07-25Restore previous behaviour of always bzero()'ing the buf passed toKenneth R Westerback
scsi_inquire_vpd(). scsi_inquire_vpd() oddness noted by jsg@ after report of macppc problems by kili@.
2010-07-25syncMarcus Glocker
2010-07-25Add another uvideo(4) device which needs theMarcus Glocker
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk.
2010-07-25Let DVD's play again. Logic reversal prevented copyright reading.Kenneth R Westerback
Symptoms noted by oga@. actual bug spotted by dlg@
2010-07-24missed a couple indents in previousJacob Meuser
2010-07-24Switch hppa64 to timecounters.Mark Kettenis
2010-07-24Restore a needed 'return' removed in the last commit, and stylisticMatthew Dempsky
tweak to eliminate an 'else' clause.
2010-07-24Convert PCI addresses to proper 64-bit physical addresses.Mark Kettenis
2010-07-24Make pmap_extract() work for large pages.Mark Kettenis
2010-07-24Don't sleep while holding the uvm_psel_lck mutex. Should fix "locking againstMark Kettenis
myself" panics that some people have seen over the last year-and-a-half. Cherry picked from a more complex (and therefore scarier) diff from oga@. ok tedu@, oga@
2010-07-24move to 4.8-betaTheo de Raadt
2010-07-24Fix PTE_PAGE().Mark Kettenis
2010-07-24One the -> On theMiod Vallat
2010-07-24fix another race. vscsi_cmd checked if the adapter was running atDavid Gwynne
the start and queued the command for processing by userland later. the adapter could stop running between the check and the queue. this merges the state and queue mutexes and combines the check and queue ops in vscsi_cmd into the same critical section. tweaked by and ok matthew@
2010-07-24add suspend/resume code, modelled along pms. on at least one ASUS laptopTheo de Raadt
(which krw is the lucky owner of) this requires a much bigger hammer. we have to reset it and put it back into the right mode ok krw
2010-07-24struct emul's e_arglen member is expected to count in units ofPhilip Guenthe
sizeof(char *), not in bytes, so we've been allocating and copying around four or eight times as many bytes as we needed to ok kettenis@ deraadt@
2010-07-24Get rid of scsi_deinit(), and change scsi_init() back to a one-timeMatthew Dempsky
initialization strategy, rather than pretending to do user reference counting. Previously, we would re-initialize the SCSI pool(9)s, which had the fun consequence of causing sysctl(kern.pool.npools) to infinite loop at IPL_VM. ok krw@
2010-07-24leftover from revert of long agoJacob Meuser
"feel free!" deraadt
2010-07-23Don't initialize acpiec pointer in acpi_softc until registration succeedsJordan Hargrave
ok deraadt
2010-07-23Control/data registers were being mapped with swapped io space tagsJordan Hargrave
Fix naming & order of tag to be clear ok deraadt
2010-07-23bring back changes in uaudio.c r1.83, this time remembering to commitJacob Meuser
uaudioreg.h. sorry about that. sync endpoints allow for the sample clock on USB audio devices to not be synchronized to the USB clock. the sync endpoint gives information on how much data to send to the data endpoint. although devices that require sync endpoints will "work" when the sync endpoint inormation is ignored, there is a possibility of static, echoing, or any other type of clock desync error. requires some small changes to existing code: * tighten up checks for whether a setting needs/supplies a sync endpoint. ignore settings that need a sync endpoint but don't supply one. previously all settings that require a sync endpoint were ignored. * if a sync endpoint is being used, use the same denominator for fractional samples as the sync endpoint uses (2**16). this only implements playback sync endpoints. recording sync endpoints are an odd concept: the driver would control the clock rate of the device. there may be such devices, but I can't even imagine how that could be reliably implemented. I guess you would sync to the USB clock or the system clock ... but then, what's the point?
2010-07-23Fix searchname to handle short name segments, remove hack in acpidock.Jordan Hargrave