summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-08-28In pckbd_scancode_translate(), correctly translate the break sequenceMiod Vallat
between scan code sets 1 and 2.
2010-08-28ansify function definitions, and constify a few arrays while there.Miod Vallat
no functional change.
2010-08-28Remove dead code, ansify, and clean the match routine; adapted from a diffMiod Vallat
by Alexandr Shadchin (firstname dot lastname at gmail) on tech@
2010-08-27Make PCI Power Management optional, and only enable it when acpi(4) attaches.Mark Kettenis
ok deraadt@
2010-08-27Move the activate function from pci to the the main driver, so that theTheo de Raadt
powerhook can use it ok kettenis
2010-08-27Move the guts of the powerhook function into the activate function and makeTheo de Raadt
it stop calling the powerhook function; then make the powerhook function call activate. This basically inverts the whole goop. ok kettenis
2010-08-27Massage the powerhook function into an activate function, and since we doTheo de Raadt
not neccessarily have a working filesystem for the firmware yet, use a workq to postpone resume. Then make the powerhook function call the activate function. There remains some questions about the sc_power functions... ok kettenis
2010-08-27Make the powerhook use the activate functions, which actually do the fullTheo de Raadt
job.
2010-08-27Move the dc_pci_activate function to dc.c, and mangle it up with some ofTheo de Raadt
the gunk in dc_powerhook. Then make dc_powerhook just call it ok kettenis
2010-08-27The powerhook only did stuff at resume; but suspend matters too!Theo de Raadt
Instead of fixing it, make it call the activate function which does the full job ok kettenis
2010-08-27Get rid of the clumsy pci_activate function and do this job inside ath.cTheo de Raadt
so that the powerhook wrapper can get at it ok kettenis
2010-08-27Run powerhooks with interrupts blocked. This requires a bit of a song andTheo de Raadt
dance since some laptops unsuspend out of apm with interrupts enabled?! That causes problems with shared interrupts... but also it would be best if we treat powerhook functions (now backed by activate functions) the same as acpi treats them, and it means that the powerhook wrappers don't need to do their own spl protection. ok kettenis
2010-08-27caught a small typo while reading the code: senor -> sensorRobert Nagy
2010-08-27Since the changes in neo(4) work, it is very likely that the exact sameTheo de Raadt
mechnical changes work in these drivers too. Testing can occur after this commit.
2010-08-27Mangle neo_power's contents into a neo_activate function, then makeTheo de Raadt
neo_power into a stub which calls it. Tested on an ancient z505r; my first laptop....
2010-08-27Make the powerhook code simply call the activate function (it actually doesTheo de Raadt
all the 7 steps we want done, instead of just 2)
2010-08-27Since the pci-specific activate function does nothing, move it to fxp.c.Theo de Raadt
Then it is possible for fxp_powerhook to use it.
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-27Mutilate the powerhook function into an activate function, then createTheo de Raadt
a stub powerhook function to call it.
2010-08-27Delete #if'd out powerhook code which is just unfinished scaffoldingTheo de Raadt
2010-08-27Stop calling xxx_power() from xxx_resume(); instead do it the other way around.Mark Kettenis
Get rid of the sc_power() callback, which isn't used anymore. ok deraadt@
2010-08-27Have the em powerhook call the activate function, which does a way betterTheo de Raadt
job of taking the chip up and down.
2010-08-27Move the xl_pci_activate function into xl_activate so that it is in theTheo de Raadt
sub-driver, and then xl_powerhook can simply be a wrapper around it ok kettenis; discussion about nested structure aliasing with miod
2010-08-27Improve sdhc_activate, and make sdhc_powerhook a simple wrapper aroundTheo de Raadt
it for now ok kettenis
2010-08-27no need for a sc_suspended variableTheo de Raadt
2010-08-27screen blanking code for SM502, and some smfb code cleanup.Miod Vallat
2010-08-27These do not need powerhook functions.Theo de Raadt
ok jsg
2010-08-27gem never had any powerhook supportTheo de Raadt
2010-08-27Delete comments about these drivers needing powerhook support; they don't.Theo de Raadt
2010-08-27get some format strings and variables right in debug outputDavid Gwynne
2010-08-27More killing of PWR_STANDBY. cvs skipped these filesTheo de Raadt
2010-08-27kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberTheo de Raadt
PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
2010-08-26Screen burner support for SM712 flavour (Lemote Yeeloong)Miod Vallat
2010-08-26make the comment explaining the kernel submaps a bit better.Thordur I. Bjornsson
ok art@, oga@
2010-08-26Link local multicast requires a scope (either from the src or dst address)Claudio Jeker
be more explicit and force it in dst. OK deraadt@, mcbride@
2010-08-26regenJonathan Gray
2010-08-26Add HP iLO3 devices and another PLX bridge.Jonathan Gray
2010-08-25Make CardBus ral(4) suspend and resume properly on machines that keep theMark Kettenis
CardBus bridge powered up during suspend. Step zero on the long road towards fully suspending CardBus on all machines. ok deraadt@, damien@
2010-08-25Let rtable_add() return usefull errnos so that the ioctl handler and theClaudio Jeker
rtsock code can return a more reasonable error to the user. OK henning
2010-08-25Move the iface specific ioctl call for SIOCSIFRDOMAIN further down so thatClaudio Jeker
all the magic cleanup happens before. This is needed because mpe(4) needs to add a route which would be removed by the cleanup code. OK henning
2010-08-25When setting a rdomain also force -inet6 aka IFXF_NOINET6 on the interfaceClaudio Jeker
since IPv6 is not rdomain aware and freaks out about it. OK henning
2010-08-25Remove the SPARC_BOOT_ELF define and associated machinery since it doesJoel Sing
not make sense to compile ofwboot without support for ELF. Whilst here, nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an object rather than including it in boot.c. ok miod@
2010-08-25try giving all devices on ami access to all the ccbs. iopools will shareDavid Gwynne
them out safely.
2010-08-25add scsi_iopool_destroy and scsi_link_shutdown. when a link orDavid Gwynne
device are going away, this will walk the pool and link queues and wake up processes that are sleeping while waiting for an io or xs. they will return NULL to the scsi_{xs,io}_get callers, which should then check if they device is still alive. all other handlers that are registered on the queues should be removed by their owners before the destroy/shutdown funcs are called. lots of help and discussion with matthew@ ok matthew@
2010-08-24spacesClaudio Jeker
2010-08-24Add a splnet() around a block that needs it for sure. Maybe more inClaudio Jeker
SIOCSIFRDOMAIN should be protected but this is by far the biggest offender. The same codepath in if_detach() runs at splnet().
2010-08-24Only do the link state checking and RTF_UP dance if the routing table isClaudio Jeker
rn_mpath_capable(). Move code down into the mpath specific block. Not all routing tables support multipath and therefor priorities.
2010-08-24lockmgr -> rwlock conversionBret Lambert
and with this, my adventure in sdmmc-land is over bikeshed is still banana-shaped ok oga@
2010-08-24legibility fixes:Bret Lambert
1) one statement per line 2) label gets its own line, and doesn't share it with a statement no functional change "Let the turd shine." claudio@
2010-08-24last is a pointer so initialize to NULL and not 0. Also move initializationClaudio Jeker
up to the declaration.