Age | Commit message (Collapse) | Author |
|
Suggested by kettenis@, ok visa@
|
|
ok millert@ krw@
|
|
|
|
|
|
Using a name with the 'db_' prefix makes it invisible from the dynamic
profiler.
ok deraadt@, kettenis@, visa@
|
|
is enough.
This flag should only be set by the stack, drivers shouldn't mess
with it.
Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
|
|
this means packets are consistently counted in one place, unlike the
many and various ways that drivers thought they should do it.
ok mpi@ deraadt@
|
|
|
|
Use the same values hardcoded in sys/dev/acpi/acpi.c where possible.
OK visa@
|
|
Build testing assistance from deraadt@
|
|
|
|
methods from all audio drivers and from the audio_if structure as they
are never called.
|
|
Fixes "audio0: different play and record parameters ... " errors, and
probably other unreported errors.
help and ok landry@
|
|
Tested by and ok mglocker@
|
|
ok deraadt
|
|
|
|
|
|
hw.sensors fan values seen on macppc models with a new smu-firmware.
Help and ok kettenis
|
|
ok deraadt kettenis
|
|
|
|
59 degC require temporary values larger than 32bit signed. Therefore
bump those involved variables to int64_t and replace imin/imax with
ulmin/ulmax to get proper results.
|
|
|
|
ok kettenis
|
|
based on the temperature sensor values. A driver can register it fans or
temperature sensors there. Ported from FreeBSD.
ok deraadt kettenis
|
|
ok kettenis
|
|
ok kettenis
|
|
ok kettenis
|
|
configure fan speeds.
from mglocker@, ok kettenis@
|
|
|
|
|
|
ok beck@ deraadt@
|
|
drivers still set IFF_NOTRAILERS while others do not. Remove all usage of
the flag from the drivers which in ancient times used it (and the modern
drivers which blindly copied it from those drivers of yore).
suggested by guenther. ok mpi
|
|
there are two things shared between the network stack and drivers
in the send path: the send queue and the IFF_OACTIVE flag. the send
queue is now protected by a mutex. this diff makes the oactive
functionality mpsafe too.
IFF_OACTIVE is part of if_flags. there are two problems with that.
firstly, if_flags is a short and we dont have any MI atomic operations
to manipulate a short. secondly, while we could make the IFF_OACTIVE
operates mpsafe, all changes to other flags would have to be made
safe at the same time, otherwise a read-modify-write cycle on their
updates could clobber the oactive change.
instead, this moves the oactive mark into struct ifqueue and provides
an API for changing it. there's ifq_set_oactive, ifq_clr_oactive,
and ifq_is_oactive. these are modelled on ifsq_set_oactive,
ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd.
this diff includes changes to all the drivers manipulating IFF_OACTIVE
to now use the ifsq_{set,clr_is}_oactive API too.
ok kettenis@ mpi@ jmatthew@ deraadt@
|
|
|
|
Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the
corresponding manual do not match its NAME.
This is one step further in the zs(4) unification... Go dokey go!
Tested by jmatthew@, ok sebastia@, deraadt@
|
|
Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender
for removing the header from <sys/param.h>
|
|
|
|
|
|
bugs@.
|
|
On such machines the device-tree contains absolute addresses for the
various sound buttons and the hardware was not properly initiliazed.
Problem reported and fix tested by Fabian Frédérick.
|
|
ok bluhm@, claudio@, dlg@
|
|
Even if this counter is subject to trashing it is a simple solution
and gives an proximation "good enough" of the number of IPIs on Quad
CPUs machine.
ok deraadt@
|
|
|
|
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
|
timeout. Unfortunately the smu(4) CPU voltage slewing code sleeps, which
causes a kernel panic. Prevent this by delegating the CPU frequency switching
and voltage slewing to a task.
ok mpi@
|
|
to determin if interrupts should be established as edge/level triggered.
Fix audio interrupts on U4 systems. On such systems the "interrupts"
fields in the device-tree has more bits set and cannot be compared to
0.
|
|
to get interrupts working on U4 machines.
With this OpenBSD can run on PowerMac11,2 (Quad G5).
With inputs from and ok kettenis@, miod@, dlg@
|
|
ok krw@ miod@
|
|
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi
ok armani@
|
|
as suggested by miod@
|